add city to form

This commit is contained in:
Julian Krauser 2025-04-08 10:51:20 +02:00
parent 9006a46a1c
commit 6d5d1d9f79

View file

@ -38,7 +38,10 @@
</div>
</div>
<DetailFormInput title="Stichwort" v-model="mission_short" :awareness="awareness" :enabled="enabled" />
<DetailFormInput title="Einsatzort" v-model="location" :awareness="awareness" :enabled="enabled" />
<div class="flex flex-col sm:flex-row gap-2">
<DetailFormInput title="Einsatzort" v-model="location" :awareness="awareness" :enabled="enabled" />
<DetailFormInput title="Ortsname" v-model="city" :awareness="awareness" :enabled="enabled" />
</div>
<DetailFormInput
title="Weitere Anwesende (andere Wehren, Polizei, Rettungsdienst)"
v-model="others"
@ -173,6 +176,14 @@ export default defineComponent({
this.document.getMap("form").set("location", val);
},
},
city: {
get() {
return this.document.getMap("form").get("city") as string;
},
set(val: string) {
this.document.getMap("form").set("city", val);
},
},
others: {
get() {
return this.document.getMap("form").get("others") as string;