aboutsummaryrefslogtreecommitdiff
path: root/gn2/wqflask/templates/oauth2/view-resource-role.html
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2024-06-10 15:56:47 -0500
committerFrederick Muriuki Muriithi2024-06-10 15:56:47 -0500
commit662e9fd85eca97c4fb65a7a3733c5c088c530ea2 (patch)
tree4f5f9eb196586ff09d12d49fe4b18301354cbaf8 /gn2/wqflask/templates/oauth2/view-resource-role.html
parentfcde5e0d388c00c4f428d01def27907cd58625de (diff)
downloadgenenetwork2-662e9fd85eca97c4fb65a7a3733c5c088c530ea2.tar.gz
Unassign privilege from resource role.
Diffstat (limited to 'gn2/wqflask/templates/oauth2/view-resource-role.html')
-rw-r--r--gn2/wqflask/templates/oauth2/view-resource-role.html7
1 files changed, 5 insertions, 2 deletions
diff --git a/gn2/wqflask/templates/oauth2/view-resource-role.html b/gn2/wqflask/templates/oauth2/view-resource-role.html
index 05df41d6..a1aa8676 100644
--- a/gn2/wqflask/templates/oauth2/view-resource-role.html
+++ b/gn2/wqflask/templates/oauth2/view-resource-role.html
@@ -5,8 +5,10 @@
{%block content%}
{%macro unassign_button(resource_id, role_id, privilege_id)%}
-<form method="POST"
- action="#"
+<form method="GET"
+ action="{{url_for('oauth2.resource.unassign_privilege_from_resource_role',
+ resource_id=resource_id,
+ role_id=role_id)}}"
id="frm_unlink_privilege_{{privilege_id}}">
<input type="hidden" name="resource_id" value="{{resource_id}}" />
<input type="hidden" name="role_id" value="{{role_id}}" />
@@ -17,6 +19,7 @@
<div class="container">
{{profile_nav(uipages, user_privileges)}}
+ {{flash_me()}}
{%if resource_error is defined%}
{{display_error("Resource", resource_error)}}
{%else%}