From aa78de0cbcd9ce6279aa8255817fe4eaaebdf6a3 Mon Sep 17 00:00:00 2001 From: kobold-ai Date: Wed, 14 Oct 2026 21:23:42 +0200 Subject: [PATCH] Fix print layout: absolute-pinned corner footers, 286mm single-sheet height, margin 0 without borders --- app/templates/cookbook.html | 4371 ++++++++++++++++++----------------- 1 file changed, 2187 insertions(+), 2184 deletions(-) diff --git a/app/templates/cookbook.html b/app/templates/cookbook.html index 740470a..aca477e 100755 --- a/app/templates/cookbook.html +++ b/app/templates/cookbook.html @@ -1,2184 +1,2187 @@ - - - - - - Mein Kochbuch – What To Cook? - - - - - - - -
- - 📖 -

Kochbuch

-
- - - - - -
- - - - - - 🚪 Abmelden - -
- - -
- -
- - - - -
- - 🚪 Abmelden - -
-
-
- - - - - -
- - - - - - {% if current_chapter is none or current_chapter == 1 %} -
-
-

Meine
Lieblings-
rezepte

-

Klassiker & Entdeckungen

-
-
- - - {% if total_recipes > 0 %} - -
-
-
Übersicht aller Gerichte
-

Inhaltsverzeichnis{% if toc_page_count > 1 %} (Teil 1){% endif %}

-
✦ ✦ ✦
-
- -
- {% for chap in toc_p1 %} -
-
- {{ chap.icon }} - Kapitel {{ chap.number }}: {{ chap.title }} - - {{ chap.page_number }} -
- -
- {% endfor %} -
- -
- 2 -
-
- - - {% if toc_page_count > 1 %} -
-
-
Übersicht aller Gerichte
-

Inhaltsverzeichnis (Teil 2)

-
✦ ✦ ✦
-
- -
- {% for chap in toc_p2 %} -
-
- {{ chap.icon }} - Kapitel {{ chap.number }}: {{ chap.title }} - - {{ chap.page_number }} -
- -
- {% endfor %} -
- -
- 3 -
-
- {% endif %} - {% endif %} - {% endif %} - - - {% for chap in chapters_to_display %} - {% set chap_recipes = recipes_by_chapter.get(chap.number, []) %} - - {% if chap_recipes|length > 0 %} - -
-
Kapitel {{ chap.number }}
-

{{ chap.title }}

- -
- {% if chap.illustration_url %} - {{ chap.title }} Illustration - {% else %} - [ {{ chap.doodle_hint }} ] - {% endif %} -
- -
- {{ chap.page_number }} -
-
- - - {% for recipe in chap_recipes %} -
- - -
-

{{ recipe.title }}

- -
- {% if recipe.effort %} -
- ⏱️ - Aufwand: - {% if recipe.effort == 'gering' %}Gering 🟢{% elif recipe.effort == 'hoch' %}Hoch 🔴{% else %}Mittel 🟡{% endif %} - -
- {% endif %} - - {% if recipe.prep_time %} -
- 🔪 - Zubereitung: {{ recipe.prep_time }} -
- {% endif %} - - {% if recipe.cook_time %} -
- 🍳 - Kochen/Backen: {{ recipe.cook_time }} -
- {% endif %} - - {% if recipe.portions %} -
- 👥 - {{ recipe.portions }} Portionen -
- {% endif %} - - {% if recipe.source and recipe.source.strip() %} -
- 📖 - Quelle: {{ recipe.source.strip() }} -
- {% endif %} -
-
- - -
- - - - - -
-
-

Zubereitung

-
- {% for step in recipe.instructions.split('\n') %} - {% if step.strip() %} -
- {{ loop.index }} -
{{ step.strip() }}
-
- {% endif %} - {% endfor %} -
-
- - {% if recipe.notes and recipe.notes.strip() %} -
-
💡 Tipp & Notiz
-
{{ recipe.notes.strip() }}
-
- {% else %} - - {% endif %} - - - - -
- -
- - -
- {{ recipe.page_number }} -
- -
- {% endfor %} - {% else %} - -
- {% if current_chapter == chap.number %} -
-
Kapitel {{ chap.number }}
-

{{ chap.title }}

-
- {% if chap.illustration_url %} - {{ chap.title }} Illustration - {% else %} - [ {{ chap.doodle_hint }} ] - {% endif %} -
-
- {% endif %} -
-

- Noch keine Rezepte in Kapitel {{ chap.number }} ({{ chap.title }}). -

- -
-
- {% endif %} - - {% endfor %} - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + Mein Kochbuch – What To Cook? + + + + + + + +
+ + 📖 +

Kochbuch

+
+ + + + + +
+ + + + + + 🚪 Abmelden + +
+ + +
+ +
+ + + + +
+ + 🚪 Abmelden + +
+
+
+ + + + + +
+ + + + + + {% if current_chapter is none or current_chapter == 1 %} +
+
+

Meine
Lieblings-
rezepte

+

Klassiker & Entdeckungen

+
+
+ + + {% if total_recipes > 0 %} + +
+
+
Übersicht aller Gerichte
+

Inhaltsverzeichnis{% if toc_page_count > 1 %} (Teil 1){% endif %}

+
✦ ✦ ✦
+
+ +
+ {% for chap in toc_p1 %} +
+
+ {{ chap.icon }} + Kapitel {{ chap.number }}: {{ chap.title }} + + {{ chap.page_number }} +
+ +
+ {% endfor %} +
+ +
+ 2 +
+
+ + + {% if toc_page_count > 1 %} +
+
+
Übersicht aller Gerichte
+

Inhaltsverzeichnis (Teil 2)

+
✦ ✦ ✦
+
+ +
+ {% for chap in toc_p2 %} +
+
+ {{ chap.icon }} + Kapitel {{ chap.number }}: {{ chap.title }} + + {{ chap.page_number }} +
+ +
+ {% endfor %} +
+ +
+ 3 +
+
+ {% endif %} + {% endif %} + {% endif %} + + + {% for chap in chapters_to_display %} + {% set chap_recipes = recipes_by_chapter.get(chap.number, []) %} + + {% if chap_recipes|length > 0 %} + +
+
Kapitel {{ chap.number }}
+

{{ chap.title }}

+ +
+ {% if chap.illustration_url %} + {{ chap.title }} Illustration + {% else %} + [ {{ chap.doodle_hint }} ] + {% endif %} +
+ +
+ {{ chap.page_number }} +
+
+ + + {% for recipe in chap_recipes %} +
+ + +
+

{{ recipe.title }}

+ +
+ {% if recipe.effort %} +
+ ⏱️ + Aufwand: + {% if recipe.effort == 'gering' %}Gering 🟢{% elif recipe.effort == 'hoch' %}Hoch 🔴{% else %}Mittel 🟡{% endif %} + +
+ {% endif %} + + {% if recipe.prep_time %} +
+ 🔪 + Zubereitung: {{ recipe.prep_time }} +
+ {% endif %} + + {% if recipe.cook_time %} +
+ 🍳 + Kochen/Backen: {{ recipe.cook_time }} +
+ {% endif %} + + {% if recipe.portions %} +
+ 👥 + {{ recipe.portions }} Portionen +
+ {% endif %} + + {% if recipe.source and recipe.source.strip() %} +
+ 📖 + Quelle: {{ recipe.source.strip() }} +
+ {% endif %} +
+
+ + +
+ + + + + +
+
+

Zubereitung

+
+ {% for step in recipe.instructions.split('\n') %} + {% if step.strip() %} +
+ {{ loop.index }} +
{{ step.strip() }}
+
+ {% endif %} + {% endfor %} +
+
+ + {% if recipe.notes and recipe.notes.strip() %} +
+
💡 Tipp & Notiz
+
{{ recipe.notes.strip() }}
+
+ {% else %} + + {% endif %} + + + + +
+ +
+ + +
+ {{ recipe.page_number }} +
+ +
+ {% endfor %} + {% else %} + +
+ {% if current_chapter == chap.number %} +
+
Kapitel {{ chap.number }}
+

{{ chap.title }}

+
+ {% if chap.illustration_url %} + {{ chap.title }} Illustration + {% else %} + [ {{ chap.doodle_hint }} ] + {% endif %} +
+
+ {% endif %} +
+

+ Noch keine Rezepte in Kapitel {{ chap.number }} ({{ chap.title }}). +

+ +
+
+ {% endif %} + + {% endfor %} + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +