mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
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)
This commit is contained in:
parent
3c81958345
commit
7f27474159
@ -1,36 +1,33 @@
|
|||||||
<div class="cms-content center cms-tabset $BaseCSSClasses" data-layout-type="border" data-pjax-fragment="Content">
|
<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 north">
|
||||||
<% with EditForm %>
|
<div class="cms-content-header-info">
|
||||||
<div class="cms-content-header-info">
|
<% include BackLink_Button %>
|
||||||
<% include BackLink_Button %>
|
|
||||||
|
|
||||||
<h2 id="page-title-heading">
|
<h2 id="page-title-heading">
|
||||||
<% with Controller %>
|
<% with Controller %>
|
||||||
<% include CMSBreadcrumbs %>
|
<% include CMSBreadcrumbs %>
|
||||||
<% end_with %>
|
<% end_with %>
|
||||||
</h2>
|
</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>
|
</div>
|
||||||
<% if Fields.hasTabset %>
|
<% end_with %>
|
||||||
<% with Fields.fieldByName('Root') %>
|
<% end_if %>
|
||||||
<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 %>
|
|
||||||
<% end_with %>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="cms-content-fields center ui-widget-content" data-layout-type="border">
|
<div class="cms-content-fields center ui-widget-content" data-layout-type="border">
|
||||||
|
$Top.Tools
|
||||||
$Tools
|
$forTemplate
|
||||||
|
|
||||||
$EditForm
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
<% end_with %>
|
||||||
|
|
||||||
</div>
|
</div>
|
Loading…
Reference in New Issue
Block a user