silverstripe-reports/templates/Includes/AssetAdmin_Content.ss
Ingo Schommer 7f27474159 BUGFIX Show AssetAdmin tree by not invoking $EditForm twice in template
Both for performance reasons, and for weird behaviour on the second invocation (doesn't retain the same record context)
2012-06-14 20:36:36 +02:00

33 lines
833 B
Scheme

<div class="cms-content center cms-tabset $BaseCSSClasses" data-layout-type="border" data-pjax-fragment="Content">
<% with EditForm %>
<div class="cms-content-header north">
<div class="cms-content-header-info">
<% include BackLink_Button %>
<h2 id="page-title-heading">
<% with Controller %>
<% include CMSBreadcrumbs %>
<% end_with %>
</h2>
</div>
<% if Fields.hasTabset %>
<% with Fields.fieldByName('Root') %>
<div class="cms-content-header-tabs">
<ul>
<% loop Tabs %>
<li<% if extraClass %> class="$extraClass"<% end_if %>><a href="#$id">$Title</a></li>
<% end_loop %>
</ul>
</div>
<% end_with %>
<% end_if %>
</div>
<div class="cms-content-fields center ui-widget-content" data-layout-type="border">
$Top.Tools
$forTemplate
</div>
<% end_with %>
</div>