From 817d6025000225f5a4a4f505392caf9c0cb7c329 Mon Sep 17 00:00:00 2001 From: Björn Geiger Date: Mon, 10 Oct 2011 15:46:59 +0200 Subject: kleine Änderung --- application/forms/EventEdit.php | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'application') diff --git a/application/forms/EventEdit.php b/application/forms/EventEdit.php index 8a6ffc9..cc5d816 100755 --- a/application/forms/EventEdit.php +++ b/application/forms/EventEdit.php @@ -170,17 +170,17 @@ class Application_Form_EventEdit extends Zend_Form if( $this->params['repeat'] == 1) { $this->addElement('checkbox', 'repeat', array( 'required' => false, - 'onchange' => 'repeatChanged("repeat")', 'label' => 'Repeat:', 'value'=>array(0,1), 'checked' => 'checked', + 'disabled' => true, )); } else { $this->addElement('checkbox', 'repeat', array( - 'onchange' => 'repeatChanged("repeat")', 'required' => false, 'label' => 'Repeat:', 'value'=>array(0,1), + 'disabled' => true, )); } @@ -196,6 +196,7 @@ class Application_Form_EventEdit extends Zend_Form } $repeattypefield->setRegisterInArrayValidator(false); + $repeattypefield->setAttrib("disabled", true); if(isset($this->params['repeattype'])) { $repeattypefield->setValue($this->params['repeattype']); } @@ -213,6 +214,7 @@ class Application_Form_EventEdit extends Zend_Form } $repeatendfield->setRegisterInArrayValidator(false); + $repeatendfield->setAttrib("disabled", true); $repeatendfield->setAttrib('onchange', 'repeatendChanged("repeatend");'); if(isset($this->params['repeatend'])) { $repeatendfield->setValue($this->params['repeatend']); @@ -228,6 +230,7 @@ class Application_Form_EventEdit extends Zend_Form 'required' => false, 'label' => 'Repeat End Date:', 'value' => $this->params['repeatdate'], + 'disabled' => true, )); } else { $this->addElement('text', 'repeatdate', array( @@ -238,6 +241,7 @@ class Application_Form_EventEdit extends Zend_Form 'required' => false, 'label' => 'Repeat End Date:', 'value' => 'mm/dd/yyyy H:min', + 'disabled' => true, )); } @@ -250,6 +254,7 @@ class Application_Form_EventEdit extends Zend_Form 'required' => false, 'label' => 'Repeatings:', 'value' => $this->params['repeatings'], + 'disabled' => true, )); } else { $this->addElement('text', 'repeatings', array( @@ -260,6 +265,7 @@ class Application_Form_EventEdit extends Zend_Form 'required' => false, 'label' => 'Repeatings:', 'value' => '1', + 'disabled' => true, )); } @@ -364,7 +370,6 @@ class Application_Form_EventEdit extends Zend_Form )); echo '