mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
Merge pull request #809 from ARNHOE/3.1-siteconfig
Updated siteconfig layout to be more like modeladmin
This commit is contained in:
commit
44fdf66834
@ -41,8 +41,7 @@ class CMSSettingsController extends LeftAndMain {
|
|||||||
$this, 'EditForm', $fields, $actions
|
$this, 'EditForm', $fields, $actions
|
||||||
)->setHTMLID('Form_EditForm');
|
)->setHTMLID('Form_EditForm');
|
||||||
$form->setResponseNegotiator($this->getResponseNegotiator());
|
$form->setResponseNegotiator($this->getResponseNegotiator());
|
||||||
$form->addExtraClass('root-form');
|
$form->addExtraClass('cms-add-form cms-content center cms-edit-form');
|
||||||
$form->addExtraClass('cms-edit-form cms-panel-padded center');
|
|
||||||
// don't add data-pjax-fragment=CurrentForm, its added in the content template instead
|
// don't add data-pjax-fragment=CurrentForm, its added in the content template instead
|
||||||
|
|
||||||
if($form->Fields()->hasTabset()) $form->Fields()->findOrMakeTab('Root')->setTemplate('CMSTabSet');
|
if($form->Fields()->hasTabset()) $form->Fields()->findOrMakeTab('Root')->setTemplate('CMSTabSet');
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
<div id="settings-controller-cms-content" class="cms-content center cms-tabset $BaseCSSClasses" data-layout-type="border" data-pjax-fragment="Content CurrentForm">
|
<div id="settings-controller-cms-content" class="cms-content cms-edit-form center cms-tabset $BaseCSSClasses" data-layout-type="border" data-pjax-fragment="Content CurrentForm">
|
||||||
|
|
||||||
<div class="cms-content-header north">
|
<div class="cms-content-header north">
|
||||||
<% with $EditForm %>
|
<% with $EditForm %>
|
||||||
@ -7,9 +7,10 @@
|
|||||||
<% include CMSBreadcrumbs %>
|
<% include CMSBreadcrumbs %>
|
||||||
<% end_with %>
|
<% end_with %>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<% if $Fields.hasTabset %>
|
<% if $Fields.hasTabset %>
|
||||||
<% with $Fields.fieldByName('Root') %>
|
<% with $Fields.fieldByName('Root') %>
|
||||||
<div class="cms-content-header-tabs">
|
<div class="cms-content-header-tabs cms-tabset-nav-primary ss-ui-tabs-nav">
|
||||||
<ul class="cms-tabset-nav-primary">
|
<ul class="cms-tabset-nav-primary">
|
||||||
<% loop $Tabs %>
|
<% loop $Tabs %>
|
||||||
<li<% if $extraClass %> class="$extraClass"<% end_if %>><a href="#$id">$Title</a></li>
|
<li<% if $extraClass %> class="$extraClass"<% end_if %>><a href="#$id">$Title</a></li>
|
||||||
|
@ -1,29 +1,33 @@
|
|||||||
<form $FormAttributes>
|
<form $FormAttributes data-layout-type="border">
|
||||||
|
|
||||||
<% if $Message %>
|
<div class="cms-content-fields center">
|
||||||
<p id="{$FormName}_error" class="message $MessageType">$Message</p>
|
<% if $Message %>
|
||||||
<% else %>
|
<p id="{$FormName}_error" class="message $MessageType">$Message</p>
|
||||||
<p id="{$FormName}_error" class="message $MessageType" style="display: none"></p>
|
<% else %>
|
||||||
<% end_if %>
|
<p id="{$FormName}_error" class="message $MessageType" style="display: none"></p>
|
||||||
|
<% end_if %>
|
||||||
|
|
||||||
<fieldset>
|
<fieldset>
|
||||||
<% if $Legend %><legend>$Legend</legend><% end_if %>
|
<% if $Legend %><legend>$Legend</legend><% end_if %>
|
||||||
<% loop $Fields %>
|
<% loop $Fields %>
|
||||||
$FieldHolder
|
$FieldHolder
|
||||||
<% end_loop %>
|
<% end_loop %>
|
||||||
<div class="clear"><!-- --></div>
|
<div class="clear"><!-- --></div>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
|
</div>
|
||||||
|
|
||||||
<% if $Actions %>
|
<div class="cms-content-actions cms-content-controls south">
|
||||||
<div class="Actions">
|
<% if $Actions %>
|
||||||
<% loop $Actions %>
|
<div class="Actions">
|
||||||
$Field
|
<% loop $Actions %>
|
||||||
<% end_loop %>
|
$Field
|
||||||
<% if $Controller.LinkPreview %>
|
<% end_loop %>
|
||||||
<a href="$Controller.LinkPreview" class="cms-preview-toggle-link ss-ui-button" data-icon="preview">
|
<% if $Controller.LinkPreview %>
|
||||||
<% _t('LeftAndMain.PreviewButton', 'Preview') %> »
|
<a href="$Controller.LinkPreview" class="cms-preview-toggle-link ss-ui-button" data-icon="preview">
|
||||||
</a>
|
<% _t('LeftAndMain.PreviewButton', 'Preview') %> »
|
||||||
|
</a>
|
||||||
|
<% end_if %>
|
||||||
|
</div>
|
||||||
<% end_if %>
|
<% end_if %>
|
||||||
</div>
|
</div>
|
||||||
<% end_if %>
|
|
||||||
</form>
|
</form>
|
Loading…
Reference in New Issue
Block a user