diff --git a/htdocs/user/perms.php b/htdocs/user/perms.php index cf055f8382c..bc8b15c7d51 100644 --- a/htdocs/user/perms.php +++ b/htdocs/user/perms.php @@ -316,29 +316,22 @@ print ''; print ''; print ''; -if (($caneditperms && empty($objMod->rights_admin_allowed)) || empty($object->admin)) { - if ($caneditperms) { - print ''; - } else { - print ''; - } - print ''; +if ($caneditperms) { + print ''; } else { - print ''; - print ''; + print ''; } - +print ''; print ''; print ''; - print ''."\n"; @@ -507,39 +500,45 @@ if ($result) { // Show break line print ''; + // Picto and label of module print ''; + // Permission and tick (2 columns) if (($caneditperms && empty($objMod->rights_admin_allowed)) || empty($object->admin)) { if ($caneditperms) { - print ''; + print ''; - print ''; } else { print ''; + print ''; } - print ''; } else { if ($caneditperms) { - print ''; - print ''; + print ''; } else { print ''; + print ''; } - print ''; } + // Description of permission (2 columns) print ''; - print ''; - // Permission and tick + // Permission and tick (2 columns) if (!empty($object->admin) && !empty($objMod->rights_admin_allowed)) { // Permission granted because admin if ($caneditperms) { print ''; @@ -621,7 +619,7 @@ if ($result) { print ''; } - // Description of permission + // Description of permission (2 columns) $permlabel = (!empty($conf->global->MAIN_USE_ADVANCED_PERMS) && ($langs->trans("PermissionAdvanced".$obj->id) != ("PermissionAdvanced".$obj->id)) ? $langs->trans("PermissionAdvanced".$obj->id) : (($langs->trans("Permission".$obj->id) != ("Permission".$obj->id)) ? $langs->trans("Permission".$obj->id) : $langs->trans($obj->label))); if (!$user->admin) { print '
'.$langs->trans("Module").''; - print ''.$langs->trans("All").""; - print ' / '; - print ''.$langs->trans("None").""; - print '  '; + print ''.$langs->trans("All").""; + print ' / '; + print ''.$langs->trans("None").""; + print '  '; print ''.img_picto('', 'folder-open', 'class="paddingright"').''.$langs->trans("ExpandAll").''; print ' | '; print ''.img_picto('', 'folder', 'class="paddingright"').''.$langs->trans("UndoExpandAll").''; print '
'; print ''; print img_object('', $picto, 'class="pictoobjectwidth paddingright"').' '.$objMod->getName(); print ''; print ''; + print ''; + print ''; print '   '; /*print 'module.'&confirm=yes&updatedmodulename='.$obj->module.'">'.$langs->trans("All").""; print ' / '; print 'module.'&confirm=yes&updatedmodulename='.$obj->module.'">'.$langs->trans("None").""; */ print ''; + print '   '; print ''; - //print img_object('', $picto, 'class="inline-block pictoobjectwidth"').' '.$objMod->getName(); print ''.img_picto($langs->trans("Administrator"), 'star').' ';