From 6ada3290c846cb72dedd173507fe863b273afe54 Mon Sep 17 00:00:00 2001 From: "Edgar P. Burkhart" Date: Fri, 13 Jun 2025 23:51:10 +0200 Subject: [PATCH] Add member management functionality in group views and templates --- base/static/css/main.css | 2 +- game/templates/game/group_detail.html | 55 ++++++++++++++++++++++++--- game/templates/game/home.html | 2 +- game/urls.py | 10 +++++ game/views.py | 26 ++++++++++++- 5 files changed, 86 insertions(+), 9 deletions(-) diff --git a/base/static/css/main.css b/base/static/css/main.css index e7247c2..a353d2e 100644 --- a/base/static/css/main.css +++ b/base/static/css/main.css @@ -12,7 +12,7 @@ form a[role="button"] { width: 100%; } -i.ri-vip-crown-fill { +i.owner { color: var(--pico-color-amber-200); } diff --git a/game/templates/game/group_detail.html b/game/templates/game/group_detail.html index 70cdfd5..d305efa 100644 --- a/game/templates/game/group_detail.html +++ b/game/templates/game/group_detail.html @@ -48,12 +48,55 @@ Modifier les membres

{% endif %} - + + + + + + + + + + + + + + + + + {% for member in members.all %} + + + + + + + {% endfor %} + +
Membre + + + + + +
{{ group.owner }} + + {{ owner_count }}
{{ member }}{{ member.count }} + + + +
+
+ {% csrf_token %} +
+ + +
+

Mes musiques ({{ musics.count }})

diff --git a/game/templates/game/home.html b/game/templates/game/home.html index 74352e1..b726da8 100644 --- a/game/templates/game/home.html +++ b/game/templates/game/home.html @@ -10,7 +10,7 @@