From 48ed46b1f028fa95d518db4171c1f3804ba9d88e Mon Sep 17 00:00:00 2001 From: Terranom674 Date: Sat, 5 Sep 2026 23:02:45 +0200 Subject: [PATCH] Add QR completeness grid and batch ZIP actions --- template/customer_qr_admin.tpl | 63 ++++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) diff --git a/template/customer_qr_admin.tpl b/template/customer_qr_admin.tpl index 0abfb98..96d3a5b 100644 --- a/template/customer_qr_admin.tpl +++ b/template/customer_qr_admin.tpl @@ -1,3 +1,27 @@ +{literal} + +{/literal} +

QR-Upload

Aktivierbares Uploadformular für nummerierte QR-Codes und persönliche Freundschaftscodes.

@@ -53,6 +77,45 @@ +
+
+

QR-Code-Bestand

+ {if $CUSTOMER_QR.batch_download_available and $CUSTOMER_QR.total > 0} + Alle QR-Codes als ZIP herunterladen + {/if} +
+ +
+ Vorhanden + Fehlt +
+ + {foreach from=$CUSTOMER_QR.years item=qr_year} +
+
+ {$qr_year.year} + {$qr_year.used} / {$qr_year.capacity} vorhanden · {$qr_year.remaining} fehlen + {if $CUSTOMER_QR.batch_download_available and $qr_year.used > 0} + {$qr_year.year} als ZIP + {/if} +
+
+ {foreach from=$qr_year.slots item=qr_slot} + {if $qr_slot.present} + {$qr_slot.number} + {else} + {$qr_slot.number} + {/if} + {/foreach} +
+
+ {/foreach} + + {if not $CUSTOMER_QR.batch_download_available} +

Batch-Download ist erst verfügbar, wenn die PHP-Erweiterung ZipArchive auf dem Server aktiv ist.

+ {/if} +
+

QR-Codes verwalten

{if $CUSTOMER_QR.total > 0}