silverstripe-framework/templates/forms/CompositeField_holder_small.ss

16 lines
377 B
Scheme
Raw Normal View History

2013-07-28 15:52:39 +02:00
<$Tag class="CompositeField $extraClass <% if ColumnCount %>multicolumn<% end_if %>">
<% if $Tag == 'fieldset' && $Legend %>
<legend>$Legend</legend>
<% end_if %>
<% loop FieldList %>
<% if $Top.ColumnCount %>
<div class="column-{$Top.ColumnCount} $FirstLast">
$SmallFieldHolder
</div>
<% else %>
$SmallFieldHolder
<% end_if %>
<% end_loop %>
</$Tag>