From 088bb52c07c869310b6094ede232bfd394bdacd6 Mon Sep 17 00:00:00 2001 From: "Edgar P. Burkhart" Date: Sun, 15 Jun 2025 09:56:08 +0200 Subject: [PATCH] Implement group management features and update templates for improved navigation --- base/templates/base/inline_form.html | 11 ++++++ base/templates/hero.html | 2 +- base/templates/index.html | 9 +---- base/templatetags/form.py | 11 ++++-- base/views.py | 6 +++ game/forms.py | 10 +++++ game/templates/game/home.html | 57 ++++++++++++++++------------ game/urls.py | 1 + game/views.py | 10 +++++ 9 files changed, 80 insertions(+), 37 deletions(-) create mode 100644 base/templates/base/inline_form.html diff --git a/base/templates/base/inline_form.html b/base/templates/base/inline_form.html new file mode 100644 index 0000000..75769ae --- /dev/null +++ b/base/templates/base/inline_form.html @@ -0,0 +1,11 @@ +{% for error in form.non_field_errors %}
{{ error }}
{% endfor %} +
+ {% csrf_token %} +
+ {% for field in form %}{{ field }}{% endfor %} + + {% if field.errors %} + {{ field.errors|join:", " }} + {% endif %} +
+
diff --git a/base/templates/hero.html b/base/templates/hero.html index 34591ba..04c2aee 100644 --- a/base/templates/hero.html +++ b/base/templates/hero.html @@ -4,7 +4,7 @@

Musik

- Jouer + Jouer