diff options
Diffstat (limited to 'application/modules/user/forms/Config.php')
| -rw-r--r-- | application/modules/user/forms/Config.php | 24 |
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"; |
