MINOR Removed unnecessary "type" field from LeftAndMain->AddForm(), added generic styles for buttons

This commit is contained in:
Ingo Schommer 2011-04-17 19:57:36 +12:00
parent d21dce0a09
commit a2b39e55c1
2 changed files with 14 additions and 5 deletions

View File

@ -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');

View File

@ -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