CC-4090: Make code style PSR compliant
-removed all trailing whitespace in forms directory -replace all tabs with 4 spaces
This commit is contained in:
parent
d9cde230cd
commit
7ce4934cdc
25 changed files with 297 additions and 297 deletions
|
@ -11,13 +11,13 @@ class Application_Form_AddShowLiveStream extends Zend_Form_SubForm
|
|||
->setRequired(false)
|
||||
->setDecorators(array('ViewHelper'));
|
||||
$this->addElement($cb_airtime_auth);
|
||||
|
||||
|
||||
$cb_custom_auth = new Zend_Form_Element_Checkbox("cb_custom_auth");
|
||||
$cb_custom_auth ->setLabel("Use Custom Authentication:")
|
||||
->setRequired(false)
|
||||
->setDecorators(array('ViewHelper'));
|
||||
$this->addElement($cb_custom_auth);
|
||||
|
||||
|
||||
//custom username
|
||||
$custom_username = new Zend_Form_Element_Text('custom_username');
|
||||
$custom_username->setAttrib('class', 'input_text')
|
||||
|
@ -29,7 +29,7 @@ class Application_Form_AddShowLiveStream extends Zend_Form_SubForm
|
|||
new ConditionalNotEmpty(array("cb_custom_auth"=>"1"))))
|
||||
->setDecorators(array('ViewHelper'));
|
||||
$this->addElement($custom_username);
|
||||
|
||||
|
||||
//custom password
|
||||
$custom_password = new Zend_Form_Element_Password('custom_password');
|
||||
$custom_password->setAttrib('class', 'input_text')
|
||||
|
@ -42,20 +42,20 @@ class Application_Form_AddShowLiveStream extends Zend_Form_SubForm
|
|||
new ConditionalNotEmpty(array("cb_custom_auth"=>"1"))))
|
||||
->setDecorators(array('ViewHelper'));
|
||||
$this->addElement($custom_password);
|
||||
|
||||
|
||||
$connection_url = Application_Model_Preference::GetLiveDJSourceConnectionURL();
|
||||
if(trim($connection_url) == ""){
|
||||
$connection_url = "N/A";
|
||||
}
|
||||
|
||||
|
||||
$this->setDecorators(array(
|
||||
array('ViewScript', array('viewScript' => 'form/add-show-live-stream.phtml', "connection_url"=>$connection_url))
|
||||
));
|
||||
}
|
||||
|
||||
|
||||
public function isValid($data){
|
||||
$isValid = parent::isValid($data);
|
||||
|
||||
|
||||
if($data['cb_custom_auth'] == 1){
|
||||
if(trim($data['custom_username']) == ''){
|
||||
$element = $this->getElement("custom_username");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue