silverstripe-framework/admin/themes/cms-forms/templates/forms/SelectionGroup.ss
Damian Mooyman 6e74b57c36 BUG Fix issue with gulpfile.js not compiling client/src/legacy dir
BUG Make SelectionGroup.ss and SelectionGroup.js work together
BUG Fix for IE visual indentation of composite field
2016-07-28 16:32:40 +12:00

34 lines
994 B
Scheme

<ul class="list-unstyled selection-group">
<% if $IsReadonly %>
<% loop $FieldSet %>
<% if $Selected %>
<li class="selected selection-group__item" id="$HolderID">
$RadioLabel
<%-- Bypass composite item field and directly render child fields --%>
<% if $FieldList %>
<div class="selection-group selection-group__item__fieldlist" id="$ID">
<% loop $FieldList %>
$Fieldholder
<% end_loop %>
</div>
<% end_if %>
</li>
<% end_if %>
<% end_loop %>
<% else %>
<% loop $FieldSet %>
<li class="selection-group__item<% if $Selected %> selected<% end_if %>" id="$HolderID">
{$RadioButton}{$RadioLabel}
<%-- Bypass composite item field and directly render child fields --%>
<% if $FieldList %>
<div class="selection-group selection-group__item__fieldlist" id="$ID">
<% loop $FieldList %>
$Fieldholder
<% end_loop %>
</div>
<% end_if %>
</li>
<% end_loop %>
<% end_if %>
</ul>