mirror of
https://github.com/silverstripe/silverstripe-userforms.git
synced 2024-10-22 17:05:42 +02:00
Merge pull request #303 from flashbackzoo/pulls/update-field-group-template
Add $RightTitle to UserFormsGroupField template
This commit is contained in:
commit
d9eae284a9
25
templates/UserFormsGroupField_holder.ss
Normal file
25
templates/UserFormsGroupField_holder.ss
Normal file
@ -0,0 +1,25 @@
|
||||
<$Tag class="CompositeField $extraClass <% if ColumnCount %>multicolumn<% end_if %>">
|
||||
<% if $Tag == 'fieldset' && $Legend %>
|
||||
<legend>$Legend</legend>
|
||||
<% end_if %>
|
||||
|
||||
<div class="middleColumn">
|
||||
<% loop $FieldList %>
|
||||
<% if $ColumnCount %>
|
||||
<div class="column-{$ColumnCount} $FirstLast">
|
||||
$FieldHolder
|
||||
</div>
|
||||
<% else %>
|
||||
$FieldHolder
|
||||
<% end_if %>
|
||||
<% end_loop %>
|
||||
</div>
|
||||
|
||||
<% if $RightTitle %>
|
||||
<aside class="right" role="complementary">
|
||||
<p>$RightTitle</p>
|
||||
</aside>
|
||||
<% end_if %>
|
||||
|
||||
<% if $Description %><span class="description">$Description</span><% end_if %>
|
||||
</$Tag>
|
Loading…
Reference in New Issue
Block a user