Mike Gerwitz

Activist for User Freedom

aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Gerwitz <mike.gerwitz@rtspecialty.com>2018-02-22 14:02:10 -0500
committerMike Gerwitz <mike.gerwitz@rtspecialty.com>2018-09-11 09:30:53 -0400
commita2fc125540555e4f1ddbeb8cf5528ddd5180dbb0 (patch)
tree00a199c6b99915e7b8defa046badbaa12c3746f2
parente7528947a4fc1dcb45ae43121bed17e042cbefea (diff)
downloadtame-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.xml21
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>