summaryrefslogtreecommitdiffstats
path: root/application/forms/EventEdit.php
diff options
context:
space:
mode:
authorBjörn Geiger2011-10-18 12:03:46 +0200
committerBjörn Geiger2011-10-18 12:03:46 +0200
commit4ec5a81cede32951073f3baa05916500a14c2e96 (patch)
tree9e2a04fd3f2f1d63bf1d7c8b5c0ed1e722df6d2b /application/forms/EventEdit.php
parentweitere Korrektur (diff)
downloadpoolctrl-4ec5a81cede32951073f3baa05916500a14c2e96.tar.gz
poolctrl-4ec5a81cede32951073f3baa05916500a14c2e96.tar.xz
poolctrl-4ec5a81cede32951073f3baa05916500a14c2e96.zip
verschiedenes
Diffstat (limited to 'application/forms/EventEdit.php')
-rwxr-xr-xapplication/forms/EventEdit.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/application/forms/EventEdit.php b/application/forms/EventEdit.php
index c223527..6866dd2 100755
--- a/application/forms/EventEdit.php
+++ b/application/forms/EventEdit.php
@@ -113,6 +113,7 @@ class Application_Form_EventEdit extends Zend_Form
$eventcategoryfield->setRegisterInArrayValidator(false);
$eventcategoryfield->setValue($this->params['category']);
+ $eventcategoryfield->setAttrib("disabled", true);
$eventcategoryfield->setAttrib('onchange', "editeventcategoryfieldChanged('category');");
$this->addElement($eventcategoryfield);
@@ -138,7 +139,7 @@ class Application_Form_EventEdit extends Zend_Form
'label' => 'Start:',
'value' => date ('m/d/Y h:i a', strtotime( $this->params['start'])),
));
-
+
if(isset($this->params['end'])) {
$this->addElement('text', 'end', array(
'filters' => array('StringTrim'),
@@ -152,7 +153,7 @@ class Application_Form_EventEdit extends Zend_Form
'value' => date ('m/d/Y h:i a', strtotime( $this->params['end'])),
));
$this->getElement('end')->addPrefixPath('Poolctrl_Validate', 'Poolctrl/Validator/', 'validate');
- } else {
+ } else if($this->params['categoryLabel'] != "Boot" && $this->params['categoryLabel'] != "Shutdown") {
$this->addElement('text', 'end', array(
'filters' => array('StringTrim'),
'validators' => array(