From 72ce6d9f057cedaaa58760b1dd9e266fd11a0c09 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=B2=AD=EC=B6=98=EC=95=BD=EA=B5=AD?= Date: Wed, 18 Mar 2026 23:15:54 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=ED=8E=98=EC=9D=B4=EC=A7=80=EB=8B=B9=204?= =?UTF-8?q?=EA=B0=9C=EC=94=A9=20=EC=A0=95=ED=99=95=ED=9E=88=20=EB=B0=B0?= =?UTF-8?q?=EC=B9=98=20(2x2=20=EA=B7=B8=EB=A6=AC=EB=93=9C)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/medication_guide_v2.html | 72 ++++++++++++++++++------------ 1 file changed, 43 insertions(+), 29 deletions(-) diff --git a/templates/medication_guide_v2.html b/templates/medication_guide_v2.html index f86a592..434e11a 100644 --- a/templates/medication_guide_v2.html +++ b/templates/medication_guide_v2.html @@ -20,11 +20,20 @@ .container { width: 210mm; - min-height: 297mm; - padding: 6mm; + padding: 5mm; + } + + .page { + width: 200mm; + height: 287mm; + page-break-after: always; position: relative; } + .page:last-child { + page-break-after: avoid; + } + /* 헤더 */ .header { display: flex; @@ -372,28 +381,27 @@
- -
-
-
{{ patient_name }} 보호자님
-
- 🐾 {{ pet_name }} ({{ pet_species }}, {{ pet_age }})
- 📅 {{ issue_date }} -
-
-
-
🏥 {{ pharmacy_name }}
-
반려동물을 위한 전문 복약안내
-
-
- {{ pharmacy_tel }}
- {{ pharmacy_address }} -
-
- - -
+ {% for drug in drugs %} + {% if loop.index0 % 4 == 0 %} +
+ {% if loop.index0 == 0 %} + +
+
+
{{ patient_name }} 보호자님
+
+ 🐾 {{ pet_name }} ({{ pet_species }}, {{ pet_age }}) | 📅 {{ issue_date }} +
+
+
+
🏥 {{ pharmacy_name }}
+
+
{{ pharmacy_tel }}
+
+ {% endif %} +
+ {% endif %}
💊
@@ -590,14 +598,20 @@ {% endif %}
+ {% if loop.index % 4 == 0 or loop.last %} +
+ {% if loop.last %} + + + {% endif %} +
+ {% endif %} {% endfor %} -
- - +