mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-09-09 03:01:18 +02:00
API Update behaviour of form fields to use standard template lookup mechanism API Support custom "type" parameter to template lookup
18 lines
691 B
Scheme
18 lines
691 B
Scheme
<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>
|