mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
c9b6e9bac0
API Update behaviour of form fields to use standard template lookup mechanism API Support custom "type" parameter to template lookup
20 lines
547 B
Scheme
20 lines
547 B
Scheme
<%-- Exclude ".ss-tabset" class to avoid inheriting behaviour --%>
|
|
<%-- The ".cms-tabset" class needs to be manually applied to a container elment, --%>
|
|
<%-- above the level where the tab navigation is placed. --%>
|
|
<%-- Tab navigation is rendered through various templates, --%>
|
|
<%-- e.g. through LeftAndMain_EditForm.ss. --%>
|
|
|
|
<div $AttributesHTML>
|
|
<% loop $Tabs %>
|
|
<% if $Tabs %>
|
|
$FieldHolder
|
|
<% else %>
|
|
<div $AttributesHTML>
|
|
<% loop $Fields %>
|
|
$FieldHolder
|
|
<% end_loop %>
|
|
</div>
|
|
<% end_if %>
|
|
<% end_loop %>
|
|
</div>
|