mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
72a014d933
Display falsey values as option titles when they have been included.
6 lines
268 B
Scheme
6 lines
268 B
Scheme
<select $AttributesHTML>
|
|
<% loop $Options %>
|
|
<option value="$Value.XML"<% if $Selected %> selected="selected"<% end_if %><% if $Disabled %> disabled="disabled"<% end_if %>><% if $Title.exists %>$Title.XML<% else %> <% end_if %></option>
|
|
<% end_loop %>
|
|
</select>
|