SAAS-1234 - bind station feed url to angular data model

This commit is contained in:
Duncan Sommerville 2015-11-19 17:09:49 -05:00
parent c328515f4b
commit 641cfb9432
5 changed files with 11 additions and 28 deletions

View file

@ -17,16 +17,6 @@ class Application_Form_PodcastPreferences extends Zend_Form_SubForm {
));
$stationPodcastPrivacy->setValue($isPrivate);
$this->addElement($stationPodcastPrivacy);
$stationPodcast = PodcastQuery::create()->findOneByDbId(Application_Model_Preference::getStationPodcastId());
$url = $stationPodcast->getDbUrl();
$feedUrl = new Zend_Form_Element_Text("stationPodcastFeedUrl");
$feedUrl->setAttrib('class', 'input_text')
->setAttrib('disabled', 'disabled')
->setRequired(false)
->setLabel(_("Feed URL"))
->setValue($url);
$this->addElement($feedUrl);
}
}