cyberstammtisch-silverstripe/themes/starter/templates/SilverStripe/Forms/DropdownField.ss
2021-10-20 13:45:30 +02:00

11 lines
479 B
Scheme
Executable file

<select {$getAttributesHTML('class')} class="$ExtraClass form-control<% if $Message %> is-invalid<% end_if %>" <% include AriaAttributes %> >
<% loop $Options %>
<option value="{$Value.ATT}" <% if $Selected %>selected="selected"<% end_if %> <% if $Disabled %>disabled="disabled"<% end_if %>>
<% if $Title %>
{$Title.XML}
<% else %>
&nbsp;
<% end_if %>
</option>
<% end_loop %>
</select>