silverstripe-framework/templates/SilverStripe/Forms/TabSet.ss
Christopher Joe ee5b4fd8d3 Tabs support in new file/image editor
Introducing <Tabs> component based on react-bootstrap
Better support for nested fields in FormBuilder
Tweaks to get FormBuilder working with frameworktest BasicFieldsPage fields
Added exception in FormBuilder when Component is defined but not found
Added check in SingleSelectField for empty value before adding one in
Added temporary workaround for CompositeFields with no name (another story to address the actual problem)
Added asset_preview_height for File image preview, matches the defined CSS max-height
Added documentation to DBFile::PreviewLink() method
2016-09-14 14:08:59 +12:00

24 lines
444 B
Scheme

<div $getAttributesHTML("class") class="ss-tabset $extraClass">
<ul>
<% loop $Tabs %>
<li class="$FirstLast $MiddleString $extraClass">
<a href="#$id" id="tab-$id" class="nav-link">$Title</a>
</li>
<% end_loop %>
</ul>
<div>
<% loop $Tabs %>
<% if $Tabs %>
$FieldHolder
<% else %>
<div $AttributesHTML>
<% loop $Fields %>
$FieldHolder
<% end_loop %>
</div>
<% end_if %>
<% end_loop %>
</div>
</div>