SAAS-939: Add option to preferences to display login button on radio page

This commit is contained in:
drigato 2015-07-09 14:38:44 -04:00
parent 9ec75f7179
commit 0601bd675e
6 changed files with 32 additions and 4 deletions

View file

@ -136,6 +136,17 @@ class Application_Form_GeneralPreferences extends Zend_Form_SubForm
$week_start_day->setMultiOptions($this->getWeekStartDays());
$week_start_day->setValue(Application_Model_Preference::GetWeekStartDay());
$this->addElement($week_start_day);
$radioPageLoginButton = new Zend_Form_Element_Checkbox("radioPageLoginButton");
$radioPageLoginButton->setDecorators(array(
'ViewHelper',
'Errors',
'Label'
));
$radioPageLoginButton->addDecorator('Label', array("class" => "enable-tunein"));
$radioPageLoginButton->setLabel(_("Display login button on your Radio Page?"));
$radioPageLoginButton->setValue(Application_Model_Preference::getRadioPageDisplayLoginButton());
$this->addElement($radioPageLoginButton);
}
private function getWeekStartDays()