diff options
author | Frederick Muriuki Muriithi | 2024-03-15 04:28:26 +0300 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2024-03-15 04:29:24 +0300 |
commit | a6ef95af5b6b072acdc02ba4db08c1bdda4c1f1a (patch) | |
tree | 9950b211af91945e9fcfe658a37dbde77ea25075 /gn3/templates/admin/register-client.html | |
parent | dd0b29c07017ec398c447ca683dd4b4be18d73b7 (diff) | |
download | genenetwork3-a6ef95af5b6b072acdc02ba4db08c1bdda4c1f1a.tar.gz |
Remove ALL html templates from GeneNetwork3
GN3 provides an API to provide data, and needs no HTML UI.
Diffstat (limited to 'gn3/templates/admin/register-client.html')
-rw-r--r-- | gn3/templates/admin/register-client.html | 78 |
1 files changed, 0 insertions, 78 deletions
diff --git a/gn3/templates/admin/register-client.html b/gn3/templates/admin/register-client.html deleted file mode 100644 index daac977..0000000 --- a/gn3/templates/admin/register-client.html +++ /dev/null @@ -1,78 +0,0 @@ -{%extends "base.html"%} - -{%block title%}Genenetwork3: Register OAuth2 Client{%endblock%} - -{%block pagetitle%}Register OAuth2 Client{%endblock%} - -{%block content%} -{{flash_messages()}} - -<form method="POST" action="{{url_for('oauth2.admin.register_client')}}"> - - <fieldset> - <legend>Select client scope</legend> - - {%for scp in scope%} - <input name="scope[]" id="chk:{{scp}}"type="checkbox" value="{{scp}}" - {%if scp=="profile"%}checked="checked"{%endif%} /> - <label for="chk:{{scp}}">{{scp}}</label><br /> - {%endfor%} - - </fieldset> - - <fieldset> - <legend>Basic OAuth2 client information</legend> - - - <label for="txt:client-name">Client name</label> - <input name="client_name" type="text" id="txt:client-name" - required="required" /> - <br /><br /> - - <label for="txt:redirect-uri">Redirect URI</label> - <input name="redirect_uri" type="text" id="txt:redirect-uri" - required="required" /> - <br /><br /> - - <label for="txt:other-redirect-uris"> - Other redirect URIs (Enter one URI per line)</label> - <br /> - <textarea name="other_redirect_uris" id="txt:other-redirect-uris" - cols="80" rows="10" - title="Enter one URI per line."></textarea> - <br /><br /> - <fieldset> - <legend>Supported grant types</legend> - <input name="grants[]" - type="checkbox" - value="authorization_code" - id="chk:authorization-code" - checked="checked" /> - <label for="chk:authorization-code">Authorization Code</label> - <br /><br /> - - <input name="grants[]" - type="checkbox" - value="refresh_token" - id="chk:refresh-token" /> - <label for="chk:refresh-token">Refresh Token</label> - </fieldset> - </fieldset> - - <fieldset> - <legend>User information</legend> - - <p>The user to register this client for</p> - <select name="user" required="required"> - {%for user in users%} - <option value="{{user.user_id}}" - {%if user.user_id==current_user.user_id%} - selected="selected" - {%endif%}>{{user.name}} ({{user.email}})</option> - {%endfor%} - </select> - </fieldset> - - <input type="submit" value="register client" /> -</form> -{%endblock%} |