silverstripe-userforms/templates/SilverStripe/UserForms/FormField/UserFormsCheckboxSetField.ss

12 lines
431 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.XML</label>
</div>
<% end_loop %>
<% else %>
<p>No options available</p>
<% end_if %>