mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
MINOR tweaks to SecurityAdmin layout
This commit is contained in:
parent
a08a08eaa0
commit
01bfdbeb90
@ -111,7 +111,7 @@ class SecurityAdmin extends LeftAndMain implements PermissionProvider {
|
||||
$memberList->setPermissions(array('edit', 'delete', 'add'));
|
||||
|
||||
$fields = new FieldList(
|
||||
new TabSet(
|
||||
$root = new TabSet(
|
||||
'Root',
|
||||
new Tab('Members', singleton('Member')->i18n_plural_name(),
|
||||
$memberList,
|
||||
@ -138,6 +138,8 @@ class SecurityAdmin extends LeftAndMain implements PermissionProvider {
|
||||
new HiddenField('ID', false, 0)
|
||||
);
|
||||
|
||||
$root->setTemplate('CMSTabSet');
|
||||
|
||||
// Add roles editing interface
|
||||
if(Permission::check('APPLY_ROLES')) {
|
||||
$rolesCTF = new ComplexTableField(
|
||||
|
@ -13,8 +13,8 @@
|
||||
<li><a href="#$id">$Title</a></li>
|
||||
<% end_control %>
|
||||
</ul>
|
||||
<% end_with %>
|
||||
</div>
|
||||
<% end_with %>
|
||||
<% end_if %>
|
||||
|
||||
<!-- <div class="cms-content-search">...</div> -->
|
||||
@ -40,7 +40,6 @@
|
||||
<% end_control %>
|
||||
<div class="clear"><!-- --></div>
|
||||
</fieldset>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="cms-content-actions south">
|
||||
|
@ -1,17 +1,11 @@
|
||||
<div class="cms-content center $BaseCSSClasses" data-layout="{type: 'border'}">
|
||||
|
||||
<div class="cms-content-tools west">
|
||||
<div class="cms-content-header north">
|
||||
<div>
|
||||
<h2><% _t('SECGROUPS','Security Groups') %></h2>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="cms-content-tools west">
|
||||
|
||||
<div id="treepanes">
|
||||
|
||||
<div>
|
||||
$AddForm
|
||||
|
||||
<div class="checkboxAboveTree">
|
||||
@ -27,12 +21,56 @@
|
||||
|
||||
</div>
|
||||
|
||||
<% with EditForm %>
|
||||
<div class="cms-content-fields center ui-widget-content ss-tabset">
|
||||
|
||||
<% if IncludeFormTag %>
|
||||
<form $FormAttributes data-layout="{type: 'border'}">
|
||||
<% end_if %>
|
||||
|
||||
<div class="cms-content-header north">
|
||||
<% if Fields.hasTabset %>
|
||||
<% with Fields.fieldByName('Root') %>
|
||||
<div class="cms-content-header-tabs">
|
||||
<ul>
|
||||
<% control Tabs %>
|
||||
<li><a href="#$id">$Title</a></li>
|
||||
<% end_control %>
|
||||
</ul>
|
||||
</div>
|
||||
<% end_with %>
|
||||
<% end_if %>
|
||||
</div>
|
||||
|
||||
<div class="cms-content-fields center">
|
||||
<% if Message %>
|
||||
<p id="{$FormName}_error" class="message $MessageType">$Message</p>
|
||||
<% else %>
|
||||
<p id="{$FormName}_error" class="message $MessageType" style="display: none"></p>
|
||||
<% end_if %>
|
||||
|
||||
<fieldset>
|
||||
<% if Legend %><legend>$Legend</legend><% end_if %>
|
||||
<% control Fields %>
|
||||
$FieldHolder
|
||||
<% end_control %>
|
||||
<div class="clear"><!-- --></div>
|
||||
</fieldset>
|
||||
</div>
|
||||
|
||||
<div class="cms-content-fields center ui-widget-content">
|
||||
$EditForm
|
||||
<div class="cms-content-actions south">
|
||||
<% if Actions %>
|
||||
<div class="Actions">
|
||||
<% control Actions %>
|
||||
$Field
|
||||
<% end_control %>
|
||||
</div>
|
||||
<% end_if %>
|
||||
</div>
|
||||
|
||||
<% if IncludeFormTag %>
|
||||
</form>
|
||||
<% end_if %>
|
||||
</div>
|
||||
<% end_with %>
|
||||
</div>
|
@ -154,4 +154,3 @@ class TabSet extends CompositeField {
|
||||
parent::removeByName( $tabName, $dataFieldOnly );
|
||||
}
|
||||
}
|
||||
?>
|
@ -185,7 +185,6 @@ class SSViewer_DataPresenter extends SSViewer_Scope {
|
||||
*
|
||||
* @see http://doc.silverstripe.org/themes
|
||||
* @see http://doc.silverstripe.org/themes:developing
|
||||
|
||||
*
|
||||
* @package sapphire
|
||||
* @subpackage view
|
||||
|
Loading…
x
Reference in New Issue
Block a user