aboutsummaryrefslogtreecommitdiffstats
path: root/share/skin/default/layout/field/boolean
diff options
context:
space:
mode:
Diffstat (limited to 'share/skin/default/layout/field/boolean')
-rw-r--r--share/skin/default/layout/field/boolean32
1 files changed, 32 insertions, 0 deletions
diff --git a/share/skin/default/layout/field/boolean b/share/skin/default/layout/field/boolean
new file mode 100644
index 0000000..2ee1da2
--- /dev/null
+++ b/share/skin/default/layout/field/boolean
@@ -0,0 +1,32 @@
+=for layout widget
+
+[% label %] [% field %] [% message %] <br>
+
+=for layout field
+
+[%
+ IF content;
+ checked = 'checked="checked"';
+ ELSE;
+ checked = "";
+ END;
+%]
+
+<!-- We need a replacement for process_attrs -->
+<input type="checkbox" id="[% id | html %]" name="[% name | html %]" value="1" [% checked %] />
+
+=for layout label
+
+<!-- This conditional goes away when mst comes up with something better -->
+[% IF content %]
+ <label for="[% id %]"> [% content | html %]: </label>
+[% END %]
+
+=for layout message
+
+<!-- This conditional goes away when mst comes up with something better -->
+[% IF content %]
+ <span> [% content | html %] </span>
+[% END %]
+
+=cut