silverstripe-framework/admin/themes/cms-forms/templates/CompositeField_holder_small.ss

18 lines
691 B
Scheme
Raw Normal View History

<div id="$HolderID" class="form__fieldgroup-item field field--small<% if $extraClass %> $extraClass<% end_if %>">
<% if $Title %>
<label for="$ID" id="title-$ID" class="form__fieldgroup-label">$Title</label>
<% end_if %>
<$Tag id="$ID"
<% if $Title %>aria-labelledby="title-$ID"<% end_if %>
class="form__fieldgroup form__field-holder
<% if not $Title %> form__field-holder--no-label<% end_if %>
<% if $Zebra %> form__fieldgroup-zebra<% end_if %>
<% if $extraClass %> $extraClass<% end_if %>"
>
<%-- Note: _holder_small.ss overrides CompositeField.ss to force nested $SmallFieldHolder --%>
<% loop $FieldList %>
$SmallFieldHolder
<% end_loop %>
</$Tag>
</div>