mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
13 lines
388 B
Scheme
13 lines
388 B
Scheme
<% 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 %> <% end_if %></option>
|
|
<% end_if %>
|