mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
2805baecd3
Align top of selection-group and label Fix styles for overly nested composite fields Step label added and new templates for forms
26 lines
676 B
Scheme
26 lines
676 B
Scheme
<ul class="list-unstyled selection-group">
|
|
<% if $IsReadonly %>
|
|
<% loop $FieldSet %>
|
|
<% if $Selected %>
|
|
<li class="selected selection-group__item">
|
|
$RadioLabel
|
|
<%-- Bypass composite item field and directly render child fields --%>
|
|
<% loop $FieldList %>
|
|
$Field
|
|
<% end_loop %>
|
|
</li>
|
|
<% end_if %>
|
|
<% end_loop %>
|
|
<% else %>
|
|
<% loop $FieldSet %>
|
|
<li class="selection-group__item<% if $Selected %> selected<% end_if %>">
|
|
{$RadioButton}{$RadioLabel}
|
|
<%-- Bypass composite item field and directly render child fields --%>
|
|
<% loop $FieldList %>
|
|
$Field
|
|
<% end_loop %>
|
|
</li>
|
|
<% end_loop %>
|
|
<% end_if %>
|
|
</ul>
|