aboutsummaryrefslogtreecommitdiff
path: root/gn2/wqflask/templates/oauth2
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2024-06-11 11:34:21 -0500
committerAlexander_Kabui2024-08-28 15:02:45 +0300
commitc3b20093ea8bca6f02547c9c926d7b52163aee24 (patch)
tree4ae5f599d12d743f53a4d8ec84e75c631af1ea31 /gn2/wqflask/templates/oauth2
parentf17ed0dc4aa43013142217ce85cb5711aa164ac9 (diff)
downloadgenenetwork2-c3b20093ea8bca6f02547c9c926d7b52163aee24.tar.gz
Provide UI to delete role.
Diffstat (limited to 'gn2/wqflask/templates/oauth2')
-rw-r--r--gn2/wqflask/templates/oauth2/view-resource-role.html10
1 files changed, 10 insertions, 0 deletions
diff --git a/gn2/wqflask/templates/oauth2/view-resource-role.html b/gn2/wqflask/templates/oauth2/view-resource-role.html
index 57008f44..4bd0ab45 100644
--- a/gn2/wqflask/templates/oauth2/view-resource-role.html
+++ b/gn2/wqflask/templates/oauth2/view-resource-role.html
@@ -130,8 +130,18 @@
</table>
</div>
{%endif%}
+
+ {%if users is defined and users | length == 0%}
+ <div class="row">
+ <h3>Delete this role</h3>
+ <p class="text-danger">
+ <strong>Delete Role</strong>:
+ <span class="glyphicon glyphicon-exclamation-sign text-danger"></span>
&nbsp;
+ This will delete this role, and you will no longer have access to it.
</p>
+ </div>
+ {%endif%}
{%endif%}
{%endif%}
</div>