MINOR Removed unnecessary "type" field from LeftAndMain->AddForm(), added generic styles for buttons
This commit is contained in:
parent
d21dce0a09
commit
a2b39e55c1
|
@ -850,18 +850,17 @@ class LeftAndMain extends Controller {
|
|||
$class = $this->stat('tree_class');
|
||||
|
||||
$typeMap = array($class => singleton($class)->i18n_singular_name());
|
||||
$typeField = new DropdownField('Type', false, $typeMap, $class);
|
||||
$form = new Form(
|
||||
$this,
|
||||
'AddForm',
|
||||
new FieldSet(
|
||||
new HiddenField('ParentID'),
|
||||
$typeField->performReadonlyTransformation()
|
||||
new HiddenField('ParentID')
|
||||
),
|
||||
new FieldSet(
|
||||
new FormAction('doAdd', _t('AssetAdmin_left.ss.GO','Go'))
|
||||
$addAction = new FormAction('doAdd', _t('AssetAdmin_left.ss.GO','Go'))
|
||||
)
|
||||
);
|
||||
$addAction->addExtraClass('ss-ui-action-constructive');
|
||||
$form->addExtraClass('actionparams');
|
||||
$form->addExtraClass('add-form');
|
||||
|
||||
|
|
|
@ -15,8 +15,18 @@
|
|||
background: #fff url(../../images/network-save.gif) no-repeat center left;
|
||||
}
|
||||
|
||||
// Buttons
|
||||
|
||||
.ui-state-default.ss-ui-action-constructive {
|
||||
@include linear-gradient(color-stops(#77b53f, #0c8a44));
|
||||
color: white;
|
||||
}
|
||||
|
||||
.ui-state-default.ss-ui-action-destructive {
|
||||
color: red;
|
||||
}
|
||||
|
||||
.edit-form {
|
||||
|
||||
padding-bottom: 20px;
|
||||
|
||||
// Hide first level tabs for CMS, see CMSEditForm.ss
|
||||
|
|
Loading…
Reference in New Issue