Add import users from Krock's mod list feature

This commit is contained in:
rubenwardy
2018-05-15 15:00:12 +01:00
parent e669b18062
commit 0bdcbd741c
5 changed files with 58 additions and 5 deletions

View File

@@ -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 %}

View File

@@ -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() }}