mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
MINOR Fixed SecurityAdmin styling
This commit is contained in:
parent
aff72e766e
commit
ef514b924e
@ -96,6 +96,10 @@ class SecurityAdmin extends LeftAndMain implements PermissionProvider {
|
|||||||
$form = $this->RootForm();
|
$form = $this->RootForm();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$form->setTemplate($this->getTemplatesWithSuffix('_EditForm'));
|
||||||
|
if($form->Fields()->hasTabset()) $form->Fields()->findOrMakeTab('Root')->setTemplate('CMSTabSet');
|
||||||
|
$form->addExtraClass('center ss-tabset ' . $this->BaseCSSClasses());
|
||||||
|
|
||||||
return $form;
|
return $form;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -176,16 +180,14 @@ class SecurityAdmin extends LeftAndMain implements PermissionProvider {
|
|||||||
|
|
||||||
function AddForm() {
|
function AddForm() {
|
||||||
$form = parent::AddForm();
|
$form = parent::AddForm();
|
||||||
$form->Actions()->fieldByName('action_doAdd')->setTitle(_t('AssetAdmin.ActionAdd', 'Add folder'));
|
$form->Actions()->fieldByName('action_doAdd')->setTitle(_t('SecurityAdmin.ActionAdd', 'Add group'));
|
||||||
|
|
||||||
return $form;
|
return $form;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function memberimport() {
|
public function memberimport() {
|
||||||
Requirements::clear();
|
Requirements::clear();
|
||||||
Requirements::css(SAPPHIRE_DIR . '/css/Form.css');
|
Requirements::css(SAPPHIRE_ADMIN_DIR . '/css/screen.css');
|
||||||
Requirements::css(CMS_DIR . '/css/typography.css');
|
|
||||||
Requirements::css(SAPPHIRE_ADMIN_DIR . '/css/cms_right.css');
|
|
||||||
Requirements::javascript(THIRDPARTY_DIR . '/jquery/jquery.js');
|
Requirements::javascript(THIRDPARTY_DIR . '/jquery/jquery.js');
|
||||||
Requirements::javascript(THIRDPARTY_DIR . '/jquery-livequery/jquery.livequery.js');
|
Requirements::javascript(THIRDPARTY_DIR . '/jquery-livequery/jquery.livequery.js');
|
||||||
Requirements::javascript(SAPPHIRE_DIR . '/javascript/jquery_improvements.js');
|
Requirements::javascript(SAPPHIRE_DIR . '/javascript/jquery_improvements.js');
|
||||||
@ -194,7 +196,8 @@ class SecurityAdmin extends LeftAndMain implements PermissionProvider {
|
|||||||
Requirements::javascript(SAPPHIRE_ADMIN_DIR . '/javascript/MemberImportForm.js');
|
Requirements::javascript(SAPPHIRE_ADMIN_DIR . '/javascript/MemberImportForm.js');
|
||||||
|
|
||||||
return $this->renderWith('BlankPage', array(
|
return $this->renderWith('BlankPage', array(
|
||||||
'Form' => $this->MemberImportForm()
|
'Form' => $this->MemberImportForm(),
|
||||||
|
'Content' => ' '
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -216,9 +219,7 @@ class SecurityAdmin extends LeftAndMain implements PermissionProvider {
|
|||||||
|
|
||||||
public function groupimport() {
|
public function groupimport() {
|
||||||
Requirements::clear();
|
Requirements::clear();
|
||||||
Requirements::css(SAPPHIRE_DIR . '/css/Form.css');
|
Requirements::css(SAPPHIRE_ADMIN_DIR . '/css/screen.css');
|
||||||
Requirements::css(SAPPHIRE_ADMIN_DIR . '/css/typography.css');
|
|
||||||
Requirements::css(SAPPHIRE_ADMIN_DIR . '/css/cms_right.css');
|
|
||||||
Requirements::javascript(THIRDPARTY_DIR . '/jquery/jquery.js');
|
Requirements::javascript(THIRDPARTY_DIR . '/jquery/jquery.js');
|
||||||
Requirements::javascript(THIRDPARTY_DIR . '/jquery-livequery/jquery.livequery.js');
|
Requirements::javascript(THIRDPARTY_DIR . '/jquery-livequery/jquery.livequery.js');
|
||||||
Requirements::javascript(SAPPHIRE_DIR . '/javascript/jquery_improvements.js');
|
Requirements::javascript(SAPPHIRE_DIR . '/javascript/jquery_improvements.js');
|
||||||
|
@ -559,3 +559,6 @@ li.class-ErrorPage > a .jstree-pageicon { background-position: 0 -112px; }
|
|||||||
.ModelAdmin .cms-content-tools #SearchForm_holder div.tab form input { margin: 0px; }
|
.ModelAdmin .cms-content-tools #SearchForm_holder div.tab form input { margin: 0px; }
|
||||||
.ModelAdmin .cms-content-tools #SearchForm_holder div.tab form .field { border-bottom: 0px; margin-bottom: 6px; }
|
.ModelAdmin .cms-content-tools #SearchForm_holder div.tab form .field { border-bottom: 0px; margin-bottom: 6px; }
|
||||||
.ModelAdmin .cms-content-tools #SearchForm_holder div.tab form .Actions button.ss-ui-action-minor { display: none; }
|
.ModelAdmin .cms-content-tools #SearchForm_holder div.tab form .Actions button.ss-ui-action-minor { display: none; }
|
||||||
|
|
||||||
|
.SecurityAdmin .cms-edit-form .cms-content-header h2 { display: none; }
|
||||||
|
.SecurityAdmin .permissioncheckboxset .optionset li { float: none; width: auto; }
|
||||||
|
15
admin/scss/_SecurityAdmin.scss
Normal file
15
admin/scss/_SecurityAdmin.scss
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
.SecurityAdmin {
|
||||||
|
.cms-edit-form .cms-content-header h2 {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Same rules in .member-profile-form
|
||||||
|
.permissioncheckboxset {
|
||||||
|
.optionset {
|
||||||
|
li {
|
||||||
|
float: none;
|
||||||
|
width: auto;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -47,3 +47,4 @@
|
|||||||
@import "tree.scss";
|
@import "tree.scss";
|
||||||
@import "menu.scss";
|
@import "menu.scss";
|
||||||
@import "ModelAdmin.scss";
|
@import "ModelAdmin.scss";
|
||||||
|
@import "SecurityAdmin.scss";
|
||||||
|
@ -14,56 +14,6 @@
|
|||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<% with EditForm %>
|
$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-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>
|
</div>
|
@ -42,7 +42,8 @@
|
|||||||
$('.permissioncheckboxset .valCMS_ACCESS_LeftAndMain input').entwine({
|
$('.permissioncheckboxset .valCMS_ACCESS_LeftAndMain input').entwine({
|
||||||
getCheckboxesExceptThisOne: function() {
|
getCheckboxesExceptThisOne: function() {
|
||||||
return $(this).parents('.field:eq(0)').find('li').filter(function(i) {
|
return $(this).parents('.field:eq(0)').find('li').filter(function(i) {
|
||||||
return ($(this).attr('class').match(/CMS_ACCESS_/));
|
var klass = $(this).attr('class');
|
||||||
|
return (klass ? klass.match(/CMS_ACCESS_/) : false);
|
||||||
}).find('.checkbox').not(this);
|
}).find('.checkbox').not(this);
|
||||||
},
|
},
|
||||||
onmatch: function() {
|
onmatch: function() {
|
||||||
|
@ -366,8 +366,6 @@ class Security extends Controller {
|
|||||||
// only display tabs when more than one authenticator is provided
|
// only display tabs when more than one authenticator is provided
|
||||||
// to save bandwidth and reduce the amount of custom styling needed
|
// to save bandwidth and reduce the amount of custom styling needed
|
||||||
if(count($forms) > 1) {
|
if(count($forms) > 1) {
|
||||||
Requirements::css(SAPPHIRE_DIR . "/css/Form.css");
|
|
||||||
|
|
||||||
// Needed because the <base href=".."> in the template makes problems
|
// Needed because the <base href=".."> in the template makes problems
|
||||||
// with the tabstrip library otherwise
|
// with the tabstrip library otherwise
|
||||||
$link_base = Director::absoluteURL($this->Link("login"));
|
$link_base = Director::absoluteURL($this->Link("login"));
|
||||||
|
Loading…
Reference in New Issue
Block a user