mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
11 lines
443 B
Scheme
11 lines
443 B
Scheme
|
<%-- Renders a CheckboxField with $multiple=true as a select element which can save into relations.--%>
|
||
|
<%-- TODO Make relation saving available on ListboxField --%>
|
||
|
<select id="$ID" class="$extraClass" name="$Name[]" multiple="true">
|
||
|
<% if Options.Count %>
|
||
|
<% control Options %>
|
||
|
<option class="$Class" value="$Value"<% if isChecked %> selected="selected"<% end_if %>>
|
||
|
$Title
|
||
|
</option>
|
||
|
<% end_control %>
|
||
|
<% end_if %>
|
||
|
</select>
|