2 BLOCK build_org_selector_options; %]
3 <option value='[% walker.id %]' [% IF walker.id == value %] selected='selected' [% END %]>
5 pad = walker.ou_type.depth * 2;
6 FOR idx IN [0..pad]; ' '; END;
10 [% FOR child IN walker.children;
11 PROCESS build_org_selector_options walker=child value=value;
15 # XXX TODO probably put this BLOCK somewhere else so it can be used widely.
16 # Org Unit Selector Widget :
17 # PROCESS build_org_selector id='selector-id' name='selector-name'
18 BLOCK build_org_selector;
20 <select [% IF id %] id='[% id %]' [% END %] name='[% name %]'>
21 [% PROCESS build_org_selector_options walker=(org_unit || ctx.aou_tree) value=value %]