mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
bdb1a95758
API Standardise Relation interface
12 lines
368 B
Scheme
12 lines
368 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 %> |