silverstripe-framework/templates/SilverStripe/Forms/SelectionGroup.ss
Dylan Wagstaff c5fcab81df
Reorder HTML to be semantically correct on render
Don't close the unordered list every iteration :)
2018-03-29 12:01:27 +13:00

24 lines
495 B
Scheme

<% if $IsReadonly %>
<ul class="SelectionGroup<% if extraClass %> $extraClass<% end_if %>">
<% loop $FieldSet %>
<% if $Selected %>
<li$Selected>
$RadioLabel
$FieldHolder
</li>
<% end_if %>
<% end_loop %>
</ul>
<% else %>
<ul class="SelectionGroup<% if extraClass %> $extraClass<% end_if %>">
<% loop $FieldSet %>
<li$Selected>
<label>{$RadioButton} {$RadioLabel}</label>
<% if $FieldList %>
$FieldHolder
<% end_if %>
</li>
<% end_loop %>
</ul>
<% end_if %>