Permalink
Browse files

MINOR Removed unnecessary "type" field from LeftAndMain->AddForm(), a…

…dded generic styles for buttons
  • Loading branch information...
1 parent d21dce0 commit a2b39e55c159f99b2a0852abf92175e02bc4abf8 @chillu chillu committed Apr 17, 2011
Showing with 14 additions and 5 deletions.
  1. +3 −4 admin/code/LeftAndMain.php
  2. +11 −1 admin/scss/_forms.scss
View
7 admin/code/LeftAndMain.php
@@ -850,18 +850,17 @@ function AddForm() {
$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
12 admin/scss/_forms.scss
@@ -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

0 comments on commit a2b39e5

Please sign in to comment.