Files
MClogger/web/templates/group_admin/members.html
SimolZimol c9c684f97a 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
2026-04-01 02:55:32 +02:00

66 lines
3.1 KiB
HTML

{% extends "group_admin/base.html" %}
{% block title %}Members{% endblock %}
{% block content %}
<h2 class="mb-4"><i class="bi bi-people-fill me-2"></i>Members</h2>
<div class="row g-3">
<!-- Mitgliederliste -->
<div class="col-md-8">
<div class="card border-secondary">
<div class="card-header">Current Members ({{ members|length }})</div>
<div class="card-body p-0">
<table class="table table-hover mb-0">
<thead><tr><th>User</th><th>Role</th><th class="text-end">Actions</th></tr></thead>
<tbody>
{% for m in members %}
<tr>
<td>{{ m.username }}</td>
<td>
{% if m.role == 'admin' %}
<span class="badge bg-warning text-dark"><i class="bi bi-star-fill me-1"></i>Admin</span>
{% else %}
<span class="badge bg-secondary">Member</span>
{% endif %}
</td>
<td class="text-end">
{% if m.id != session.get('user_id') %}
<a href="{{ url_for('group_admin.member_edit', user_id=m.id) }}" class="btn btn-sm btn-outline-warning" title="Permissions">
<i class="bi bi-shield-lock"></i>
</a>
<form method="post" action="{{ url_for('group_admin.member_remove', user_id=m.id) }}" class="d-inline"
onsubmit="return confirm('Remove {{ m.username }}?')">
<button type="submit" class="btn btn-sm btn-outline-danger" title="Remove">
<i class="bi bi-person-dash"></i>
</button>
</form>
{% else %}
<span class="text-muted small">You</span>
{% endif %}
</td>
</tr>
{% else %}
<tr><td colspan="3" class="text-muted text-center py-3">No members</td></tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
</div>
<!-- Benutzer einladen (nur via Benutzername - Site Admin fügt Benutzer hinzu, Gruppen admin kann nur bestehende Mitglieder verwalten) -->
<div class="col-md-4">
<div class="card border-secondary">
<div class="card-header"><i class="bi bi-info-circle me-2"></i>Note</div>
<div class="card-body">
<p class="text-muted small">
New members must be added by the <strong>Site Admin</strong>.
</p>
<p class="text-muted small">
As group admin you can manage permissions of existing members and remove members.
</p>
</div>
</div>
</div>
</div>
{% endblock %}