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 %} -
- - +