summaryrefslogtreecommitdiffstats
path: root/application/forms/EventEdit.php
diff options
context:
space:
mode:
Diffstat (limited to 'application/forms/EventEdit.php')
-rwxr-xr-xapplication/forms/EventEdit.php17
1 files changed, 16 insertions, 1 deletions
diff --git a/application/forms/EventEdit.php b/application/forms/EventEdit.php
index 00c3f9a..00eb210 100755
--- a/application/forms/EventEdit.php
+++ b/application/forms/EventEdit.php
@@ -130,7 +130,22 @@ class Application_Form_EventEdit extends Zend_Form
'value' => $this->params['title'],
));
$this->getElement('title')->addPrefixPath('Poolctrl_Validate', 'Poolctrl/Validator/', 'validate');
-
+
+ if(isset($this->params['force'])) {
+ $this->addElement('checkbox', 'force', array(
+ 'required' => false,
+ 'label' => 'Force event:',
+ 'value' => array(0,1),
+ 'checked' => 'checked',
+ ));
+ } else {
+ $this->addElement('checkbox', 'force', array(
+ 'required' => false,
+ 'label' => 'Force event:',
+ 'value' => array(0,1),
+ ));
+ }
+
$this->addElement('text', 'start', array(
'filters' => array('StringTrim'),
'validators' => array(