aboutsummaryrefslogtreecommitdiff
path: root/gn2/wqflask/templates/oauth2/view-resource-role.html
diff options
context:
space:
mode:
Diffstat (limited to 'gn2/wqflask/templates/oauth2/view-resource-role.html')
-rw-r--r--gn2/wqflask/templates/oauth2/view-resource-role.html32
1 files changed, 32 insertions, 0 deletions
diff --git a/gn2/wqflask/templates/oauth2/view-resource-role.html b/gn2/wqflask/templates/oauth2/view-resource-role.html
index c4c9d3fc..57008f44 100644
--- a/gn2/wqflask/templates/oauth2/view-resource-role.html
+++ b/gn2/wqflask/templates/oauth2/view-resource-role.html
@@ -98,6 +98,38 @@
</form>
</div>
+ {%if user_error is defined%}
+ {{display_error("Users", user_error)}}
+ {%endif%}
+
+ {%if users is defined and users | length > 0%}
+ <div class="row">
+ <h3>Users</h3>
+
+ <table class="table">
+ <caption>
+ Users assigned role '{{role.role_name}}' on resource
+ '{{resource.resource_name}}'
+ </caption>
+
+ <thead>
+ <tr>
+ <th>Email</th>
+ <th>Name</th>
+ </tr>
+ </thead>
+
+ <tbody>
+ {%for user in users%}
+ <tr>
+ <td>{{user.email}}</td>
+ <td>{{user.name}}</td>
+ </tr>
+ {%endfor%}
+ </tbody>
+ </table>
+ </div>
+ {%endif%}
&nbsp;
</p>
{%endif%}