silverstripe-framework/templates/SilverStripe/Forms/Includes/GroupedDropdownFieldOption.ss

13 lines
388 B
Scheme
Raw Normal View History

<% if $Options %>
<optgroup label="$Title.ATT">
<% loop $Options %>
<% include SilverStripe/Forms/GroupedDropdownFieldOption %>
<% end_loop %>
</optgroup>
<% else %>
<option value="$Value.ATT"
<% if $Selected %> selected="selected"<% end_if %>
<% if $Disabled %> disabled="disabled"<% end_if %>
><% if $Title %>$Title.XML<% else %>&nbsp;<% end_if %></option>
<% end_if %>