diff options
author | Mike Gerwitz <mike.gerwitz@rtspecialty.com> | 2018-02-22 14:02:10 -0500 |
---|---|---|
committer | Mike Gerwitz <mike.gerwitz@rtspecialty.com> | 2018-09-11 09:30:53 -0400 |
commit | a2fc125540555e4f1ddbeb8cf5528ddd5180dbb0 (patch) | |
tree | 00a199c6b99915e7b8defa046badbaa12c3746f2 | |
parent | e7528947a4fc1dcb45ae43121bed17e042cbefea (diff) | |
download | tame-a2fc125540555e4f1ddbeb8cf5528ddd5180dbb0.tar.gz tame-a2fc125540555e4f1ddbeb8cf5528ddd5180dbb0.tar.bz2 tame-a2fc125540555e4f1ddbeb8cf5528ddd5180dbb0.zip |
ui/_match-ui-set_: Add template
* ui.xml (_match-ui-set_): New template.
-rw-r--r-- | core/ui.xml | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/core/ui.xml b/core/ui.xml index 3ae8895..a2b45d2 100644 --- a/core/ui.xml +++ b/core/ui.xml @@ -68,5 +68,26 @@ <t:match-class name="@__vis_class@" value="@value@" /> </template> + + + \ref{_match-ui-set_} determines whether a UI field has a truthful value, + which is non-empty and non-zero. + + <template name="_match-ui-set_" + desc="Match whether a UI question is set"> + <param name="@on@" desc="Question id" /> + + <param name="@value@" desc="Whether set"> + <text>TRUE</text> + </param> + + <param name="@__set_class@" desc="Generated set class name"> + <text>--set-</text> + <param-value name="@on@" dash="true" /> + </param> + + + <t:match-class name="@__set_class@" value="@value@" /> + </template> </section> </package> |