Merge branch 'ConstructionConsent/add-new-features' into 'master'

added new features

See merge request fronk/thetool!1438
This commit is contained in:
Luca Haid
2025-06-11 10:55:22 +00:00
2 changed files with 15 additions and 3 deletions

View File

@@ -483,7 +483,7 @@ foreach ($owners as $owner):
</tr>
</table>
<div class="signature-line" style="margin-top: 64px">
<div class="signature-line" style="margin-top: 128px">
<div class="float-left" style="width: 25%;">Ort, Datum</div>
<div class="float-right" style="width: 75%;">
Unterschrift mit Geburtsdatum bzw. firmenmäßige Zeichnung des/r Liegenschaftseigentümer(s)

View File

@@ -1193,7 +1193,19 @@ $pagination_entity_name = "Adressen";
}
}});
// do the same for prioritize
$("#prioritize").on("change", function() {
$.post("<?php echo self::getUrl("ConstructionConsentJournal", "save")?>", {
consent_id: <?=$item->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("<?php echo self::getUrl("ConstructionConsent", "prioritize")?>", {
consent_id: <?=$item->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');
});
});