silverstripe-framework/templates/SilverStripe/Forms/SelectionGroup.ss

24 lines
540 B
Scheme
Raw Normal View History

<% if $IsReadonly %>
<ul class="SelectionGroup<% if extraClass %> $extraClass<% end_if %>">
<% loop $FieldSet %>
<% if $Selected %>
<li class="selected">
$RadioLabel
$FieldHolder
</li>
<% end_if %>
<% end_loop %>
</ul>
<% else %>
<ul class="SelectionGroup<% if extraClass %> $extraClass<% end_if %>">
<% loop $FieldSet %>
<li <% if Selected %>class="selected"<% end_if %>>
2017-04-26 03:54:06 +02:00
<label>{$RadioButton} {$RadioLabel}</label>
<% if $FieldList %>
$FieldHolder
<% end_if %>
</li>
<% end_loop %>
</ul>
<% end_if %>