silverstripe-framework/admin/themes/cms-forms/templates/forms/SelectionGroup.ss
Damian Mooyman a809e80d01 API Convert CMS forms to bootstrap
NEW Add cms-forms microtheme to cater to bootstrap's needs.

Note that the old SS3 assets section is buggy as a result of this change.
2016-07-25 17:24:26 +12:00

22 lines
597 B
Scheme

<div class="form-group selection-group">
<ul class="form__field-holder form__field-holder--no-label SelectionGroup<% if $extraClass %> $extraClass<% end_if %>">
<% if $IsReadonly %>
<% loop $FieldSet %>
<% if $Selected %>
<li class="selected selection-group__item">
$RadioLabel
$SmallFieldHolder
</li>
<% end_if %>
<% end_loop %>
<% else %>
<% loop $FieldSet %>
<li class="selection-group__item<% if $Selected %> selected<% end_if %>">
{$RadioButton}{$RadioLabel}
$SmallFieldHolder
</li>
<% end_loop %>
<% end_if %>
</ul>
</div>