Initial commit: Portal Auth Admin Dashboard
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
22
templates/edit_user.html
Normal file
22
templates/edit_user.html
Normal 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 %}
|
||||
Reference in New Issue
Block a user