aboutsummaryrefslogtreecommitdiff
path: root/gn3/templates/admin
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2023-07-03 11:20:34 +0300
committerFrederick Muriuki Muriithi2023-07-03 11:20:34 +0300
commit14f073af864e7d9d94babe2bf094f3079331bb34 (patch)
tree72876281aa41bd391187e262e3044cdb1ea98934 /gn3/templates/admin
parent424a515120478998592663725d2d1186d36304f4 (diff)
downloadgenenetwork3-14f073af864e7d9d94babe2bf094f3079331bb34.tar.gz
Spruce up UI
Make UI somewhat consistent with the GN2 UI.
Diffstat (limited to 'gn3/templates/admin')
-rw-r--r--gn3/templates/admin/dashboard.html4
-rw-r--r--gn3/templates/admin/list-oauth2-clients.html14
-rw-r--r--gn3/templates/admin/login.html18
-rw-r--r--gn3/templates/admin/register-client.html4
-rw-r--r--gn3/templates/admin/registered-client.html4
-rw-r--r--gn3/templates/admin/view-oauth2-client.html4
6 files changed, 25 insertions, 23 deletions
diff --git a/gn3/templates/admin/dashboard.html b/gn3/templates/admin/dashboard.html
index 52fb7d3..7798022 100644
--- a/gn3/templates/admin/dashboard.html
+++ b/gn3/templates/admin/dashboard.html
@@ -2,11 +2,11 @@
{%block title%}Genenetwork3: Admin Dashboard{%endblock%}
+{%block pagetitle%}Admin Dashboard{%endblock%}
+
{%block content%}
{{flash_messages()}}
-<h1>Genenetwork3: Admin Dashboard</h1>
-
<ul class="nav">
<li>
<a href="{{url_for('oauth2.admin.register_client')}}"
diff --git a/gn3/templates/admin/list-oauth2-clients.html b/gn3/templates/admin/list-oauth2-clients.html
index 030c2e9..0104f0d 100644
--- a/gn3/templates/admin/list-oauth2-clients.html
+++ b/gn3/templates/admin/list-oauth2-clients.html
@@ -2,12 +2,12 @@
{%block title%}Genenetwork3: OAuth2 Clients{%endblock%}
+{%block pagetitle%}OAuth2 Clients{%endblock%}
+
{%block content%}
{{flash_messages()}}
-<h1>Genenetwork3: OAuth2 Clients</h1>
-
-<table>
+<table class="table table-hover table-striped cell-border no-footer">
<caption>List of registered OAuth2 clients</caption>
<thead>
<tr>
@@ -15,7 +15,7 @@
<th>Client Name</th>
<th>Default Redirect URI</th>
<th>Owner</th>
- <th>Actions</th>
+ <th colspan="2">Actions</th>
</tr>
</thead>
@@ -28,7 +28,8 @@
<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}}">
+ title"View/Edit client {{client.client_metadata.client_name}}"
+ class="btn btn-info">
View/Edit
</a>
</td>
@@ -38,7 +39,8 @@
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}}" />
+ title"Delete client {{client.client_metadata.client_name}}"
+ class="btn btn-danger" />
</form>
</td>
</tr>
diff --git a/gn3/templates/admin/login.html b/gn3/templates/admin/login.html
index cf46009..ac217ab 100644
--- a/gn3/templates/admin/login.html
+++ b/gn3/templates/admin/login.html
@@ -2,11 +2,11 @@
{%block title%}Log in to Genenetwork3{%endblock%}
+{%block pagetitle%}Admin Log In{%endblock%}
+
{%block content%}
{{flash_messages()}}
-<h1>Genenetwork3: Admin Log In</h1>
-
<form method="POST" action="{{url_for('oauth2.admin.login')}}">
<fieldset>
@@ -14,19 +14,19 @@
<input name="next_uri" type="hidden" value={{next_uri}}>
- <fieldset>
- <label for="txt:email">Email Address</label>
+ <fieldset class="form-group">
+ <label for="txt:email" class="form-label">Email Address</label>
<input name="email" type="email" id="txt:email" required="required"
- placeholder="your@email.address" />
+ placeholder="your@email.address" class="form-control" />
</fieldset>
- <fieldset>
- <label for="txt:password">Password</label>
+ <fieldset class="form-group">
+ <label for="txt:password" class="form-label">Password</label>
<input name="password" type="password" id="txt:password"
- required="required" />
+ required="required" class="form-control" />
</fieldset>
</fieldset>
- <input type="submit" value="log in" />
+ <input type="submit" value="log in" class="btn btn-primary" />
</form>
{%endblock%}
diff --git a/gn3/templates/admin/register-client.html b/gn3/templates/admin/register-client.html
index 3058aee..daac977 100644
--- a/gn3/templates/admin/register-client.html
+++ b/gn3/templates/admin/register-client.html
@@ -2,11 +2,11 @@
{%block title%}Genenetwork3: Register OAuth2 Client{%endblock%}
+{%block pagetitle%}Register OAuth2 Client{%endblock%}
+
{%block content%}
{{flash_messages()}}
-<h1>Genenetwork3: Register OAuth2 Client</h1>
-
<form method="POST" action="{{url_for('oauth2.admin.register_client')}}">
<fieldset>
diff --git a/gn3/templates/admin/registered-client.html b/gn3/templates/admin/registered-client.html
index 2fc3990..5c46f4d 100644
--- a/gn3/templates/admin/registered-client.html
+++ b/gn3/templates/admin/registered-client.html
@@ -2,11 +2,11 @@
{%block title%}Genenetwork3: Register OAuth2 Client{%endblock%}
+{%block pagetitle%}Register OAuth2 Client{%endblock%}
+
{%block content%}
{{flash_messages()}}
-<h1>Genenetwork3: Register OAuth2 Client</h1>
-
<p>Client has been registered successfully.</p>
<p>Please save the following client details somewhere. There is no way to
diff --git a/gn3/templates/admin/view-oauth2-client.html b/gn3/templates/admin/view-oauth2-client.html
index d5d4b2b..b90428d 100644
--- a/gn3/templates/admin/view-oauth2-client.html
+++ b/gn3/templates/admin/view-oauth2-client.html
@@ -2,11 +2,11 @@
{%block title%}Genenetwork3: View OAuth2 Client{%endblock%}
+{%block pagetitle%}View OAuth2 Client{%endblock%}
+
{%block content%}
{{flash_messages()}}
-<h1>Genenetwork3: View OAuth2 Client</h1>
-
{%if client.is_nothing()%}
<p>No such client</p>
{%else%}