CC-3001: Preferences->"Submit" button renamed to "Save", and should be at the top and the bottom of the screen

Fixed by:
1. changing label to say "Save"
2. wrap the preference form inside another form;
   within the wrapper form, add a submit button at the top
This commit is contained in:
Yuchen Wang 2011-11-07 17:43:38 -05:00
parent a363a53166
commit 04bcc28b5e
2 changed files with 15 additions and 7 deletions

View file

@ -11,7 +11,7 @@ class Application_Form_Preferences extends Zend_Form
$this->setDecorators(array(
array('ViewScript', array('viewScript' => 'form/preferences.phtml'))
));
$general_pref = new Application_Form_GeneralPreferences();
$this->addSubForm($general_pref, 'preferences_general');
@ -24,7 +24,7 @@ class Application_Form_Preferences extends Zend_Form
$this->addElement('submit', 'submit', array(
'class' => 'ui-button ui-state-default right-floated',
'ignore' => true,
'label' => 'Submit',
'label' => 'Save',
'decorators' => array(
'ViewHelper'
)