summaryrefslogtreecommitdiffstats
path: root/application/forms/ConfigEdit.php
diff options
context:
space:
mode:
Diffstat (limited to 'application/forms/ConfigEdit.php')
-rw-r--r--application/forms/ConfigEdit.php45
1 files changed, 42 insertions, 3 deletions
diff --git a/application/forms/ConfigEdit.php b/application/forms/ConfigEdit.php
index 6403f06..3883595 100644
--- a/application/forms/ConfigEdit.php
+++ b/application/forms/ConfigEdit.php
@@ -3,11 +3,50 @@
class Application_Form_ConfigEdit extends Zend_Form
{
- public function init()
+ public function init()
{
- /* Form Elements & Other Definitions Here ... */
- }
+ $this->setName("ConfigEdit");
+ $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', 'editconfig', array(
+ 'required' => false,
+ 'ignore' => true,
+ 'label' => 'Edit Config',
+ ));
+
+ $this->addElement('button', 'Cancel', array(
+ 'onclick' => 'self.location="/config"'
+ ));
+ }
}