mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
b74178e7fd
Had the pjax "CurrentForm" marker set to the <form> tag, which makes sense, but excludes the tabs. On refresh, the tabset wasn't reinitialized, showing all form elements on one page. Its easier to simply refresh the whole content area.
33 lines
793 B
Scheme
33 lines
793 B
Scheme
<div class="cms-content center cms-tabset $BaseCSSClasses" data-layout-type="border" data-pjax-fragment="Content CurrentForm">
|
|
|
|
<div class="cms-content-header north">
|
|
<% with EditForm %>
|
|
<div class="cms-content-header-info">
|
|
<h2>
|
|
<% 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 %>
|
|
<% end_with %>
|
|
</div>
|
|
|
|
<div class="cms-content-fields center ui-widget-content" data-layout-type="border">
|
|
|
|
$EditForm
|
|
|
|
</div>
|
|
|
|
</div>
|