starting to edit form preferences

This commit is contained in:
Robbt 2019-01-15 08:45:21 -05:00
parent f0bbb8e2be
commit 62c3f16d83
2 changed files with 21 additions and 0 deletions

View File

@ -101,6 +101,23 @@ class Application_Form_GeneralPreferences extends Zend_Form_SubForm
));
// add intro playlist select here
$introPlaylistSelect = new Zend_Form_Element_Select("introPlaylistSelect");
$introPlaylistSelect->setLabel(_("Intro Autoloading Playlist"));
$introPlaylistSelect->setMultiOptions(Application_Model_Library::getPlaylistNames(true));
$introPlaylistSelect->setValue(null);
$introPlaylistSelect->setDecorators(array('ViewHelper'));
$this->addElement($introPlaylistSelect);
$outroPlaylistSelect = new Zend_Form_Element_Select("outroPlaylistSelect");
$outroPlaylistSelect->setLabel(_("Outro Autoloading Playlist"));
$outroPlaylistSelect->setMultiOptions(Application_Model_Library::getPlaylistNames(true));
$outroPlaylistSelect->setValue(null);
$outroPlaylistSelect->setDecorators(array('ViewHelper'));
$this->addElement($outroPlaylistSelect);
$podcast_album_override = new Zend_Form_Element_Radio('podcastAlbumOverride');
$podcast_album_override->setLabel(_('Podcast Album Override'));
$podcast_album_override->setMultiOptions(array(

View File

@ -31,6 +31,10 @@
<?php echo $this->element->getElement('stationDefaultCrossfadeDuration')->render() ?>
<?php echo $this->element->getElement('introPlaylistSelect')->render() ?>
<?php echo $this->element->getElement('outroPlaylistSelect')->render() ?>
<?php echo $this->element->getElement('podcastAlbumOverride')->render() ?>
<?php echo $this->element->getElement('podcastAutoSmartblock')->render() ?>