summaryrefslogtreecommitdiffstats
path: root/application/forms/EventEdit.php
diff options
context:
space:
mode:
Diffstat (limited to 'application/forms/EventEdit.php')
-rw-r--r--application/forms/EventEdit.php23
1 files changed, 5 insertions, 18 deletions
diff --git a/application/forms/EventEdit.php b/application/forms/EventEdit.php
index b49b8f9..fb3faa3 100644
--- a/application/forms/EventEdit.php
+++ b/application/forms/EventEdit.php
@@ -71,7 +71,7 @@ class Application_Form_EventEdit extends Zend_Form
$eventcategoryfield->setRegisterInArrayValidator(false);
$eventcategoryfield->setValue($this->params['category']);
- $eventcategoryfield->setAttrib('onchange', "eventcategoryfieldChanged('category');");
+ $eventcategoryfield->setAttrib('onchange', "editeventcategoryfieldChanged('category');");
$this->addElement($eventcategoryfield);
$this->addElement('text', 'title', array(
@@ -131,8 +131,9 @@ class Application_Form_EventEdit extends Zend_Form
array('Date', false, array('format' => 'mm/dd/yyyy H:i')),
array('DateGreaterThan', false, array('element' => 'End', 'compare' => 'Start', 'min' => $this->getElement('start')->getValue())),
),
- 'required' => false,
- 'label' => 'End:',
+ 'required' => false,
+ 'label' => 'End:',
+ 'value' => 'mm/dd/yyyy H:min',
));
$this->getElement('end')->addPrefixPath('Poolctrl_Validate', 'Poolctrl/Validator/', 'validate');
}
@@ -186,19 +187,6 @@ class Application_Form_EventEdit extends Zend_Form
'value' => $this->params['participants'],
));
- $eventcategoryfield = new Zend_Form_Element_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->setValue( $this->params['category']);
- $this->addElement($eventcategoryfield);
-
$this->addElement('text', 'note', array(
'filters' => array('StringTrim'),
'validators' => array(
@@ -249,8 +237,7 @@ class Application_Form_EventEdit extends Zend_Form
));
echo '<script type="text/javascript">
- repeatChanged("repeat");
- eventcategoryfieldChanged("category");
+ editeventcategoryfieldChanged("category");
$(function() {
$("#start").datetimepicker();
$("#end").datetimepicker();