summaryrefslogtreecommitdiffstats
path: root/application/modules/user/forms/Config.php
diff options
context:
space:
mode:
authormichael pereira2011-04-25 11:40:40 +0200
committermichael pereira2011-04-25 11:40:40 +0200
commite2d929c54a0d951c9bae51df7df5178bf9f0066f (patch)
tree142a271540cb0467350c91d1818340b0b09c8b7f /application/modules/user/forms/Config.php
parentauto-close removed, handled by fbgui now (diff)
downloadpbs2-e2d929c54a0d951c9bae51df7df5178bf9f0066f.tar.gz
pbs2-e2d929c54a0d951c9bae51df7df5178bf9f0066f.tar.xz
pbs2-e2d929c54a0d951c9bae51df7df5178bf9f0066f.zip
config fertig
Diffstat (limited to 'application/modules/user/forms/Config.php')
-rw-r--r--application/modules/user/forms/Config.php24
1 files changed, 15 insertions, 9 deletions
diff --git a/application/modules/user/forms/Config.php b/application/modules/user/forms/Config.php
index 53e260d..3b961b9 100644
--- a/application/modules/user/forms/Config.php
+++ b/application/modules/user/forms/Config.php
@@ -1,4 +1,4 @@
-<?php
+ <?php
/*
* Copyright (c) 2011 - OpenSLX GmbH, RZ Uni Freiburg
* This program is free software distributed under the GPL version 2.
@@ -26,6 +26,7 @@ class user_Form_Config extends Zend_Form
public function setType($type){
$this->type = $type;
}
+
public function init()
{
$this->setName($this->action);
@@ -45,18 +46,23 @@ class user_Form_Config extends Zend_Form
'label' => 'Title:',
));
-
- $this->addElement('textarea', 'shellscript', array(
+ $this->addElement('textarea', 'description', array(
'filters' => array('StringTrim'),
'validators' => array(
array('StringLength', false, array(0, 50)),
),
- 'required' => true,
- 'rows' => 10,
- 'cols' => 70,
- 'readOnly' => $meta,
- 'label' => 'Shellscript:',
- ));
+ 'required' => false,
+ 'rows' => 5,
+ 'cols' => 50,
+ 'label' => 'Description:',
+ ));
+
+ if($this->type == 'group'){
+ $visible = $this->createElement('checkbox','visible');
+ $visible->setLabel('Visible:');
+ $visible->setAttrib('readOnly', $meta);
+ $this->addElement($visible);
+ }
if($this->action == "createconfig")
$label = "Create Config";