diff options
| author | michael pereira | 2011-03-30 02:21:26 +0200 |
|---|---|---|
| committer | michael pereira | 2011-03-30 02:21:26 +0200 |
| commit | 6bcafce824f5b6b97af726eb620397f214438a00 (patch) | |
| tree | 5620bdbb4bc2729ab2e3fcaaee1db30c294da514 /application/modules/user/forms/Preboot.php | |
| parent | Paar Notifier hinzugefügt (diff) | |
| download | pbs2-6bcafce824f5b6b97af726eb620397f214438a00.tar.gz pbs2-6bcafce824f5b6b97af726eb620397f214438a00.tar.xz pbs2-6bcafce824f5b6b97af726eb620397f214438a00.zip | |
Preboot Metadaten Recht gesetzt
Diffstat (limited to 'application/modules/user/forms/Preboot.php')
| -rw-r--r-- | application/modules/user/forms/Preboot.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/application/modules/user/forms/Preboot.php b/application/modules/user/forms/Preboot.php index d46ae9c..cc437c5 100644 --- a/application/modules/user/forms/Preboot.php +++ b/application/modules/user/forms/Preboot.php @@ -4,7 +4,11 @@ class user_Form_Preboot extends Zend_Form { private $action; + private $rights; + public function setRights($rights){ + $this->rights = $rights; + } public function setAction($action){ $this->action = $action; @@ -15,6 +19,9 @@ class user_Form_Preboot extends Zend_Form $this->setName($this->action); $this->setMethod('post'); + if ($this->rights == 'meta') + $meta = true; + $this->addElement('text', 'title', array( 'filters' => array('StringTrim'), 'validators' => array( @@ -31,6 +38,7 @@ class user_Form_Preboot extends Zend_Form ), 'required' => true, 'size' => 50, + 'readOnly' => $meta, 'label' => 'Path to Preboot:', )); |
