summaryrefslogtreecommitdiffstats
path: root/application/modules/user/forms/RoleAdd.php
diff options
context:
space:
mode:
authorSimon2011-04-08 14:04:14 +0200
committerSimon2011-04-08 14:04:14 +0200
commitfa31df79db10ae25413d1001ed6b4434fe13ded4 (patch)
tree91b7bac6a08e75ff01388f84e3474c6f3560db02 /application/modules/user/forms/RoleAdd.php
parentgraph nun auch mit mehreren gleihen kindern (diff)
parentAuch beim hinzufügen von weiteren Rechten nun Checkboxliste (diff)
downloadpbs2-fa31df79db10ae25413d1001ed6b4434fe13ded4.tar.gz
pbs2-fa31df79db10ae25413d1001ed6b4434fe13ded4.tar.xz
pbs2-fa31df79db10ae25413d1001ed6b4434fe13ded4.zip
Merge branch 'master' of openslx.org:lsfks/master-teamprojekt/pbs2
Diffstat (limited to 'application/modules/user/forms/RoleAdd.php')
-rw-r--r--application/modules/user/forms/RoleAdd.php16
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(