aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2024-06-11 11:34:21 -0500
committerFrederick Muriuki Muriithi2024-06-11 11:35:08 -0500
commit999489a44405664d1d289158763474dae0b99297 (patch)
treea159b4b488737c6879eac44db610711bd2f04f5f
parent8f82e6348a531dc17cff12a3fb8b401d99ff4138 (diff)
downloadgenenetwork2-999489a44405664d1d289158763474dae0b99297.tar.gz
Provide UI to delete role.
-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>