First commit of POC version

This commit is contained in:
2026-01-01 21:07:34 +01:00
parent 3ea6e14d0e
commit 7ab655626a
65 changed files with 12372 additions and 0 deletions
+30
View File
@@ -0,0 +1,30 @@
{% extends "base.html" %}
{% block content %}
<h2>User Management</h2>
<div class="grid">
{% for u in users %}
<article>
<header>
<h3>{{ u.name }}</h3>
<p>ID: {{ u.id }}</p>
</header>
<p><strong>Role:</strong> {{ u.role }}</p>
<footer>
{% if not u.is_admin %}
<a href="{{ url_for('user_admit', user_id=u.id) }}">Promote to Admin</a>
{% else %}
<span>Admin</span>
{% endif %}
|
<a href="{{ url_for('user_delete', user_id=u.id) }}"
onclick="return confirm('Delete {{ u.username }}?');">
Delete
</a>
</footer>
</article>
{% endfor %}
</div>
{% endblock %}