summaryrefslogtreecommitdiffstats
path: root/application/forms/EventAdd.php
diff options
context:
space:
mode:
authorBjörn Geiger2011-09-07 13:34:41 +0200
committerBjörn Geiger2011-09-07 13:34:41 +0200
commit4619d1e00733c3a08cbef39fb1910ef3c6f99641 (patch)
treec37d411b2fbf631a7077a343ebc45842eab4ffa6 /application/forms/EventAdd.php
parentMerge branch 'master' of git.openslx.org:lsfks/projekte/poolctrl (diff)
downloadpoolctrl-4619d1e00733c3a08cbef39fb1910ef3c6f99641.tar.gz
poolctrl-4619d1e00733c3a08cbef39fb1910ef3c6f99641.tar.xz
poolctrl-4619d1e00733c3a08cbef39fb1910ef3c6f99641.zip
minor
Diffstat (limited to 'application/forms/EventAdd.php')
-rw-r--r--application/forms/EventAdd.php26
1 files changed, 13 insertions, 13 deletions
diff --git a/application/forms/EventAdd.php b/application/forms/EventAdd.php
index ccc1d87..2bbded4 100644
--- a/application/forms/EventAdd.php
+++ b/application/forms/EventAdd.php
@@ -49,6 +49,19 @@ class Application_Form_EventAdd extends Zend_Form
$this->setName('EventAdd');
$this->setMethod('post');
+ $eventcategoryfield = $this->createElement('select','category');
+ $eventcategoryfield ->setLabel('Category:');
+
+ if(count($this->eventcategorylist)>0){
+ foreach($this->eventcategorylist as $category => $c){
+ $eventcategoryfield->addMultiOption($c->getID(), $c->getTitle());
+ }
+ }
+
+ $eventcategoryfield->setRegisterInArrayValidator(false);
+ $eventcategoryfield->setAttrib('onchange', "eventcategoryfieldChanged('category');");
+ $this->addElement($eventcategoryfield);
+
$this->addElement('text', 'title', array(
'filters' => array('StringTrim'),
'validators' => array(
@@ -107,19 +120,6 @@ class Application_Form_EventAdd extends Zend_Form
'label' => 'Participants:',
));
- $eventcategoryfield = $this->createElement('select','category');
- $eventcategoryfield ->setLabel('Category:');
-
- if(count($this->eventcategorylist)>0){
- foreach($this->eventcategorylist as $category => $c){
- $eventcategoryfield->addMultiOption($c->getID(), $c->getTitle());
- }
- }
-
- $eventcategoryfield->setRegisterInArrayValidator(false);
- $eventcategoryfield->setAttrib('onchange', "eventcategoryfieldChanged('category');");
- $this->addElement($eventcategoryfield);
-
$this->addElement('text', 'note', array(
'filters' => array('StringTrim'),
'validators' => array(