aboutsummaryrefslogtreecommitdiff
path: root/app/templates/admin
diff options
context:
space:
mode:
authorrubenwardy <rw@rubenwardy.com>2018-05-13 15:28:27 +0100
committerrubenwardy <rw@rubenwardy.com>2018-05-13 15:28:27 +0100
commite372bb810d848daa0c630d7df4e28d6c6d3ec437 (patch)
tree33f89ebf7d7a5b163927b9869f63338fdc66a0c5 /app/templates/admin
parent9f33f5fb1bc0371e8558dbe77790907ef10180d9 (diff)
downloadcheatdb-e372bb810d848daa0c630d7df4e28d6c6d3ec437.tar.xz
Add switch user admin tool
Diffstat (limited to 'app/templates/admin')
-rw-r--r--app/templates/admin/list.html11
-rw-r--r--app/templates/admin/switch_user_page.html15
2 files changed, 26 insertions, 0 deletions
diff --git a/app/templates/admin/list.html b/app/templates/admin/list.html
new file mode 100644
index 0000000..af845a9
--- /dev/null
+++ b/app/templates/admin/list.html
@@ -0,0 +1,11 @@
+{% extends "base.html" %}
+
+{% block title %}
+ Admin Tools
+{% endblock %}
+
+{% block content %}
+ <ul>
+ <a href="{{ url_for('switch_user_page') }}">Sign in as another user</a>
+ </ul>
+{% endblock %}
diff --git a/app/templates/admin/switch_user_page.html b/app/templates/admin/switch_user_page.html
new file mode 100644
index 0000000..0149786
--- /dev/null
+++ b/app/templates/admin/switch_user_page.html
@@ -0,0 +1,15 @@
+{% extends "base.html" %}
+
+{% block title %}
+ Switch User
+{% endblock %}
+
+{% block content %}
+ {% from "macros/forms.html" import render_field, render_submit_field %}
+ <form method="POST" action="">
+ {{ form.hidden_tag() }}
+
+ {{ render_field(form.username) }}
+ {{ render_submit_field(form.submit) }}
+ </form>
+{% endblock %}