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 '
| '.$langs->trans("Module").' | '; -if (($caneditperms && empty($objMod->rights_admin_allowed)) || empty($object->admin)) { - if ($caneditperms) { - print ''; - print 'id.'&action=addrights&token='.newToken().'&entity='.$entity.'&module=allmodules&confirm=yes">'.$langs->trans("All").""; - print ' / '; - print 'id.'&action=delrights&token='.newToken().'&entity='.$entity.'&module=allmodules&confirm=yes">'.$langs->trans("None").""; - print ' | '; - } else { - print ''; - } - print ' | '; +if ($caneditperms) { + print ' | '; + print 'id.'&action=addrights&token='.newToken().'&entity='.$entity.'&module=allmodules&confirm=yes">'.$langs->trans("All").""; + print ' / '; + print 'id.'&action=delrights&token='.newToken().'&entity='.$entity.'&module=allmodules&confirm=yes">'.$langs->trans("None").""; + print ' | '; } else { - print ''; - print ' | '; + print ' | '; } - +print ' | '; print ' | '; print ' | '; print ''.img_picto('', 'folder-open', 'class="paddingright"').''.$langs->trans("ExpandAll").''; print ' | '; print ''.img_picto('', 'folder', 'class="paddingright"').''.$langs->trans("UndoExpandAll").''; print ' | '; - print '||
| '; print ''; print img_object('', $picto, 'class="pictoobjectwidth paddingright"').' '.$objMod->getName(); print ''; print ' | '; + // Permission and tick (2 columns) if (($caneditperms && empty($objMod->rights_admin_allowed)) || empty($object->admin)) { if ($caneditperms) { - print ''; + print ''; + print ' | '; + print ''; print ' | '; - print ''; } else { print ''; + print ' | '; } - print ' | '; } else { if ($caneditperms) { - print ' | '; /*print 'id.'&action=addrights&token='.newToken().'&entity='.$entity.'&module='.$obj->module.'&confirm=yes&updatedmodulename='.$obj->module.'">'.$langs->trans("All").""; print ' / '; print 'id.'&action=delrights&token='.newToken().'&entity='.$entity.'&module='.$obj->module.'&confirm=yes&updatedmodulename='.$obj->module.'">'.$langs->trans("None").""; */ print ' | '; - print ''; + print ''; + print ' | '; } else { print ''; + print ' | '; } - print ' | '; } + // Description of permission (2 columns) print ' | '; - print ' | '; print ' |