summaryrefslogtreecommitdiffstats
path: root/application/forms/EventAdd.php
diff options
context:
space:
mode:
authorBjörn Geiger2011-09-14 17:58:10 +0200
committerBjörn Geiger2011-09-14 17:58:10 +0200
commit6fbc509d055ee7b1ee3e21cf57973126ba255f7b (patch)
tree190915c08d50c4ca8264463dd6e73e670a11a887 /application/forms/EventAdd.php
parentMerge branch 'master' of git.openslx.org:lsfks/projekte/poolctrl (diff)
downloadpoolctrl-6fbc509d055ee7b1ee3e21cf57973126ba255f7b.tar.gz
poolctrl-6fbc509d055ee7b1ee3e21cf57973126ba255f7b.tar.xz
poolctrl-6fbc509d055ee7b1ee3e21cf57973126ba255f7b.zip
repeat Felder ein und ausblenden
Diffstat (limited to 'application/forms/EventAdd.php')
-rwxr-xr-xapplication/forms/EventAdd.php75
1 files changed, 43 insertions, 32 deletions
diff --git a/application/forms/EventAdd.php b/application/forms/EventAdd.php
index 90d25f6..d20d0cc 100755
--- a/application/forms/EventAdd.php
+++ b/application/forms/EventAdd.php
@@ -186,6 +186,7 @@ class Application_Form_EventAdd extends Zend_Form
),
'required' => false,
'label' => 'Repeat End:',
+ 'onchange' => 'repeatOptionChanged("repeatOption");',
));
$this->addElement('text', 'repeatEnd', array(
@@ -194,55 +195,65 @@ class Application_Form_EventAdd extends Zend_Form
array('StringLength', false, array(0, 16)),
),
'required' => false,
- 'label' => 'Repeat end:',
- 'value' => 'mm/dd/yyyy H:min'
- ));
+ 'label' => 'Repeat End Date:',
+ 'value' => 'mm/dd/yyyy H:min',
+ ));
+
+ $this->addElement('text', 'repeatings', array(
+ 'filters' => array('StringTrim'),
+ 'validators' => array(
+ array('StringLength', false, array(0, 16)),
+ ),
+ 'required' => false,
+ 'label' => 'Repeatings:',
+ 'value' => '1',
+ ));
- $this->addElement('text', 'participants', array(
+ $this->addElement('text', 'participants', array(
'filters' => array('StringTrim'),
'validators' => array(
- array('StringLength', false, array(0, 40)),
- ),
+ array('StringLength', false, array(0, 40)),
+ ),
'required' => false,
'label' => 'Participants:',
- ));
+ ));
- $this->addElement('text', 'note', array(
+ $this->addElement('text', 'note', array(
'filters' => array('StringTrim'),
'validators' => array(
- array('StringLength', false, array(0, 140)),
- ),
+ array('StringLength', false, array(0, 140)),
+ ),
'required' => false,
'label' => 'Note:',
- ));
+ ));
- if(!isset($this->poolID)) {
- $poolfield = $this->createElement('select','pbs_poolID');
- $poolfield ->setLabel('Pool:');
+ if(!isset($this->poolID)) {
+ $poolfield = $this->createElement('select','pbs_poolID');
+ $poolfield ->setLabel('Pool:');
- if(count($this->poollist)>0){
- foreach($this->poollist as $pool => $p){
- $poolfield->addMultiOption($p->getID(), $p->getTitle());
- }
- }
+ if(count($this->poollist)>0){
+ foreach($this->poollist as $pool => $p){
+ $poolfield->addMultiOption($p->getID(), $p->getTitle());
+ }
+ }
- $poolfield->setRegisterInArrayValidator(false);
- $this->addElement($poolfield);
- }
+ $poolfield->setRegisterInArrayValidator(false);
+ $this->addElement($poolfield);
+ }
- $bootosfield = $this->createElement('select','pbs_bootosID');
- $bootosfield ->setLabel('BootOS:');
+ $bootosfield = $this->createElement('select','pbs_bootosID');
+ $bootosfield ->setLabel('BootOS:');
- if(count($this->bootoslist)>0){
- foreach($this->bootoslist as $bootos => $b){
- $bootosfield->addMultiOption($b->getID(), $b->getTitle());
- }
- }
+ if(count($this->bootoslist)>0){
+ foreach($this->bootoslist as $bootos => $b){
+ $bootosfield->addMultiOption($b->getID(), $b->getTitle());
+ }
+ }
- $bootosfield->setRegisterInArrayValidator(false);
- $this->addElement($bootosfield);
+ $bootosfield->setRegisterInArrayValidator(false);
+ $this->addElement($bootosfield);
- $this->addElement('submit', 'add', array(
+ $this->addElement('submit', 'add', array(
'required' => false,
'ignore' => true,
'label' => 'Create Event'