Looks like user agents don't let us do a lot with styling OPTION
elements (text colour, background colour) but this gives sites that want
to further distinguish copy groups from libraries in the org selector
something to work with.
Signed-off-by: Dan Scott <dan@coffeecode.net>
org_unit = node.org;
loc_grp = node.loc_grp;
ou_id = org_unit.id;
+ css_class = '';
disabled = '';
selected = '';
node_value = ou_id;
IF loc_grp; node_value = node_value _ ':' _ loc_grp.id; END;
+ IF loc_grp;
+ css_class = 'class="loc_grp"';
+ ELSE;
+ css_class = 'class="org_unit"';
+ END;
IF can_have_vols_only AND org_unit.ou_type.can_have_vols != 't';
disabled = 'disabled="disabled"';
selected = 'selected="selected"';
END %]
- <option value='[% node_value %]' [% selected %] [% disabled %]>
+ <option value='[% node_value %]' [% selected %] [% disabled %] [% css_class %]>
[%
# loc_grp's are displayed as children of the current org
depth = org_unit.ou_type.depth;