SAAS-989 - Move file metadata editor to right-hand showbuilder pane
This commit is contained in:
parent
57c1d74286
commit
33d2fe0900
5 changed files with 124 additions and 50 deletions
|
@ -11,15 +11,13 @@ class Application_Form_EditAudioMD extends Zend_Form
|
|||
// Set the method for the display form to POST
|
||||
$this->setMethod('post');
|
||||
|
||||
$this->addElement('hidden', 'file_id', array(
|
||||
'value' => $p_id
|
||||
));
|
||||
$file_id = new Zend_Form_Element_Hidden('file_id');
|
||||
$file_id->setValue($p_id);
|
||||
$file_id->addDecorator('HtmlTag', array('tag' => 'div', 'style' => 'display:none'));
|
||||
$file_id->removeDecorator('Label');
|
||||
$this->addElement($file_id);
|
||||
|
||||
// Add title field
|
||||
/*$this->addElement('text', 'track_title', array(
|
||||
'label' => _('Title:'),
|
||||
'class' => 'input_text',
|
||||
'filters' => array('StringTrim'),
|
||||
));*/
|
||||
$track_title = new Zend_Form_Element_Text('track_title');
|
||||
$track_title->class = 'input_text';
|
||||
$track_title->setLabel(_('Title:'))
|
||||
|
@ -30,11 +28,6 @@ class Application_Form_EditAudioMD extends Zend_Form
|
|||
$this->addElement($track_title);
|
||||
|
||||
// Add artist field
|
||||
/*$this->addElement('text', 'artist_name', array(
|
||||
'label' => _('Creator:'),
|
||||
'class' => 'input_text',
|
||||
'filters' => array('StringTrim'),
|
||||
));*/
|
||||
$artist_name = new Zend_Form_Element_Text('artist_name');
|
||||
$artist_name->class = 'input_text';
|
||||
$artist_name->setLabel(_('Creator:'))
|
||||
|
@ -51,7 +44,7 @@ class Application_Form_EditAudioMD extends Zend_Form
|
|||
->setFilters(array('StringTrim'))
|
||||
->setValidators(array(
|
||||
new Zend_Validate_StringLength(array('max' => 512))
|
||||
));;
|
||||
));
|
||||
$this->addElement($album_title);
|
||||
|
||||
// Add track number field
|
||||
|
@ -177,9 +170,9 @@ class Application_Form_EditAudioMD extends Zend_Form
|
|||
|
||||
// Add the submit button
|
||||
$this->addElement('button', 'editmdsave', array(
|
||||
'ignore' => true,
|
||||
'class' => 'btn',
|
||||
'label' => _('Save'),
|
||||
'ignore' => true,
|
||||
'class' => 'btn btn-small',
|
||||
'label' => _('Save'),
|
||||
'decorators' => array(
|
||||
'ViewHelper'
|
||||
)
|
||||
|
@ -188,7 +181,7 @@ class Application_Form_EditAudioMD extends Zend_Form
|
|||
// Add the submit button
|
||||
$this->addElement('button', 'editmdcancel', array(
|
||||
'ignore' => true,
|
||||
'class' => 'btn md-cancel',
|
||||
'class' => 'btn btn-small md-cancel',
|
||||
'label' => _('Cancel'),
|
||||
'decorators' => array(
|
||||
'ViewHelper'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue