slight change for saner behavior when munging names
[catagits/Reaction.git] / share / skin / default / layout / field / choose_one
CommitLineData
5a1a893e 1=for layout widget
2
3[% label %] [% field %] [% message %]
4
5=for layout field
6
7<!-- We need a replacement for process_attrs -->
8<select name="[% name | html %]" id="[% id | html %]">
9 [% IF is_required %]
10 <option value="">--</option>
11 [% END %]
12 [% content %]
13</select>
14
15=for layout option
16
17 [% IF is_selected;
18 selected = ' selected="selected"';
19 ELSE;
20 selected = '';
21 END;
22 %]
23 <!-- I should convert this stuff to process_attrs to keep it cleaner -->
24 <option value="[% v_value | html%]" [% selected %]> [% v_name | html %]</option>
25
26=for layout label
27
28<!-- This conditional goes away when mst comes up with something better -->
29[% IF content %]
30 <label for="[% id | html %]"> [% content | html %]: </label>
31[% END %]
32
33=for layout message
34
35<!-- This conditional goes away when mst comes up with something better -->
36[% IF content %]
37 <span> [% content | html %] </span>
38[% END %]
39
40=cut