silverstripe-framework/templates/forms/DropdownField.ss

6 lines
218 B
Scheme
Raw Normal View History

<select $AttributesHTML>
<% loop $Options %>
2014-08-04 02:13:19 +02:00
<option value="$Value.XML"<% if $Selected %> selected="selected"<% end_if %><% if $Disabled %> disabled="disabled"<% end_if %>>$Title.XML</option>
<% end_loop %>
</select>