From e372bb810d848daa0c630d7df4e28d6c6d3ec437 Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Sun, 13 May 2018 15:28:27 +0100 Subject: Add switch user admin tool --- app/templates/admin/list.html | 11 +++++++++++ app/templates/admin/switch_user_page.html | 15 +++++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 app/templates/admin/list.html create mode 100644 app/templates/admin/switch_user_page.html (limited to 'app/templates/admin') 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 %} + +{% 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.hidden_tag() }} + + {{ render_field(form.username) }} + {{ render_submit_field(form.submit) }} +
+{% endblock %} -- cgit v1.2.3