From b5da5e3ed085e07dc7367f222cc7a1beade000a6 Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Mon, 10 Jun 2024 12:34:12 -0500 Subject: Implement "Resource Role Page" Show the page, providing all UI elements necessary, even if the elements themselves are not active. --- .../templates/oauth2/view-resource-role.html | 98 ++++++++++++++++++++++ gn2/wqflask/templates/oauth2/view-resource.html | 6 +- 2 files changed, 103 insertions(+), 1 deletion(-) create mode 100644 gn2/wqflask/templates/oauth2/view-resource-role.html (limited to 'gn2/wqflask/templates/oauth2') diff --git a/gn2/wqflask/templates/oauth2/view-resource-role.html b/gn2/wqflask/templates/oauth2/view-resource-role.html new file mode 100644 index 00000000..05df41d6 --- /dev/null +++ b/gn2/wqflask/templates/oauth2/view-resource-role.html @@ -0,0 +1,98 @@ +{%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%} + +{%macro unassign_button(resource_id, role_id, privilege_id)%} +
+{%endmacro%} + +Role Name | +Privilege | +Action | +
---|---|---|
+ {{role.role_name}} | +{{priv.privilege_description}} | +{{unassign_button(resource.resource_id, role.role_id, priv.privilege_id)}} | +
{{priv.privilege_description}} | +{{unassign_button(resource.resource_id, role.role_id, priv.privilege_id)}} | +|
+ + {{title}}: + + + This role has no privileges. + + |
+