From 662e9fd85eca97c4fb65a7a3733c5c088c530ea2 Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Mon, 10 Jun 2024 15:56:47 -0500 Subject: Unassign privilege from resource role. --- .../confirm-resource-role-unassign-privilege.html | 34 ++++++++++++++++++++++ .../templates/oauth2/view-resource-role.html | 7 +++-- 2 files changed, 39 insertions(+), 2 deletions(-) create mode 100644 gn2/wqflask/templates/oauth2/confirm-resource-role-unassign-privilege.html (limited to 'gn2/wqflask/templates/oauth2') diff --git a/gn2/wqflask/templates/oauth2/confirm-resource-role-unassign-privilege.html b/gn2/wqflask/templates/oauth2/confirm-resource-role-unassign-privilege.html new file mode 100644 index 00000000..988cf3b4 --- /dev/null +++ b/gn2/wqflask/templates/oauth2/confirm-resource-role-unassign-privilege.html @@ -0,0 +1,34 @@ +{%extends "base.html"%} +{%from "oauth2/profile_nav.html" import profile_nav%} +{%from "oauth2/display_error.html" import display_error%} +{%block title%}View User{%endblock%} +{%block content%} +
+ {{profile_nav(uipages, user_privileges)}} + {{flash_me()}} + +
+

+ Are you sure you want to unassign the privilege to + '{{privilege.privilege_description}}' from the role '{{role.role_name}}' + on resource '{{resource.resource_name}}'?

+ + + + + +
+
+{%endblock%} 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)%} -