diff --git a/Layout/default/Preorder/Index.php b/Layout/default/Preorder/Index.php
index 561a37a11..dc08e6ca6 100644
--- a/Layout/default/Preorder/Index.php
+++ b/Layout/default/Preorder/Index.php
@@ -35,17 +35,17 @@
is("preorderfront")): ?>
-
+ " />
-
+ " />
-
+ " />
diff --git a/Layout/default/Preorderlogistics/Index.php b/Layout/default/Preorderlogistics/Index.php
index 307d3a3d9..b0914cb97 100644
--- a/Layout/default/Preorderlogistics/Index.php
+++ b/Layout/default/Preorderlogistics/Index.php
@@ -42,6 +42,15 @@
" />
+
+
+
+
+
" />
@@ -52,6 +61,7 @@
" />
+
@@ -99,7 +109,11 @@
| |
-
+
|
adb_hausnummer_id): ?>
@@ -150,6 +164,32 @@
w.print();
}
+ function saveSent(id) {
+ if(!id) return;
+ var checked = $("#sent-" + id).is(":checked");
+ console.log(checked);
+
+ if(checked) {
+ var sent = 1;
+ } else {
+ var sent = 0;
+ }
+
+ $.post("=self::getUrl("Preorderlogistics", "Api")?>", {
+ do: "saveSent",
+ id: id,
+ sent: sent
+ },
+ function(success) {
+ console.log(success);
+ if(success.status == "OK") {
+ $("#sent-label-" + success.result.preorder_id).show();
+ }
+ },
+ "json"
+ );
+ }
+
diff --git a/Layout/default/Preorderlogistics/Print.php b/Layout/default/Preorderlogistics/Print.php
index b21bbd85f..13c085d3f 100644
--- a/Layout/default/Preorderlogistics/Print.php
+++ b/Layout/default/Preorderlogistics/Print.php
@@ -61,7 +61,7 @@
- ?>assets/images/qr-placeholder.png)
+
@@ -75,7 +75,7 @@
Mit besten Grüßen,
- RML Infrastruktur Liezen
+ =$preorder->campaign->network->owner->getCompanyOrName()?>
|