diff options
author | Frederick Muriuki Muriithi | 2023-08-07 07:58:09 +0300 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2023-08-07 09:26:12 +0300 |
commit | 6d9c61dc0072b96b12153e64940b465306f25bfb (patch) | |
tree | a4957c7967e56b4527c1e926744a65a3326935ce /gn_auth/templates/admin/list-oauth2-clients.html | |
parent | 6ab6d46ab4b1611ed72bdbce85cf9324ce69b305 (diff) | |
download | gn-auth-6d9c61dc0072b96b12153e64940b465306f25bfb.tar.gz |
Change imports to new unified db module.
Diffstat (limited to 'gn_auth/templates/admin/list-oauth2-clients.html')
-rw-r--r-- | gn_auth/templates/admin/list-oauth2-clients.html | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/gn_auth/templates/admin/list-oauth2-clients.html b/gn_auth/templates/admin/list-oauth2-clients.html new file mode 100644 index 0000000..0104f0d --- /dev/null +++ b/gn_auth/templates/admin/list-oauth2-clients.html @@ -0,0 +1,56 @@ +{%extends "base.html"%} + +{%block title%}Genenetwork3: OAuth2 Clients{%endblock%} + +{%block pagetitle%}OAuth2 Clients{%endblock%} + +{%block content%} +{{flash_messages()}} + +<table class="table table-hover table-striped cell-border no-footer"> + <caption>List of registered OAuth2 clients</caption> + <thead> + <tr> + <th>Client ID</th> + <th>Client Name</th> + <th>Default Redirect URI</th> + <th>Owner</th> + <th colspan="2">Actions</th> + </tr> + </thead> + + <tbody> + {%for client in clients%} + <tr> + <td>{{client.client_id}}</td> + <td>{{client.client_metadata.client_name}}</td> + <td>{{client.client_metadata.default_redirect_uri}}</td> + <td>{{client.user.name}} ({{client.user.email}})</td> + <td> + <a href="{{url_for('oauth2.admin.view_client', client_id=client.client_id)}}" + title"View/Edit client {{client.client_metadata.client_name}}" + class="btn btn-info"> + View/Edit + </a> + </td> + <td> + <form id="frm:delete:{{client.client_id}}" + action="{{url_for('oauth2.admin.delete_client')}}" + method="POST"> + <input type="hidden" name="client_id" value="{{client.client_id}}" /> + <input type="submit" value="Delete" + title"Delete client {{client.client_metadata.client_name}}" + class="btn btn-danger" /> + </form> + </td> + </tr> + {%else%} + <tr> + <td colspan="4" style="text-align: center;"> + No registered OAuth2 clients! + </td> + </tr> + {%endfor%} + </tbody> +</table> +{%endblock%} |