From 5688b750744f8568414dc745961747e5629bd194 Mon Sep 17 00:00:00 2001 From: Simon Date: Mon, 7 Mar 2011 13:57:04 +0100 Subject: Pool actions zum bearbeiten von Pools hinzugefügt --- application/forms/Pool.php | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 application/forms/Pool.php (limited to 'application/forms/Pool.php') diff --git a/application/forms/Pool.php b/application/forms/Pool.php new file mode 100644 index 0000000..0cef533 --- /dev/null +++ b/application/forms/Pool.php @@ -0,0 +1,44 @@ +setName("pool"); + $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('textarea', 'description', array( + 'filters' => array('StringTrim'), + 'required' => false, + 'label' => 'Description:', + )); + // TODO: Add target of Filter + + $this->addElement('text', 'location', array( + 'filters' => array('StringTrim'), + 'validators' => array( + array('StringLength', false, array(0, 50)), + ), + 'required' => true, + 'label' => 'Location:', + )); + + $this->addElement('submit', 'add', array( + 'required' => false, + 'ignore' => true, + 'label' => 'Save', + )); + } + + +} + -- cgit v1.2.3-55-g7522