23 lines
1.0 KiB
HTML
23 lines
1.0 KiB
HTML
{% extends "base.html" %}
|
|
{% block title %}New user — Portal Auth Admin{% endblock %}
|
|
{% block content %}
|
|
<div class="form-page">
|
|
<h1>Create user</h1>
|
|
<form method="post" action="{{ url_for('user_new') }}" class="edit-form">
|
|
<label for="username">Username</label>
|
|
<input type="text" id="username" name="username" required value="{{ username|default('', true) }}" autocomplete="username">
|
|
<label for="password">Password</label>
|
|
<input type="password" id="password" name="password" required minlength="8" autocomplete="new-password">
|
|
<label for="role">Role</label>
|
|
<select id="role" name="role">
|
|
<option value="support" {{ 'selected' if role|default('support') == 'support' }}>support</option>
|
|
<option value="admin" {{ 'selected' if role|default('support') == 'admin' }}>admin</option>
|
|
</select>
|
|
<div class="form-actions">
|
|
<button type="submit">Create user</button>
|
|
<a href="{{ url_for('table_view', name='users') }}" class="btn-link">Cancel</a>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
{% endblock %}
|