diff --git a/airtime_mvc/application/forms/EditAudioMD.php b/airtime_mvc/application/forms/EditAudioMD.php index 7c9e40f8a..8de93425f 100644 --- a/airtime_mvc/application/forms/EditAudioMD.php +++ b/airtime_mvc/application/forms/EditAudioMD.php @@ -199,27 +199,37 @@ class Application_Form_EditAudioMD extends Zend_Form $cueOut->setValidators(array($cueOutValidator)); $this->addElement($cueOut); - // Add the submit button - $this->addElement('button', 'editmdsave', array( - 'ignore' => true, - 'class' => 'btn md-save right-floated', - 'label' => _('OK'), - 'decorators' => array( - 'ViewHelper' - ) - )); - - // Add the submit button + // Add the cancel button $this->addElement('button', 'editmdcancel', array( 'ignore' => true, - 'class' => 'btn md-cancel right-floated', + 'class' => 'btn md-cancel', 'label' => _('Cancel'), 'decorators' => array( 'ViewHelper' ) )); - $this->addDisplayGroup(array('editmdcancel', 'editmdsave'), 'submitButtons', array( + // Add the submit button + $this->addElement('button', 'editmdsave', array( + 'ignore' => true, + 'class' => 'btn md-save', + 'label' => _('Save'), + 'decorators' => array( + 'ViewHelper' + ) + )); + + // Button to open the publish dialog + $this->addElement('button', 'publishdialog', array( + 'ignore' => true, + 'class' => 'btn md-publish', + 'label' => _('Publish track'), + 'decorators' => array( + 'ViewHelper' + ) + )); + + $this->addDisplayGroup(array('editmdsave', 'editmdcancel', 'publishdialog'), 'submitButtons', array( 'decorators' => array( 'FormElements', 'DtDdWrapper' diff --git a/airtime_mvc/application/views/scripts/library/edit-file-md.phtml b/airtime_mvc/application/views/scripts/library/edit-file-md.phtml index e573db8a1..e8016aaae 100644 --- a/airtime_mvc/application/views/scripts/library/edit-file-md.phtml +++ b/airtime_mvc/application/views/scripts/library/edit-file-md.phtml @@ -1,6 +1,6 @@ -