Groups: Restore (but keep disabled) list control icons for default system groups.
This commit is contained in:
parent
28f37d9201
commit
f1d0bbf44d
|
|
@ -462,4 +462,9 @@
|
|||
$text['message-group_exists']['pt-pt'] = "O Grupo já Existe";
|
||||
$text['message-group_exists']['fr-fr'] = "Groupe Existe Déjà";
|
||||
|
||||
$text['message-default_system_group']['en-us'] = "Default system groups cannot be edited or deleted.";
|
||||
$text['message-default_system_group']['es-cl'] = "Grupos predeterminados del sistema no pueden ser editados o eliminados.";
|
||||
$text['message-default_system_group']['pt-pt'] = "Grupos de sistema padrão não podem ser editados ou apagados.";
|
||||
$text['message-default_system_group']['fr-fr'] = "Les groupes du système par défaut ne peuvent pas être modifiés ou supprimés.";
|
||||
|
||||
?>
|
||||
|
|
@ -185,13 +185,21 @@ require_once "resources/require.php";
|
|||
$echo .= "</td>\n";
|
||||
$echo .= "<td class='row_stylebg' nowrap>".$group_description."</td>\n";
|
||||
$echo .= "<td class='list_control_icons' style='width: 25px;'>";
|
||||
if (!($domain_uuid == '' && in_array($group_name, $system_groups))) {
|
||||
if (permission_exists('group_edit')) {
|
||||
if (permission_exists('group_edit')) {
|
||||
if (!($domain_uuid == '' && in_array($group_name, $system_groups))) {
|
||||
$echo .= "<a href='groupedit.php?id=".$group_uuid."' alt='".$text['button-edit']."'>".$v_link_label_edit."</a>";
|
||||
}
|
||||
if (permission_exists('group_delete')) {
|
||||
else {
|
||||
$echo .= "<span onclick=\"alert('".$text['message-default_system_group']."');\" alt='".$text['button-edit']."'>".str_replace("list_control_icon", "list_control_icon_disabled", $v_link_label_edit)."</span>";
|
||||
}
|
||||
}
|
||||
if (permission_exists('group_delete')) {
|
||||
if (!($domain_uuid == '' && in_array($group_name, $system_groups))) {
|
||||
$echo .= "<a href='groupdelete.php?id=".$group_uuid."' onclick=\"return confirm('".$text['confirm-delete']."')\" alt='".$text['button-delete']."'>".$v_link_label_delete."</a>";
|
||||
}
|
||||
else {
|
||||
$echo .= "<span onclick=\"alert('".$text['message-default_system_group']."');\" alt='".$text['button-delete']."'>".str_replace("list_control_icon", "list_control_icon_disabled", $v_link_label_delete)."</span>";
|
||||
}
|
||||
}
|
||||
$echo .= "</td>\n";
|
||||
$echo .= "</tr>\n";
|
||||
|
|
|
|||
|
|
@ -212,7 +212,7 @@ else {
|
|||
echo "<a href='userdelete.php?id=".$row['user_uuid']."' alt='".$text['button-delete']."' onclick=\"return confirm('".$text['confirm-delete']."')\">".$v_link_label_delete."</a>";
|
||||
}
|
||||
else {
|
||||
echo "<span onclick=\"alert('".$text['message-cannot_delete_own_account']."');\">".$v_link_label_delete."</span>";
|
||||
echo "<span onclick=\"alert('".$text['message-cannot_delete_own_account']."');\">".str_replace("list_control_icon", "list_control_icon_disabled", $v_link_label_delete)."</span>";
|
||||
}
|
||||
}
|
||||
echo " </td>\n";
|
||||
|
|
|
|||
|
|
@ -228,6 +228,15 @@ img.list_control_icon {
|
|||
-moz-opacity: 0.4;
|
||||
}
|
||||
|
||||
img.list_control_icon_disabled {
|
||||
margin: 2px;
|
||||
width: 21px;
|
||||
height: 21px;
|
||||
border: none;
|
||||
opacity: 0.4;
|
||||
-moz-opacity: 0.4;
|
||||
}
|
||||
|
||||
form {
|
||||
margin: 0;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -228,6 +228,15 @@ img.list_control_icon {
|
|||
-moz-opacity: 0.4;
|
||||
}
|
||||
|
||||
img.list_control_icon_disabled {
|
||||
margin: 2px;
|
||||
width: 21px;
|
||||
height: 21px;
|
||||
border: none;
|
||||
opacity: 0.4;
|
||||
-moz-opacity: 0.4;
|
||||
}
|
||||
|
||||
form {
|
||||
margin: 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue