summaryrefslogtreecommitdiffstats
path: root/application/modules/user/forms/RoleAdd.php
diff options
context:
space:
mode:
authormichael pereira2011-04-08 15:20:55 +0200
committermichael pereira2011-04-08 15:20:55 +0200
commit7067b772abaf370fb9b73c33e4b92d4dfbc5b2cf (patch)
tree6d901d595c04b9b5156b6803bfb2fbcb2785273c /application/modules/user/forms/RoleAdd.php
parentkcl gefixt (diff)
parentFooter ist wieder an der Box (diff)
downloadpbs2-7067b772abaf370fb9b73c33e4b92d4dfbc5b2cf.tar.gz
pbs2-7067b772abaf370fb9b73c33e4b92d4dfbc5b2cf.tar.xz
pbs2-7067b772abaf370fb9b73c33e4b92d4dfbc5b2cf.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(