silverstripe-framework/templates/SilverStripe/Forms/TabSet.ss

24 lines
444 B
Scheme
Raw Normal View History

<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>