summaryrefslogtreecommitdiffstats
path: root/application/forms/EventEdit.php
diff options
context:
space:
mode:
Diffstat (limited to 'application/forms/EventEdit.php')
-rwxr-xr-xapplication/forms/EventEdit.php15
1 files changed, 8 insertions, 7 deletions
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,
));
}
}