diff --git a/Layout/default/ConstructionConsent/Consentform.pdf.php b/Layout/default/ConstructionConsent/Consentform.pdf.php index 3f571bfc3..c512b3711 100644 --- a/Layout/default/ConstructionConsent/Consentform.pdf.php +++ b/Layout/default/ConstructionConsent/Consentform.pdf.php @@ -483,7 +483,7 @@ foreach ($owners as $owner): -
+
Ort, Datum
Unterschrift mit Geburtsdatum bzw. firmenmäßige Zeichnung des/r Liegenschaftseigentümer(s) diff --git a/Layout/default/ConstructionConsent/View.php b/Layout/default/ConstructionConsent/View.php index d45f30ec4..804ae4a22 100644 --- a/Layout/default/ConstructionConsent/View.php +++ b/Layout/default/ConstructionConsent/View.php @@ -1193,7 +1193,19 @@ $pagination_entity_name = "Adressen"; } }}); + // do the same for prioritize $("#prioritize").on("change", function() { + $.post("", { + consent_id: id?>, + text: `Priorisierung wurde ${$(this).prop("checked") ? "aktiviert" : "deaktiviert"}` + }, function(success) { + if (success.status != "OK") { + notify("error", "Status konnte nicht gespeichert werden"); + } else { + notify("success", "Status erfolgreich gespeichert"); + } + }, 'json'); + $.get("", { consent_id: id?>, checked: $(this).prop("checked") ? 1 : 0 @@ -1205,8 +1217,8 @@ $pagination_entity_name = "Adressen"; notify("success", "Status erfolgreich gespeichert"); setTimeout(() => {location.reload()}, 150); } - }, 'json') - } + }, 'json'); + }); });