aboutsummaryrefslogtreecommitdiffstats
path: root/share/skin/default/layout/field/boolean.tt
diff options
context:
space:
mode:
Diffstat (limited to 'share/skin/default/layout/field/boolean.tt')
-rw-r--r--share/skin/default/layout/field/boolean.tt33
1 files changed, 6 insertions, 27 deletions
diff --git a/share/skin/default/layout/field/boolean.tt b/share/skin/default/layout/field/boolean.tt
index 73b817e..b750116 100644
--- a/share/skin/default/layout/field/boolean.tt
+++ b/share/skin/default/layout/field/boolean.tt
@@ -1,34 +1,13 @@
-=for layout widget
+=extends field
-[% label %] [% field %] [% message %] <br>
+=for layout field_body
-=for layout field
+value="1" [% is_checked %]
-[%
- IF content;
- checked = 'checked="checked"';
- ELSE;
- checked = "";
- END;
-%]
+=for layout is_checked_yes
-<!-- We need a replacement for process_attrs -->
-<input type="checkbox" id="[% id | html %]" name="[% name | html %]" value="1" [% checked %] />
+checked="checked"
-=for layout label
-
-<!-- This conditional goes away when mst comes up with something better -->
-[% content_str = GET content; %]
-[% IF content_str.length; %]
- <label> [% content_str | html %]: </label>
-[% END; %]
-
-=for layout message
-
-<!-- This conditional goes away when mst comes up with something better -->
-[% content_str = GET content; %]
-[% IF content_str.length; %]
- <span> [% content_str | html %] </span> <br />
-[% END %]
+=for layout is_checked_no
=cut