silverstripe-framework/templates/TabSetFieldHolder.ss

18 lines
352 B
Scheme
Raw Normal View History

<ul class="tabstrip">
<% control Tabs %>
<li class="$FirstLast $MiddleString"><a href="#$id" id="tab-$id">$Title</a></li>
<% end_control %>
</ul>
<% control Tabs %>
<div class="tab" id="$id">
<% if Tabs %>
$FieldHolder
<% else %>
<% control Fields %>
$FieldHolder
<% end_control %>
<% end_if %>
</div>
<% end_control %>