add additional fields
This commit is contained in:
parent
43f46c0fad
commit
b83b22d806
16 changed files with 97 additions and 3 deletions
|
@ -17,6 +17,14 @@
|
|||
<label for="location">Verortung (optional)</label>
|
||||
<input type="text" id="location" />
|
||||
</div>
|
||||
<div>
|
||||
<label for="commissioned">In-Betrieb-Nahme</label>
|
||||
<input type="date" id="commissioned" required v-model="vehicle.commissioned" />
|
||||
</div>
|
||||
<div>
|
||||
<label for="decommissioned">Außer-Betrieb-Nahme (optional)</label>
|
||||
<input type="date" id="decommissioned" v-model="vehicle.decommissioned" />
|
||||
</div>
|
||||
<div class="flex flex-row justify-end gap-2">
|
||||
<RouterLink
|
||||
:to="{ name: 'admin-unit-vehicle' }"
|
||||
|
@ -100,6 +108,8 @@ export default defineComponent({
|
|||
name: formData.name.value,
|
||||
code: formData.code.value || null,
|
||||
location: formData.location.value,
|
||||
commissioned: formData.commissioned.value,
|
||||
decommissioned: formData.decommissioned.value ?? null,
|
||||
};
|
||||
this.status = "loading";
|
||||
this.updateActiveVehicle(updateVehicle)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue