aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2023-03-06 10:15:57 +0300
committerFrederick Muriuki Muriithi2023-03-06 10:15:57 +0300
commit530822468be436f1da0024a4b0dd85e0a2f69b7f (patch)
tree281147b997de0eb6faef7b4c4e3d3da1da359ccf
parente7c136949d3daf5310b33423f27918aaa9e92c65 (diff)
downloadgenenetwork2-530822468be436f1da0024a4b0dd85e0a2f69b7f.tar.gz
oauth2: group roles: commit missing template.
-rw-r--r--wqflask/wqflask/templates/oauth2/view-group-role.html40
1 files changed, 40 insertions, 0 deletions
diff --git a/wqflask/wqflask/templates/oauth2/view-group-role.html b/wqflask/wqflask/templates/oauth2/view-group-role.html
new file mode 100644
index 00000000..ca45fc4c
--- /dev/null
+++ b/wqflask/wqflask/templates/oauth2/view-group-role.html
@@ -0,0 +1,40 @@
+{%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%}
+<div class="container" style="min-width: 1250px;">
+ {{profile_nav("roles")}}
+ <h3>View Group Role</h3>
+
+ {{flash_me()}}
+
+ <div class="container-fluid">
+ <div class="row">
+ {%if group_role_error is defined%}
+ {{display_error("Group Role", group_role_error)}}
+ {%else%}
+ <table class="table">
+ <caption>Details for '{{group_role.role.role_name}}' Role</caption>
+ <thead>
+ <tr>
+ <th>Privilege</th>
+ <th>Description</th>
+ </tr>
+ </thead>
+ <tbody>
+ {%for privilege in group_role.role.privileges%}
+ <tr>
+ <td>{{privilege.privilege_id}}</td>
+ <td>{{privilege.privilege_description}}</td>
+ </tr>
+ {%endfor%}
+ </tbody>
+ </table>
+ {%endif%}
+ </div>
+
+ </div>
+
+</div>
+{%endblock%}