Added the new copy feature to the group_permissions app.

Conflicts:
	fusionpbx/core/users/group_permissions.php
	fusionpbx/core/users/permissions_copy.php
This commit is contained in:
Nuno Miguel Reis
2013-09-17 17:55:10 +00:00
parent 4141dd437b
commit 72dfb07364
2 changed files with 138 additions and 1 deletions
+2 -1
View File
@@ -206,6 +206,7 @@ require_once "resources/paging.php";
echo "<tr>\n";
echo "<td width='50%' align=\"left\" nowrap=\"nowrap\"><b>".$text['header-group_permissions'].$group_name."</b></td>\n";
echo "<td width='50%' align=\"right\">\n";
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']."'>";
}
@@ -281,4 +282,4 @@ require_once "resources/paging.php";
//show the footer
require_once "resources/footer.php";
?>
?>