Add switch user admin tool
This commit is contained in:
11
app/templates/admin/list.html
Normal file
11
app/templates/admin/list.html
Normal file
@@ -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 %}
|
||||
15
app/templates/admin/switch_user_page.html
Normal file
15
app/templates/admin/switch_user_page.html
Normal file
@@ -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 %}
|
||||
Reference in New Issue
Block a user