unstable switchover before template renaming. added searchpath for widgets trying...
[catagits/Reaction.git] / share / skin / default / layout / field / choose_one
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 [% content_str = GET content; %]
30 [% IF content_str.length; %]
31   <label> [% content_str | html %]: </label>
32 [% END; %]
33
34 =for layout message
35
36 <!-- This conditional goes away when mst comes up with something better -->
37 [% content_str = GET content; %]
38 [% IF content_str.length; %]
39   <span> [% content_str | html %] </span> <br />
40 [% END %]
41
42 =cut