From 47fc559ca2b554f54112586e8d198d883f8c8118 Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Mon, 10 Jun 2024 09:36:09 -0500 Subject: Simplify 'View-Resource page' UI Get rid of the resource role details and provide button-like elements to help navigate to view more details. --- gn2/wqflask/templates/oauth2/view-resource.html | 63 +++++-------------------- 1 file changed, 11 insertions(+), 52 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 2d11a302..451bfbd7 100644 --- a/gn2/wqflask/templates/oauth2/view-resource.html +++ b/gn2/wqflask/templates/oauth2/view-resource.html @@ -2,6 +2,10 @@ {%from "oauth2/profile_nav.html" import profile_nav%} {%from "oauth2/display_error.html" import display_error%} {%block title%}View User{%endblock%} +{%block css%} + + +{%endblock%} {%block content%}
{{profile_nav("resources", user_privileges)}} @@ -231,58 +235,13 @@

Available Resource Roles

- - - - - - - - - - - - {%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. -

-
+
+ {%for role in resource_roles%} + + {{role.role_name}} + + {%endfor%} +
-- cgit v1.2.3