From 37f4995185653678d54c3f2af6a12d4ebca41b73 Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Fri, 7 Jun 2024 15:26:41 -0500 Subject: PoC: Display resource roles on View-Resource page. --- gn2/wqflask/templates/oauth2/view-resource.html | 56 +++++++++++++++++++++++-- 1 file changed, 52 insertions(+), 4 deletions(-) (limited to 'gn2/wqflask/templates') diff --git a/gn2/wqflask/templates/oauth2/view-resource.html b/gn2/wqflask/templates/oauth2/view-resource.html index 6ae5af56..2d11a302 100644 --- a/gn2/wqflask/templates/oauth2/view-resource.html +++ b/gn2/wqflask/templates/oauth2/view-resource.html @@ -231,10 +231,58 @@

Available Resource Roles

-

- - The resource roles will go here when they are implemented … -

+ + + + + + + + + + + + {%for role in resource_roles%} + {%for priv in role.privileges%} + {%if loop.index == 1%} + + + + + + + + {%else%} + + + + + {%endif%} + {%endfor%} + {%else%} + + + + {%endfor%} + +
Roles Acting on this Resource
Role NamePrivilegePrivilege DescriptionActions
+ {{role.role_name}} + {{priv.privilege_id}}{{priv.privilege_description}} + Delete + + Edit +
{{priv.privilege_id}}{{priv.privilege_description}}
+

+ + No roles defined for this resource. +

+
-- cgit v1.2.3