CC-2753: Ability to disable stream 1 but still show it in the interface

- interface change
- all elements becomes 'disabled' depending on 'disable_stream_conf' flag
This commit is contained in:
James 2011-09-02 16:13:30 -04:00
parent 0c72b8b6bf
commit fa929d45a6
5 changed files with 56 additions and 0 deletions

View file

@ -20,6 +20,9 @@ class Application_Form_StreamSetting extends Zend_Form
->setRequired(false)
->setValue(($setting['output_sound_device'] == "true")?1:0)
->setDecorators(array('ViewHelper'));
if(Application_Model_Preference::GetDisableStreamConf() == "true"){
$output_sound_device->setAttrib("readonly", true);
}
$this->addElement($output_sound_device);
}