From 56e4b988c091feab62b2ee2e6063121f8b0fd6bf Mon Sep 17 00:00:00 2001 From: Bernard Siebens Date: Fri, 21 Aug 2026 20:32:28 +0200 Subject: [PATCH] Reorganize the identity page: legal address gets its own card, Colours moves beside the preview Legal address (street/zip/city) split out of the "Club" card into its own "Legal address" card. "Colours" moved to the second column, above "Live preview" -- the card it actually drives, and now sits next to instead of scrolled away from it. The colour inputs are physically outside
now, so each gets an explicit form="club-settings-form" attribute to keep submitting with the rest of the identity form -- HTML supports this natively, no JS or structural change needed. Co-Authored-By: Claude Sonnet 5 Claude-Session: https://claude.ai/code/session_01ECGMEwrc2k4D8VQuwjstj9 --- .../templates/management/club_settings.html | 95 +++++++++++-------- 1 file changed, 54 insertions(+), 41 deletions(-) diff --git a/management/templates/management/club_settings.html b/management/templates/management/club_settings.html index a1f57aa..e395afa 100644 --- a/management/templates/management/club_settings.html +++ b/management/templates/management/club_settings.html @@ -64,55 +64,21 @@
{% form_field form.name %} {% form_field form.legal_name %} -
{% form_field form.legal_address %}
- {% form_field form.legal_zip_code %} - {% form_field form.legal_city %} {% form_field form.contact_email %} {% form_field form.website %}
-

{% trans "Used on official documents (invoices, the referee payment form). Leave blank to use the club's home location instead." %}

-
-
{% lucide "palette" size=16 %} {% trans "Colours" %}
- {% trans "Accents only" %} -
- -
-
-
{{ form.primary_color.label|capfirst }}
- - {% if form.primary_color.errors %}

{{ form.primary_color.errors|join:" " }}

{% endif %} -
-
-
{{ form.secondary_color.label|capfirst }}
- - {% if form.secondary_color.errors %}

{{ form.secondary_color.errors|join:" " }}

{% endif %} -
-
- -
-
{% trans "Contrast check" %}
-
-
- - -
-
- - -
-
+
{% lucide "map-pin" size=16 %} {% trans "Legal address" %}
+
+
{% form_field form.legal_address %}
+ {% form_field form.legal_zip_code %} + {% form_field form.legal_city %}
+

{% trans "Used on official documents (invoices, the referee payment form). Leave blank to use the club's home location instead." %}

@@ -155,7 +121,54 @@
-
+
+
+
+
+
{% lucide "palette" size=16 %} {% trans "Colours" %}
+ {% trans "Accents only" %} +
+ + {% comment %} + Physically outside
(moved next to the + preview it drives) -- form="club-settings-form" on each text input + is what still submits them with the rest of the identity form. + {% endcomment %} +
+
+
{{ form.primary_color.label|capfirst }}
+ + {% if form.primary_color.errors %}

{{ form.primary_color.errors|join:" " }}

{% endif %} +
+
+
{{ form.secondary_color.label|capfirst }}
+ + {% if form.secondary_color.errors %}

{{ form.secondary_color.errors|join:" " }}

{% endif %} +
+
+ +
+
{% trans "Contrast check" %}
+
+
+ + +
+
+ + +
+
+
+
+
+
{% lucide "eye" size=16 %} {% trans "Live preview" %}