23 lines
982 B
HTML
23 lines
982 B
HTML
{% extends "base.html" %}
|
|
{% block title %}Edit user — Portal Auth Admin{% endblock %}
|
|
{% block content %}
|
|
<div class="form-page">
|
|
<h1>Edit user: <code>{{ row.username }}</code></h1>
|
|
<form method="post" action="{{ url_for('table_edit_user', name='users', pk=row.id) }}" class="edit-form">
|
|
<label for="role">Role</label>
|
|
<select id="role" name="role">
|
|
<option value="admin" {{ 'selected' if row.role == 'admin' }}>admin</option>
|
|
<option value="support" {{ 'selected' if row.role == 'support' }}>support</option>
|
|
</select>
|
|
<label class="checkbox-label">
|
|
<input type="checkbox" name="is_active" {{ 'checked' if row.is_active }}> Active (can log in)
|
|
</label>
|
|
<div class="form-actions">
|
|
<button type="submit">Save</button>
|
|
<a href="{{ url_for('table_view', name='users') }}" class="btn-link">Cancel</a>
|
|
</div>
|
|
</form>
|
|
<p><a href="{{ url_for('user_password', pk=row.id) }}">Change password</a></p>
|
|
</div>
|
|
{% endblock %}
|