silverstripe-framework/templates/SilverStripe/Forms/SelectionGroup.ss
Damian Mooyman 8dd644d25d
API Namespace all classes
Namespace all templates
Move difflib and BBCodeParser2 to thirdparty
Remove deprecated API marked for removal in 4.0
2016-09-08 10:23:17 +12:00

24 lines
479 B
Scheme

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