diff options
| author | Björn Geiger | 2011-03-28 14:38:51 +0200 |
|---|---|---|
| committer | Björn Geiger | 2011-03-28 14:38:51 +0200 |
| commit | 49ebfec064bb6d7a732466fa2071778665beb184 (patch) | |
| tree | 98895379ee4152b7312bc415cfc6e2f3dd305faf /application/modules/dev/forms/RoleEdit.php | |
| parent | Einführung einer Rightcategory (diff) | |
| download | pbs2-49ebfec064bb6d7a732466fa2071778665beb184.tar.gz pbs2-49ebfec064bb6d7a732466fa2071778665beb184.tar.xz pbs2-49ebfec064bb6d7a732466fa2071778665beb184.zip | |
Einführung von Vererbung von Rollen
Diffstat (limited to 'application/modules/dev/forms/RoleEdit.php')
| -rw-r--r-- | application/modules/dev/forms/RoleEdit.php | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/application/modules/dev/forms/RoleEdit.php b/application/modules/dev/forms/RoleEdit.php index 2c79050..c0617b7 100644 --- a/application/modules/dev/forms/RoleEdit.php +++ b/application/modules/dev/forms/RoleEdit.php @@ -3,9 +3,9 @@ class dev_Form_RoleEdit extends Zend_Form { - public function init() - { - $this->setName("RoleEdit"); + public function init() + { + $this->setName("RoleEdit"); $this->setMethod('post'); $this->addElement('text', 'title', array( @@ -28,6 +28,17 @@ class dev_Form_RoleEdit extends Zend_Form 'value' => $_POST['description'], )); + if($_POST['inheritance'] == 1) { + $this->addElement('checkbox', 'inheritance', array( + 'label' => 'Inheritance:', + 'checked' => 'checked', + )); + } else { + $this->addElement('checkbox', 'inheritance', array( + 'label' => 'Inheritance:', + )); + } + $this->addElement('hidden', 'groupID', array( 'value' => $_POST['groupID'], )); @@ -44,7 +55,7 @@ class dev_Form_RoleEdit extends Zend_Form 'label' => 'Cancel', 'onclick' => 'location.href="/dev/role/"', )); - } + } } |
