silverstripe-framework/templates/forms/DropdownField.ss

9 lines
270 B
Scheme
Raw Normal View History

<select $AttributesHTML>
<% loop $Options %>
<option value="$Value.XML"
<% if $Selected %> selected="selected"<% end_if %>
<% if $Disabled %> disabled="disabled"<% end_if %>
><% if $Title %>$Title.XML<% else %>&nbsp;<% end_if %></option>
<% end_loop %>
</select>