diff options
Diffstat (limited to 'share/skin/default/layout/field/choose_one')
-rw-r--r-- | share/skin/default/layout/field/choose_one | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/share/skin/default/layout/field/choose_one b/share/skin/default/layout/field/choose_one new file mode 100644 index 0000000..2378ff5 --- /dev/null +++ b/share/skin/default/layout/field/choose_one @@ -0,0 +1,40 @@ +=for layout widget + +[% label %] [% field %] [% message %] + +=for layout field + +<!-- We need a replacement for process_attrs --> +<select name="[% name | html %]" id="[% id | html %]"> + [% IF is_required %] + <option value="">--</option> + [% END %] + [% content %] +</select> + +=for layout option + + [% IF is_selected; + selected = ' selected="selected"'; + ELSE; + selected = ''; + END; + %] + <!-- I should convert this stuff to process_attrs to keep it cleaner --> + <option value="[% v_value | html%]" [% selected %]> [% v_name | html %]</option> + +=for layout label + +<!-- This conditional goes away when mst comes up with something better --> +[% IF content %] + <label for="[% id | html %]"> [% 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 |