-
- Print Preview - {year}-{month.toString().padStart(2, '0')}
-
-
-
-
Found {data.length} barcode(s) for printing
+
+ {/* Header section - hidden in print */}
+
+
+ {translations.title}
+
+
+ {year}-{month.toString().padStart(2, '0')} • {data.length} {data.length === 1 ? translations.barcodeSingular : translations.barcodesFound}
+
+
- {/* Basic table structure - will be enhanced in US-3 */}
-
-
-
- | Index |
- Bill Info |
- Barcode |
-
-
-
- {data.map((item, index) => (
-
- | {index + 1} |
-
-
- {item.yearMonth}
- {item.locationName}
- {item.billName}
-
- |
-
-
- |
+ {/* Print content */}
+
+
+
+
+ |
+ {translations.tableHeaderIndex}
+ |
+
+ {translations.tableHeaderBillInfo}
+ |
+
+ {translations.tableHeaderBarcode}
+ |
- ))}
-
-
-
- {/* Print button - will be enhanced in US-4 */}
-
+
+
+ {data.map((item, index) => (
+
+ |
+ {(index + 1).toString().padStart(2, '0')}
+ |
+
+
+
+ 📅 {item.yearMonth}
+
+
+ 🏠 {item.locationName}
+
+
+ 📋 {item.billName}
+
+
+ |
+
+
+ )
+
+ |
+
+ ))}
+
+
+
+ {/* Print footer - only visible when printing */}
+
+
{translations.printFooter.replace('{date}', new Date().toLocaleDateString())}
+
+
);
};
\ No newline at end of file
diff --git a/messages/en.json b/messages/en.json
index ebf8c07..1dd7618 100644
--- a/messages/en.json
+++ b/messages/en.json
@@ -61,6 +61,16 @@
"payed-total-label": "Total monthly expenditure:",
"print-codes-tooltip": "Print 2D codes",
"print-codes-label": "Print codes"
+ },
+ "print-preview": {
+ "title": "2D Barcode Print Preview",
+ "barcodes-found": "barcodes found",
+ "barcode-singular": "barcode found",
+ "print-button": "Print Barcodes",
+ "print-footer": "Generated on {date} • Evidencija Režija Print System",
+ "table-header-index": "#",
+ "table-header-bill-info": "Bill Information",
+ "table-header-barcode": "2D Barcode"
}
},
"bill-delete-form": {
diff --git a/messages/hr.json b/messages/hr.json
index d3f008d..2db0fc6 100644
--- a/messages/hr.json
+++ b/messages/hr.json
@@ -61,6 +61,16 @@
"payed-total-label": "Ukupni mjesečni trošak:",
"print-codes-tooltip": "Ispis 2d kodova",
"print-codes-label": "Ispis kodova"
+ },
+ "print-preview": {
+ "title": "Pregled Ispisa 2D Barkodova",
+ "barcodes-found": "barkodova pronađeno",
+ "barcode-singular": "barkod pronađen",
+ "print-button": "Ispis Barkodova",
+ "print-footer": "Generirano {date} • Evidencija Režija Sustav Ispisa",
+ "table-header-index": "#",
+ "table-header-bill-info": "Informacije o Računu",
+ "table-header-barcode": "2D Barkod"
}
},
"bill-delete-form": {