SAAS-712: UI Improvements

This commit is contained in:
drigato 2015-04-09 14:22:50 -04:00
parent 84231f811a
commit f238faa937
6 changed files with 39 additions and 35 deletions

View file

@ -10,22 +10,15 @@ class Application_Form_Player extends Zend_Form_SubForm
array('ViewScript', array('viewScript' => 'form/player.phtml'))
));
$displayTitle = new Zend_Form_Element_Checkbox('player_display_title');
$displayTitle->setValue(true);
$displayTitle->setLabel(_('Display title?'));
//$displayTitle->addDecorator('Label', array('placement' => 'APPEND'));
$displayTitle->setDecorators(array(
$title = new Zend_Form_Element_Text('player_title');
$title->setValue(_('Now Playing'));
$title->setLabel(_('Title:'));
$title->setDecorators(array(
'ViewHelper',
'Errors',
'Label'
));
$displayTitle->addDecorator('Label', array('class' => 'player-checkbox', 'placement' => 'APPEND'));
$this->addElement($displayTitle);
$title = new Zend_Form_Element_Text('player_title');
$title->setValue(_('Now Playing'));
$title->setLabel(_('Title:'));
$title->removeDecorator('DtDdWrapper');
$title->addDecorator('Label', array('class' => 'player-title'));
$this->addElement($title);
$streamMode = new Zend_Form_Element_Radio('player_stream_mode');
@ -76,6 +69,7 @@ class Application_Form_Player extends Zend_Form_SubForm
$embedSrc->setAttrib('cols', '40')
->setAttrib('rows', '4');
$embedSrc->setLabel(_("Embeddable code:"));
$embedSrc->setDescription(_("Copy this code and paste it into your website's HTML to embed the player in your site."));
$embedSrc->setValue('<iframe frameborder="0" width="280" height="210" src="'.Application_Common_HTTPHelper::getStationUrl().'embed/player?stream=auto&title=Now Playing"></iframe>');
$this->addElement($embedSrc);