diff options
| author | rubenwardy <rw@rubenwardy.com> | 2018-05-15 15:00:12 +0100 |
|---|---|---|
| committer | rubenwardy <rw@rubenwardy.com> | 2018-05-15 15:00:12 +0100 |
| commit | 0bdcbd741c32c7d6a85b16a24968df00d9cb0584 (patch) | |
| tree | 1e0fa9931d6eb94bf0fef264fb8fa3301599268b /app/templates/admin | |
| parent | e669b18062c6282a8787a48d996811d198cf88f4 (diff) | |
| download | cheatdb-0bdcbd741c32c7d6a85b16a24968df00d9cb0584.tar.xz | |
Add import users from Krock's mod list feature
Diffstat (limited to 'app/templates/admin')
| -rw-r--r-- | app/templates/admin/list.html | 12 | ||||
| -rw-r--r-- | app/templates/admin/switch_user_page.html | 2 |
2 files changed, 14 insertions, 0 deletions
diff --git a/app/templates/admin/list.html b/app/templates/admin/list.html index 1c0301e..1db3247 100644 --- a/app/templates/admin/list.html +++ b/app/templates/admin/list.html @@ -9,4 +9,16 @@ <li><a href="{{ url_for('user_list_page') }}">User list</a></li> <li><a href="{{ url_for('switch_user_page') }}">Sign in as another user</a></li> </ul> + + <div class="box box_grey"> + <h2>Do action</h2> + + <form method="post" action=""> + <input type="hidden" name="csrf_token" value="{{ csrf_token() }}" /> + <select name="action"> + <option value="importusers" selected>Create users from mod list</option> + </select> + <input type="submit" value="Start" /> + </form> + </div> {% endblock %} diff --git a/app/templates/admin/switch_user_page.html b/app/templates/admin/switch_user_page.html index 0149786..7d4a4a2 100644 --- a/app/templates/admin/switch_user_page.html +++ b/app/templates/admin/switch_user_page.html @@ -5,6 +5,8 @@ {% endblock %} {% block content %} + <h2>Log in as another user</h2> + {% from "macros/forms.html" import render_field, render_submit_field %} <form method="POST" action=""> {{ form.hidden_tag() }} |
