42 lines
815 B
HTML
42 lines
815 B
HTML
{% extends "base.html" %}
|
|
|
|
{% block body %}
|
|
|
|
|
|
{% if current_user.user_role >= UserRoles.ADMIN %}
|
|
<div>
|
|
|
|
<form action="/account/new" method="POST">
|
|
<div>
|
|
<label>Username:</label>
|
|
<input name="username" type="text" placeholder="Username" />
|
|
</div>
|
|
<div>
|
|
<label>Email:</label>
|
|
<input name="email" type="text" placeholder="Email" />
|
|
</div>
|
|
<div>
|
|
<label>Password:</label>
|
|
<input name="password" type="password" placeholder="Temporary Password" />
|
|
</div>
|
|
<div>
|
|
<label>User Type:</label>
|
|
<select name="user-type">
|
|
{% for role in UserRoles %}
|
|
<option value="{{ role }}">
|
|
{{ role.text }}
|
|
</option>
|
|
{% endfor %}
|
|
</select>
|
|
</div>
|
|
<div>
|
|
<button type="submit" style="margin-top: 20px;">Create</button>
|
|
</div>
|
|
</form>
|
|
|
|
</div>
|
|
{% endif %}
|
|
|
|
{% endblock %}
|
|
|