diff options
Diffstat (limited to 'app/templates/admin')
| -rw-r--r-- | app/templates/admin/list.html | 11 | ||||
| -rw-r--r-- | app/templates/admin/switch_user_page.html | 15 |
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 %} |
