mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
f1b99b6fa7
Based on partial back-port of 4.0 code
13 lines
369 B
Scheme
13 lines
369 B
Scheme
<% if $Options %>
|
|
<optgroup label="$Title.ATT">
|
|
<% loop $Options %>
|
|
<% include 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 %>
|