summaryrefslogtreecommitdiffstats
path: root/application/forms
diff options
context:
space:
mode:
authorSimon2011-03-06 13:32:09 +0100
committerSimon2011-03-06 13:32:09 +0100
commit79c0af755487c51e98f91d977bcbcfce61955ad0 (patch)
treec8dbc7df42c622837238f7475a9eabdb08e788b2 /application/forms
parentMerge branch 'master' of openslx.org:lsfks/master-teamprojekt/pbs2 (diff)
downloadpbs2-79c0af755487c51e98f91d977bcbcfce61955ad0.tar.gz
pbs2-79c0af755487c51e98f91d977bcbcfce61955ad0.tar.xz
pbs2-79c0af755487c51e98f91d977bcbcfce61955ad0.zip
sql-files aufgeräumt && filter geändert
Diffstat (limited to 'application/forms')
-rw-r--r--application/forms/FilterAdd.php6
-rw-r--r--application/forms/FilterEntriesAdd.php4
2 files changed, 4 insertions, 6 deletions
diff --git a/application/forms/FilterAdd.php b/application/forms/FilterAdd.php
index c3395c6..43efb71 100644
--- a/application/forms/FilterAdd.php
+++ b/application/forms/FilterAdd.php
@@ -4,7 +4,7 @@ class Application_Form_FilterAdd extends Zend_Form
{
public function init()
- {
+ {
$this->setName("Add Filter");
$this->setMethod('post');
@@ -18,7 +18,7 @@ class Application_Form_FilterAdd extends Zend_Form
));
$this->addElement('textarea', 'description', array(
'filters' => array('StringTrim'),
- 'required' => true,
+ 'required' => false,
'label' => 'Description:',
));
$this->addElement('text', 'priority', array(
@@ -29,7 +29,7 @@ class Application_Form_FilterAdd extends Zend_Form
'required' => true,
'label' => 'Priority:',
));
- $submit = $this->addElement('submit', 'add', array(
+ $this->addElement('submit', 'add', array(
'required' => false,
'ignore' => true,
'label' => 'Save',
diff --git a/application/forms/FilterEntriesAdd.php b/application/forms/FilterEntriesAdd.php
index 2fd19ae..7b3f52b 100644
--- a/application/forms/FilterEntriesAdd.php
+++ b/application/forms/FilterEntriesAdd.php
@@ -10,14 +10,12 @@ class Application_Form_FilterEntriesAdd extends Zend_Form
$this->setName("Add Filterentry");
$this->setMethod('post');
-
try{
$filtertypemapper = new Application_Model_FilterTypeMapper();
$filtertype = $filtertypemapper->fetchAll();
}catch (Zend_Exception $e) {
echo "Error message 1: " . $e->getMessage() . "\n";
- }
-
+ }
$filtertypes = $this->createElement('select','filtertypeID');
$filtertypes ->setLabel('Type:');
foreach($filtertype as $f){