summaryrefslogtreecommitdiffstats
path: root/application
diff options
context:
space:
mode:
authorBjörn Geiger2011-09-07 12:31:50 +0200
committerBjörn Geiger2011-09-07 12:31:50 +0200
commitcf192ca9b5190b5aade9d6ad195127984780f7de (patch)
tree87016c365c64225007892b34019ef76a1390aaa0 /application
parentkleine Korrektur von eben (diff)
downloadpoolctrl-cf192ca9b5190b5aade9d6ad195127984780f7de.tar.gz
poolctrl-cf192ca9b5190b5aade9d6ad195127984780f7de.tar.xz
poolctrl-cf192ca9b5190b5aade9d6ad195127984780f7de.zip
verschiedene Änderungen im AddForm
Diffstat (limited to 'application')
-rw-r--r--application/forms/EventAdd.php27
1 files changed, 19 insertions, 8 deletions
diff --git a/application/forms/EventAdd.php b/application/forms/EventAdd.php
index b803873..7bdac1d 100644
--- a/application/forms/EventAdd.php
+++ b/application/forms/EventAdd.php
@@ -78,16 +78,9 @@ class Application_Form_EventAdd extends Zend_Form
'validators' => array(
array('StringLength', false, array(0, 16)),
),
- 'required' => true,
+ 'required' => false,
'label' => 'End (mm/dd/yyyy H:min):',
));
-
- echo '<script type="text/javascript">
- $(function() {
- $( "#start" ).datetimepicker();
- $( "#end" ).datetimepicker();
- });
- </script>';
$this->addElement('checkbox', 'repeat', array(
'required' => false,
@@ -95,6 +88,23 @@ class Application_Form_EventAdd extends Zend_Form
'value'=>array(0,1),
));
+ $this->addElement('text', 'repeatEnd', array(
+ 'filters' => array('StringTrim'),
+ 'validators' => array(
+ array('StringLength', false, array(0, 16)),
+ ),
+ 'required' => false,
+ 'label' => 'Repeat end (mm/dd/yyyy H:min):',
+ ));
+
+ echo '<script type="text/javascript">
+ $(function() {
+ $("#start").datetimepicker();
+ $("#end").datetimepicker();
+ $("#repeatEnd").datetimepicker();
+ });
+ </script>';
+
$this->addElement('text', 'participants', array(
'filters' => array('StringTrim'),
'validators' => array(
@@ -114,6 +124,7 @@ class Application_Form_EventAdd extends Zend_Form
}
$eventcategoryfield->setRegisterInArrayValidator(false);
+ $eventcategoryfield->setAttrib('onchange', "eventcategoryfieldChanged('category');");
$this->addElement($eventcategoryfield);
$this->addElement('text', 'note', array(