Initial commit: Portal Auth Admin Dashboard

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-02-18 08:18:50 +02:00
commit 7caa62a428
20 changed files with 1347 additions and 0 deletions

22
templates/edit_user.html Normal file
View File

@@ -0,0 +1,22 @@
{% 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 %}