silverstripe-userforms/templates/forms/UserFormsCheckboxSetField.ss

12 lines
427 B
Scheme
Raw Normal View History

<% if $Options.Count %>
<% loop $Options %>
<div class="$Class">
<input id="$ID" class="checkbox" name="$Name" type="checkbox" value="$Value.ATT"<% if $isChecked %>
checked="checked"<% end_if %><% if $isDisabled %> disabled="disabled"<% end_if %> />
<label for="$ID">$Title</label>
</div>
<% end_loop %>
<% else %>
<p>No options available</p>
<% end_if %>