Changed all other buttons that says "Submit" to "Save. Also added some CSS stuff so that the "Save" button at the top of Preference page have some space between itself and the form below.
32 lines
837 B
PHP
32 lines
837 B
PHP
<?php
|
|
|
|
class Application_Form_PlaylistMetadata extends Zend_Form{
|
|
|
|
public function init()
|
|
{
|
|
// Add username element
|
|
$this->addElement('text', 'title', array(
|
|
'label' => 'Title:',
|
|
'class' => 'input_text',
|
|
'required' => false,
|
|
'filters' => array('StringTrim'),
|
|
'validators' => array(
|
|
'NotEmpty',
|
|
)
|
|
));
|
|
|
|
// Add the comment element
|
|
$this->addElement('textarea', 'description', array(
|
|
'label' => 'Description:',
|
|
'class' => 'input_text_area',
|
|
'required' => false,
|
|
));
|
|
|
|
// Add the comment element
|
|
$this->addElement('button', 'new_playlist_submit', array(
|
|
'label' => 'Save',
|
|
'ignore' => true
|
|
));
|
|
}
|
|
}
|
|
|