Group Manager / Permissions: Moved 'Restore Default' button to Group Manager page, instead of under each individual Group Permission page.

This commit is contained in:
Nate Jones
2014-05-09 01:33:58 +00:00
parent c149b94d7d
commit 93610d25c1
2 changed files with 3 additions and 3 deletions

View File

@@ -319,9 +319,6 @@ require_once "resources/paging.php";
echo "<td width='50%' align=\"right\">\n";
echo " <input type='button' class='btn' name='' alt='".$text['button-back']."' onclick=\"window.location='groups.php'\" value='".$text['button-back']."'> ";
echo " <input type='button' class='btn' alt='".$text['button-copy']."' onclick=\"var new_ext = prompt('".$text['message_extension']."'); if (new_ext != null) { window.location='permissions_copy.php?id=".$group_name."&ext=' + new_ext; }\" value='".$text['button-copy']."'>";
if (permission_exists('group_edit')) {
echo " <input type='button' class='btn' alt='".$text['button-restore']."' onclick=\"window.location='permissions_default.php'\" value='".$text['button-restore']."'>";
}
echo "</td>\n";
echo "</tr>\n";
echo "<tr>\n";

View File

@@ -69,6 +69,9 @@ else {
if (permission_exists('user_view')) {
echo " <input type='button' class='btn' onclick=\"window.location='index.php'\" value='".$text['header-user_manager']."'>";
}
if (permission_exists('group_edit')) {
echo " <input type='button' class='btn' alt='".$text['button-restore']."' onclick=\"window.location='permissions_default.php'\" value='".$text['button-restore']."'>";
}
echo "</td>\n";
echo "</tr></table>";