summaryrefslogtreecommitdiffstats
path: root/application/forms/ConfigCreate.php
diff options
context:
space:
mode:
authorSimon2011-03-06 18:24:51 +0100
committerSimon2011-03-06 18:24:51 +0100
commit398f25856f0f8a398fd9326eb027816ee035b7a6 (patch)
tree24cc098acaa80cb5a912e87ce245f4199999b8c8 /application/forms/ConfigCreate.php
parentprint_a funktion zum debugging hinzugefügt damit sie von überall benutzbar ... (diff)
parentConfig fertig (diff)
downloadpbs2-398f25856f0f8a398fd9326eb027816ee035b7a6.tar.gz
pbs2-398f25856f0f8a398fd9326eb027816ee035b7a6.tar.xz
pbs2-398f25856f0f8a398fd9326eb027816ee035b7a6.zip
Merge branch 'master' of openslx.org:lsfks/master-teamprojekt/pbs2
Diffstat (limited to 'application/forms/ConfigCreate.php')
-rw-r--r--application/forms/ConfigCreate.php45
1 files changed, 42 insertions, 3 deletions
diff --git a/application/forms/ConfigCreate.php b/application/forms/ConfigCreate.php
index 2c9516d..705fd62 100644
--- a/application/forms/ConfigCreate.php
+++ b/application/forms/ConfigCreate.php
@@ -1,13 +1,52 @@
<?php
-class Application_Form_ConfigAdd extends Zend_Form
+class Application_Form_ConfigCreate extends Zend_Form
{
public function init()
{
- /* Form Elements & Other Definitions Here ... */
- }
+ $this->setName("ConfigCreate");
+ $this->setMethod('post');
+
+ $this->addElement('text', 'title', array(
+ 'filters' => array('StringTrim'),
+ 'validators' => array(
+ array('StringLength', false, array(0, 50)),
+ ),
+ 'required' => true,
+ 'label' => 'Title:',
+ ));
+
+ $this->addElement('text', 'groupID', array(
+ 'filters' => array('StringTrim'),
+ 'validators' => array(
+ array('StringLength', false, array(0, 50)),
+ ),
+ 'required' => true,
+ 'label' => 'GroupID:',
+ 'value' => '1',
+ ));
+
+ $this->addElement('textarea', 'shellscript', array(
+ 'filters' => array('StringTrim'),
+ 'validators' => array(
+ array('StringLength', false, array(0, 50)),
+ ),
+ 'required' => true,
+ 'label' => 'Shellscript:',
+ ));
+
+ $this->addElement('submit', 'createconfig', array(
+ 'required' => false,
+ 'ignore' => true,
+ 'label' => 'Create Config',
+ ));
+
+ $this->addElement('button', 'Cancel', array(
+ 'onclick' => 'self.location="/config"'
+ ));
+ }
}