modified: web/blueprints/auth.py

modified:   web/blueprints/group_admin.py
	modified:   web/blueprints/panel.py
	modified:   web/blueprints/site_admin.py
	modified:   web/templates/admin/base.html
	modified:   web/templates/admin/dashboard.html
	modified:   web/templates/admin/group_edit.html
	modified:   web/templates/admin/group_members.html
	modified:   web/templates/admin/groups.html
	modified:   web/templates/admin/user_edit.html
	modified:   web/templates/admin/users.html
	modified:   web/templates/auth/admin_login.html
	modified:   web/templates/auth/login.html
	modified:   web/templates/base.html
	modified:   web/templates/group_admin/base.html
	modified:   web/templates/group_admin/dashboard.html
	modified:   web/templates/group_admin/database.html
	modified:   web/templates/group_admin/member_edit.html
	modified:   web/templates/group_admin/members.html
	modified:   web/templates/panel/no_db.html
This commit is contained in:
SimolZimol
2026-04-01 02:55:32 +02:00
parent 93999d1c0d
commit c9c684f97a
21 changed files with 4633 additions and 184 deletions

View File

@@ -1,10 +1,10 @@
{% extends "admin/base.html" %}
{% block title %}Gruppen{% endblock %}
{% block title %}Groups{% endblock %}
{% block content %}
<div class="d-flex justify-content-between align-items-center mb-4">
<h2><i class="bi bi-collection-fill me-2"></i>Gruppen</h2>
<h2><i class="bi bi-collection-fill me-2"></i>Groups</h2>
<a href="{{ url_for('site_admin.group_new') }}" class="btn btn-success">
<i class="bi bi-plus-lg me-1"></i>Neue Gruppe
<i class="bi bi-plus-lg me-1"></i>New Group
</a>
</div>
@@ -13,7 +13,7 @@
<table class="table table-hover mb-0">
<thead>
<tr>
<th>ID</th><th>Name</th><th>Beschreibung</th><th>Mitglieder</th><th>DB</th><th>Erstellt</th><th class="text-end">Aktionen</th>
<th>ID</th><th>Name</th><th>Description</th><th>Members</th><th>DB</th><th>Created</th><th class="text-end">Actions</th>
</tr>
</thead>
<tbody>
@@ -25,32 +25,32 @@
<td>{{ g.member_count }}</td>
<td>
{% if g.has_db %}
<span class="badge bg-success"><i class="bi bi-database-fill-check me-1"></i>Konfiguriert</span>
<span class="badge bg-success"><i class="bi bi-database-fill-check me-1"></i>Configured</span>
{% else %}
<span class="badge bg-secondary">Keine DB</span>
<span class="badge bg-secondary">No DB</span>
{% endif %}
</td>
<td class="text-muted small">{{ g.created_at | fmt_dt }}</td>
<td class="text-end">
<a href="{{ url_for('site_admin.view_group', group_id=g.id) }}" class="btn btn-sm btn-outline-info" title="Daten browsen">
<a href="{{ url_for('site_admin.view_group', group_id=g.id) }}" class="btn btn-sm btn-outline-info" title="Browse data">
<i class="bi bi-eye"></i>
</a>
<a href="{{ url_for('site_admin.group_members', group_id=g.id) }}" class="btn btn-sm btn-outline-secondary" title="Mitglieder">
<a href="{{ url_for('site_admin.group_members', group_id=g.id) }}" class="btn btn-sm btn-outline-secondary" title="Members">
<i class="bi bi-people-fill"></i>
</a>
<a href="{{ url_for('site_admin.group_edit', group_id=g.id) }}" class="btn btn-sm btn-outline-warning" title="Bearbeiten">
<a href="{{ url_for('site_admin.group_edit', group_id=g.id) }}" class="btn btn-sm btn-outline-warning" title="Edit">
<i class="bi bi-pencil"></i>
</a>
<form method="post" action="{{ url_for('site_admin.group_delete', group_id=g.id) }}" class="d-inline"
onsubmit="return confirm('Gruppe {{ g.name }} löschen?')">
<button type="submit" class="btn btn-sm btn-outline-danger" title="Löschen">
onsubmit="return confirm('Delete group {{ g.name }}?')">
<button type="submit" class="btn btn-sm btn-outline-danger" title="Delete">
<i class="bi bi-trash3"></i>
</button>
</form>
</td>
</tr>
{% else %}
<tr><td colspan="7" class="text-muted text-center py-4">Noch keine Gruppen vorhanden.</td></tr>
<tr><td colspan="7" class="text-muted text-center py-4">No groups yet.</td></tr>
{% endfor %}
</tbody>
</table>