From 2a8868e7687894bee161dd602221abf187cafae4 Mon Sep 17 00:00:00 2001 From: Björn Geiger Date: Thu, 27 Oct 2011 16:09:31 +0200 Subject: Edit weiter korrigiert --- application/forms/EventEdit.php | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'application/forms/EventEdit.php') diff --git a/application/forms/EventEdit.php b/application/forms/EventEdit.php index 840ecca..c5809e0 100755 --- a/application/forms/EventEdit.php +++ b/application/forms/EventEdit.php @@ -101,6 +101,7 @@ class Application_Form_EventEdit extends Zend_Form { $this->setName('EventEdit'); $this->setMethod('post'); + $this->setAttrib('onsubmit', "return editEnableOnSubmit();"); $eventcategoryfield = $this->createElement('select','category'); $eventcategoryfield ->setLabel('Category:'); @@ -178,7 +179,7 @@ class Application_Form_EventEdit extends Zend_Form array('StringLength', false, array(0, 19)), array('Date', false, array('format' => 'mm/dd/yyyy h:i a')), array('DateGreaterThan', false, array('element' => 'End', 'compare' => 'Start', 'min' => $this->getElement('start')->getValue())), - array('EventOverlapping', false, array('poolID' => $this->params['pbs_poolID'], 'start' => $this->getElement('start')->getValue())), + array('EventOverlapping', false, array('poolID' => $this->params['pbs_poolID'], 'start' => $this->getElement('start')->getValue())), ), 'required' => false, 'label' => 'End:', @@ -193,14 +194,14 @@ class Application_Form_EventEdit extends Zend_Form 'label' => 'Repeat:', 'value'=>array(0,1), 'checked' => 'checked', - 'disabled' => true, + 'readOnly' => true, )); } else { $this->addElement('checkbox', 'repeat', array( 'required' => false, 'label' => 'Repeat:', 'value'=>array(0,1), - 'disabled' => true, + 'readOnly' => true, )); } @@ -255,7 +256,7 @@ class Application_Form_EventEdit extends Zend_Form 'required' => false, 'label' => 'Repeat End Date:', 'value' => date('m/d/Y h:i a', strtotime($this->params['repeatdate'])), - 'disabled' => true, + 'readOnly' => true, )); } else { $this->addElement('text', 'repeatdate', array( @@ -267,7 +268,7 @@ class Application_Form_EventEdit extends Zend_Form 'required' => false, 'label' => 'Repeat End Date:', 'value' => 'mm/dd/yyyy h:min am/pm', - 'disabled' => true, + 'readOnly' => true, )); } } @@ -282,7 +283,7 @@ class Application_Form_EventEdit extends Zend_Form 'required' => false, 'label' => 'Repeatings:', 'value' => $this->params['repeatings'], - 'disabled' => true, + 'readOnly' => true, )); } else { $this->addElement('text', 'repeatings', array( @@ -293,7 +294,7 @@ class Application_Form_EventEdit extends Zend_Form 'required' => false, 'label' => 'Repeatings:', 'value' => '1', - 'disabled' => true, + 'readOnly' => true, )); } } -- cgit v1.2.3-55-g7522