From 4ce91f6390ea95a64355cdce3a6a20846dcaae95 Mon Sep 17 00:00:00 2001 From: Ross Date: Fri, 5 Dec 2025 11:06:21 +0000 Subject: [PATCH] . --- cards/templates/cards/_card_item.html | 2 +- cards/templates/cards/_card_preview.html | 2 +- cards/templates/cards/_form.html | 35 ++++++++++++++++++++-- cards/templates/cards/base.html | 24 +++++++++++++++ cards/views.py | 12 ++++---- db.sqlite3 | Bin 143360 -> 143360 bytes templates/cards/_card_item.html | 2 +- templates/cards/_form.html | 36 +++++++++++++++++++++-- templates/cards/base.html | 17 +++++++++++ 9 files changed, 118 insertions(+), 12 deletions(-) diff --git a/cards/templates/cards/_card_item.html b/cards/templates/cards/_card_item.html index 5198859..5726ac1 100644 --- a/cards/templates/cards/_card_item.html +++ b/cards/templates/cards/_card_item.html @@ -2,7 +2,7 @@
{% if card.image %} - {{ card.name }} + {{ card.name }} {% endif %}
{{ card.name }}
diff --git a/cards/templates/cards/_card_preview.html b/cards/templates/cards/_card_preview.html index c71045b..82ece5e 100644 --- a/cards/templates/cards/_card_preview.html +++ b/cards/templates/cards/_card_preview.html @@ -9,7 +9,7 @@ {# Hero / image banner using background image if available #}
{% if card.image %} - {{ card.name }} + {{ card.name }} {% endif %}
{{ card.name }}
diff --git a/cards/templates/cards/_form.html b/cards/templates/cards/_form.html index 635ebe4..7e016a2 100644 --- a/cards/templates/cards/_form.html +++ b/cards/templates/cards/_form.html @@ -64,10 +64,41 @@
-
{{ form.background }}
-

Optional: choose a background image to use for this card.

+
{{ form.background }}
+
+
+
Use site default
+ {% for bg in backgrounds %} +
+ {{ bg.title }} +
+ {% endfor %} +
+

Optional: choose a background image to use for this card.

+
+