diff options
author | Björn Geiger | 2011-04-08 13:20:06 +0200 |
---|---|---|
committer | Björn Geiger | 2011-04-08 13:20:06 +0200 |
commit | fb9e5f028899f8205541fe86d7eb9c5e12c4a5ad (patch) | |
tree | bd1864cd6dcd4668ba9131b04bf6490ef9e803b3 /application/modules/user/forms/RoleAdd.php | |
parent | highlight in Bootmenu gefixt und das default-Bootmenu bekomtm kein Link zum s... (diff) | |
download | pbs2-fb9e5f028899f8205541fe86d7eb9c5e12c4a5ad.tar.gz pbs2-fb9e5f028899f8205541fe86d7eb9c5e12c4a5ad.tar.xz pbs2-fb9e5f028899f8205541fe86d7eb9c5e12c4a5ad.zip |
Auch beim hinzufügen von weiteren Rechten nun Checkboxliste
Diffstat (limited to 'application/modules/user/forms/RoleAdd.php')
-rw-r--r-- | application/modules/user/forms/RoleAdd.php | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/application/modules/user/forms/RoleAdd.php b/application/modules/user/forms/RoleAdd.php index 5968b47..d165701 100644 --- a/application/modules/user/forms/RoleAdd.php +++ b/application/modules/user/forms/RoleAdd.php @@ -32,6 +32,21 @@ class user_Form_RoleAdd extends Zend_Form )); $sform = new Zend_Form_SubForm(array('legend' => 'Rights:')); + + $sform->addElement('button', 'checkAll', array( + 'required' => false, + 'ignore' => true, + 'label' => 'Check All', + 'class' => 'leftbutton', + 'onclick' => "checkAllCheckBoxes(new Array('inheritance'));", + )); + + $sform->addElement('button', 'uncheckAll', array( + 'required' => false, + 'ignore' => true, + 'label' => 'Uncheck All', + 'onclick' => "uncheckAllCheckBoxes(new Array('inheritance'));", + )); if(count($this->rightlist) > 0) { foreach($this->rightlist as $rightcategory => $rights) { foreach($rights as $rightID => $rightTitle) { @@ -46,6 +61,7 @@ class user_Form_RoleAdd extends Zend_Form unset($elements); } } + $this->addSubForm($sform, 'rights'); $this->addElement('checkbox', 'inheritance', array( |