Compare commits

..

No commits in common. "def32b786cee44b0f838e0555e5d665fdf9ef594" and "43f46c0fade6e3f0e476af05db557b8afc2abdc8" have entirely different histories.

39 changed files with 177 additions and 151 deletions

View file

@ -8,8 +8,6 @@ export const equipmentDemoData: Array<EquipmentViewModel> = [
code: "0456984224498",
name: "B-Schlauch",
location: "HLF",
commissioned: new Date(),
decommissioned: undefined,
equipmentTypeId: equipmentTypeDemoData[0].id,
equipmentType: equipmentTypeDemoData[0],
inspections: [inspectionDemoData[0]],

View file

@ -7,8 +7,6 @@ export const vehicleDemoData: Array<VehicleViewModel> = [
code: "",
name: "HLF",
location: "Tor 1",
commissioned: new Date(),
decommissioned: undefined,
vehicleTypeId: vehicleTypeDemoData[0].id,
vehicleType: vehicleTypeDemoData[0],
inspections: [],
@ -18,8 +16,6 @@ export const vehicleDemoData: Array<VehicleViewModel> = [
code: "",
name: "LF",
location: "Tor 2",
commissioned: new Date(),
decommissioned: undefined,
vehicleTypeId: vehicleTypeDemoData[1].id,
vehicleType: vehicleTypeDemoData[1],
inspections: [],

View file

@ -7,8 +7,6 @@ export const wearableDemoData: Array<WearableViewModel> = [
code: "0456984224498",
name: "Jacke",
location: "Spint",
commissioned: new Date(),
decommissioned: undefined,
wearerId: "9469991d-fa22-4899-82ce-b1ba5de990dc",
wearer: {
id: "9469991d-fa22-4899-82ce-b1ba5de990dc",

View file

@ -6,8 +6,6 @@ export interface EquipmentViewModel {
code?: string;
name: string;
location: string;
commissioned: Date;
decommissioned?: Date;
equipmentTypeId: string;
equipmentType: EquipmentTypeViewModel;
inspections: Array<InspectionViewModel>;
@ -17,7 +15,6 @@ export interface CreateEquipmentViewModel {
code?: string;
name: string;
location: string;
commissioned: Date;
equipmentTypeId: string;
}
@ -26,6 +23,4 @@ export interface UpdateEquipmentViewModel {
code?: string;
name: string;
location: string;
commissioned: Date;
decommissioned?: Date;
}

View file

@ -26,7 +26,6 @@ export interface InspectionPointViewModel {
title: string;
description: string;
type: "iO-niO" | "text" | "number";
min?: number;
}
export interface InspectionPointResultViewModel {

View file

@ -6,8 +6,6 @@ export interface VehicleViewModel {
code?: string;
name: string;
location: string;
commissioned: Date;
decommissioned?: Date;
vehicleTypeId: string;
vehicleType: VehicleTypeViewModel;
inspections: Array<InspectionViewModel>;
@ -17,7 +15,6 @@ export interface CreateVehicleViewModel {
code?: string;
name: string;
location: string;
commissioned: Date;
vehicleTypeId: string;
}
@ -26,6 +23,4 @@ export interface UpdateVehicleViewModel {
code?: string;
name: string;
location: string;
commissioned: Date;
decommissioned?: Date;
}

View file

@ -5,9 +5,7 @@ export interface WearableViewModel {
id: string;
code?: string;
name: string;
location: string;
commissioned: Date;
decommissioned?: Date;
location?: string;
wearerId?: string;
wearer?: MemberViewModel;
wearableTypeId: string;
@ -19,7 +17,6 @@ export interface CreateWearableViewModel {
name: string;
wearerId?: string;
location?: string;
commissioned: Date;
wearableTypeId: string;
}
@ -28,7 +25,5 @@ export interface UpdateWearableViewModel {
code?: string;
name: string;
location?: string;
commissioned: Date;
decommissioned?: Date;
wearerId?: string;
}

View file

@ -1,5 +1,10 @@
<template>
<MainTemplate title="Schadensmeldungen">
<MainTemplate>
<template #topBar>
<div class="flex flex-row items-center justify-between pt-5 pb-3 px-7">
<h1 class="font-bold text-xl h-8">Schadensmeldungen</h1>
</div>
</template>
<template #diffMain>
<div class="flex flex-col gap-2 grow px-7 overflow-hidden">
<div class="flex flex-col grow gap-2 overflow-hidden">

View file

@ -1,5 +1,10 @@
<template>
<MainTemplate title="Ausrüstung erfassen">
<MainTemplate>
<template #topBar>
<div class="flex flex-row items-center justify-between pt-5 pb-3 px-7">
<h1 class="font-bold text-xl h-8">Ausrüstung erfassen</h1>
</div>
</template>
<template #diffMain>
<div class="flex flex-col gap-2 h-full w-full overflow-y-auto">
<form class="flex flex-col gap-4 py-2 w-full max-w-xl mx-auto" @submit.prevent="triggerCreate">
@ -9,10 +14,6 @@
<input type="text" id="name" required />
</div>
<ScanInput name="code" label="Code" :required="false" />
<div>
<label for="commissioned">In-Betrieb-Nahme</label>
<input type="date" id="commissioned" required />
</div>
<div>
<label for="location">Verortung (optional)</label>
<input type="text" id="location" />
@ -80,7 +81,6 @@ export default defineComponent({
name: formData.name.value,
location: formData.location.value,
equipmentTypeId: this.selectedType,
commissioned: formData.commissioned.value,
};
this.status = "loading";
this.createEquipment(createEquipment)

View file

@ -1,5 +1,10 @@
<template>
<MainTemplate title="Gerätschaften">
<MainTemplate>
<template #topBar>
<div class="flex flex-row items-center justify-between pt-5 pb-3 px-7">
<h1 class="font-bold text-xl h-8">Gerätschaften</h1>
</div>
</template>
<template #diffMain>
<div class="flex flex-col w-full h-full gap-2 justify-center px-7">
<Pagination

View file

@ -1,12 +1,18 @@
<template>
<MainTemplate :title="activeEquipmentObj?.name">
<MainTemplate>
<template #headerInsert>
<RouterLink to="../" class="text-primary">zurück zur Liste</RouterLink>
</template>
<template #topBar>
<RouterLink v-if="can('update', 'unit', 'equipment')" :to="{ name: 'admin-unit-equipment-edit' }">
<PencilIcon class="w-5 h-5" />
</RouterLink>
<div class="flex flex-row gap-2 items-center justify-between pt-5 pb-3 px-7">
<h1 class="font-bold text-xl h-8 min-h-fit grow">
{{ activeEquipmentObj?.name }}
</h1>
<RouterLink v-if="can('update', 'unit', 'equipment')" :to="{ name: 'admin-unit-equipment-edit' }">
<PencilIcon class="w-5 h-5" />
</RouterLink>
</div>
</template>
<template #diffMain>
<div class="flex flex-col gap-2 grow px-7 overflow-hidden">

View file

@ -17,14 +17,6 @@
<label for="location">Verortung</label>
<input type="text" id="location" :value="activeEquipmentObj.location" readonly />
</div>
<div>
<label for="commissioned">In-Betrieb-Nahme</label>
<input type="date" id="commissioned" :value="activeEquipmentObj.commissioned" readonly />
</div>
<div>
<label for="decommissioned">Außer-Betrieb-Nahme</label>
<input type="date" id="decommissioned" :value="activeEquipmentObj.decommissioned" readonly />
</div>
</div>
<Spinner v-if="loadingActive == 'loading'" class="mx-auto" />

View file

@ -17,14 +17,6 @@
<label for="location">Verortung (optional)</label>
<input type="text" id="location" v-model="equipment.location" />
</div>
<div>
<label for="commissioned">In-Betrieb-Nahme</label>
<input type="date" id="commissioned" required v-model="equipment.commissioned" />
</div>
<div>
<label for="decommissioned">Außer-Betrieb-Nahme (optional)</label>
<input type="date" id="decommissioned" v-model="equipment.decommissioned" />
</div>
<div class="flex flex-row justify-end gap-2">
<button primary-outline type="reset" class="w-fit!" :disabled="canSaveOrReset" @click="resetForm">
abbrechen
@ -106,8 +98,6 @@ export default defineComponent({
code: formData.code.value || null,
name: formData.name.value,
location: formData.location.value,
commissioned: formData.commissioned.value,
decommissioned: formData.decommissioned.value ?? null,
};
this.status = "loading";
this.updateActiveEquipment(updateEquipment)

View file

@ -1,5 +1,10 @@
<template>
<MainTemplate title="Geräte-Typen">
<MainTemplate>
<template #topBar>
<div class="flex flex-row items-center justify-between pt-5 pb-3 px-7">
<h1 class="font-bold text-xl h-8">Geräte-Typen</h1>
</div>
</template>
<template #diffMain>
<div class="flex flex-col w-full h-full gap-2 justify-center px-7">
<Pagination

View file

@ -1,10 +1,14 @@
<template>
<MainTemplate :title="activeEquipmentTypeObj?.type">
<MainTemplate>
<template #headerInsert>
<RouterLink :to="{ name: 'admin-unit-equipment_type' }" class="text-primary">zurück zur Liste</RouterLink>
</template>
<template #topBar>
<div class="flex flex-row gap-2">
<div class="flex flex-row gap-2 items-center justify-between pt-5 pb-3 px-7">
<h1 class="font-bold text-xl h-8 min-h-fit grow">
{{ activeEquipmentTypeObj?.type }}
</h1>
<RouterLink v-if="can('update', 'unit', 'equipment_type')" :to="{ name: 'admin-unit-equipment_type-edit' }">
<PencilIcon class="w-5 h-5" />
</RouterLink>

View file

@ -1,9 +1,11 @@
<template>
<MainTemplate>
<template #topBar>
<h1 class="font-bold text-xl min-h-8">
Prüfung durchführen: {{ activeInspectionObj?.related.name }} - {{ activeInspectionObj?.inspectionPlan.title }}
</h1>
<div class="flex flex-row items-center justify-between pt-5 pb-3 px-7">
<h1 class="font-bold text-xl min-h-8">
Prüfung durchführen: {{ activeInspectionObj?.related.name }} - {{ activeInspectionObj?.inspectionPlan.title }}
</h1>
</div>
</template>
<template #main>
<Spinner v-if="loading == 'loading'" class="mx-auto" />

View file

@ -1,5 +1,10 @@
<template>
<MainTemplate title="Prüfung erstellen">
<MainTemplate>
<template #topBar>
<div class="flex flex-row items-center justify-between pt-5 pb-3 px-7">
<h1 class="font-bold text-xl h-8">Prüfung erstellen</h1>
</div>
</template>
<template #main>
<form class="flex flex-col gap-4 py-2 w-full max-w-xl mx-auto" @submit.prevent="">
<div class="flex flex-row">

View file

@ -1,5 +1,10 @@
<template>
<MainTemplate title="Prüfplan erstellen">
<MainTemplate>
<template #topBar>
<div class="flex flex-row items-center justify-between pt-5 pb-3 px-7">
<h1 class="font-bold text-xl h-8">Prüfplan erstellen</h1>
</div>
</template>
<template #diffMain>
<div class="flex flex-col gap-2 h-full w-full overflow-y-auto">
<form class="flex flex-col gap-4 py-2 w-full max-w-xl mx-auto" @submit.prevent="triggerCreate">

View file

@ -1,5 +1,10 @@
<template>
<MainTemplate title="Prüfpläne">
<MainTemplate>
<template #topBar>
<div class="flex flex-row items-center justify-between pt-5 pb-3 px-7">
<h1 class="font-bold text-xl h-8">Prüfpläne</h1>
</div>
</template>
<template #diffMain>
<div class="flex flex-col w-full h-full gap-2 justify-center px-7">
<Pagination

View file

@ -1,12 +1,18 @@
<template>
<MainTemplate :title="activeInspectionPlanObj?.title">
<MainTemplate>
<template #headerInsert>
<RouterLink to="./" class="text-primary">zurück zur Liste</RouterLink>
</template>
<template #topBar>
<RouterLink v-if="can('update', 'unit', 'inspection_plan')" :to="{ name: 'admin-unit-inspection_plan-edit' }">
<PencilIcon class="w-5 h-5" />
</RouterLink>
<div class="flex flex-row gap-2 items-center justify-between pt-5 pb-3 px-7">
<h1 class="font-bold text-xl h-8 min-h-fit grow">
{{ activeInspectionPlanObj?.title }}
</h1>
<RouterLink v-if="can('update', 'unit', 'inspection_plan')" :to="{ name: 'admin-unit-inspection_plan-edit' }">
<PencilIcon class="w-5 h-5" />
</RouterLink>
</div>
</template>
<template #diffMain>
<div class="flex flex-col gap-2 grow px-7 overflow-hidden">

View file

@ -1,5 +1,10 @@
<template>
<MainTemplate title="Atemschutz-Geräte">
<MainTemplate>
<template #topBar>
<div class="flex flex-row items-center justify-between pt-5 pb-3 px-7">
<h1 class="font-bold text-xl h-8">Atemschutz-Geräte</h1>
</div>
</template>
<template #diffMain>
<div class="flex flex-col w-full h-full gap-2 justify-center px-7">
<Pagination

View file

@ -4,17 +4,19 @@
<RouterLink to="../" class="text-primary">zurück zur Liste</RouterLink>
</template>
<template #topBar>
<h1 class="font-bold text-xl h-8 min-h-fit">AGT-Gerät: {{ activeRespiratoryGearObj?.equipment.name }}</h1>
<div class="flex flex-row gap-2 items-center justify-between pt-5 pb-3 px-7">
<h1 class="font-bold text-xl h-8 min-h-fit grow">AGT-Gerät: {{ activeRespiratoryGearObj?.equipment.name }}</h1>
<RouterLink
v-if="can('read', 'unit', 'equipment')"
:to="{
name: 'admin-unit-equipment-overview',
params: { equipmentId: activeRespiratoryGearObj?.equipment.id ?? '_' },
}"
>
<ArrowTopRightOnSquareIcon class="w-5 h-5" />
</RouterLink>
<RouterLink
v-if="can('read', 'unit', 'equipment')"
:to="{
name: 'admin-unit-equipment-overview',
params: { equipmentId: activeRespiratoryGearObj?.equipment.id ?? '_' },
}"
>
<ArrowTopRightOnSquareIcon class="w-5 h-5" />
</RouterLink>
</div>
</template>
<template #diffMain>
<div class="flex flex-col gap-2 grow px-7 overflow-hidden">

View file

@ -1,5 +1,10 @@
<template>
<MainTemplate title="Atemschutz-Einsätze">
<MainTemplate>
<template #topBar>
<div class="flex flex-row items-center justify-between pt-5 pb-3 px-7">
<h1 class="font-bold text-xl h-8">Atemschutz-Einsätze</h1>
</div>
</template>
<template #diffMain>
<div class="flex flex-col w-full h-full gap-2 justify-center px-7">
<Pagination

View file

@ -4,7 +4,9 @@
<RouterLink to="../" class="text-primary">zurück zur Liste</RouterLink>
</template>
<template #topBar>
<h1 class="font-bold text-xl h-8 min-h-fit">AGT-Einsatz: {{ activeRespiratoryMissionObj?.title }}</h1>
<div class="flex flex-row gap-2 items-center justify-between pt-5 pb-3 px-7">
<h1 class="font-bold text-xl h-8 min-h-fit grow">AGT-Einsatz: {{ activeRespiratoryMissionObj?.title }}</h1>
</div>
</template>
<template #diffMain>
<div class="flex flex-col gap-2 grow px-7 overflow-hidden">

View file

@ -1,5 +1,10 @@
<template>
<MainTemplate title="Atemschutz-Träger">
<MainTemplate>
<template #topBar>
<div class="flex flex-row items-center justify-between pt-5 pb-3 px-7">
<h1 class="font-bold text-xl h-8">Atemschutz-Träger</h1>
</div>
</template>
<template #diffMain>
<div class="flex flex-col w-full h-full gap-2 justify-center px-7">
<Pagination

View file

@ -4,10 +4,12 @@
<RouterLink to="../" class="text-primary">zurück zur Liste</RouterLink>
</template>
<template #topBar>
<h1 class="font-bold text-xl h-8 min-h-fit grow">
AGT-Träger: {{ activeRespiratoryWearerObj?.member.lastname }},
{{ activeRespiratoryWearerObj?.member.firstname }}
</h1>
<div class="flex flex-row gap-2 items-center justify-between pt-5 pb-3 px-7">
<h1 class="font-bold text-xl h-8 min-h-fit grow">
AGT-Träger: {{ activeRespiratoryWearerObj?.member.lastname }},
{{ activeRespiratoryWearerObj?.member.firstname }}
</h1>
</div>
</template>
<template #diffMain>
<div class="flex flex-col gap-2 grow px-7 overflow-hidden">

View file

@ -1,5 +1,10 @@
<template>
<MainTemplate title="Fahrzeug erfassen">
<MainTemplate>
<template #topBar>
<div class="flex flex-row items-center justify-between pt-5 pb-3 px-7">
<h1 class="font-bold text-xl h-8">Fahrzeug erfassen</h1>
</div>
</template>
<template #diffMain>
<div class="flex flex-col gap-2 h-full w-full overflow-y-auto">
<form class="flex flex-col gap-4 py-2 w-full max-w-xl mx-auto" @submit.prevent="triggerCreate">
@ -9,10 +14,6 @@
<input type="text" id="name" required />
</div>
<ScanInput name="code" label="Code" :required="false" />
<div>
<label for="commissioned">In-Betrieb-Nahme</label>
<input type="date" id="commissioned" required />
</div>
<div>
<label for="location">Verortung (optional)</label>
<input type="text" id="location" />
@ -79,7 +80,6 @@ export default defineComponent({
code: formData.code.value || null,
location: formData.location.value,
vehicleTypeId: this.selectedType,
commissioned: formData.commissioned.value,
};
this.status = "loading";
this.createVehicle(createVehicle)

View file

@ -17,14 +17,6 @@
<label for="location">Verortung</label>
<input type="text" id="location" :value="activeVehicleObj.location" readonly />
</div>
<div>
<label for="commissioned">In-Betrieb-Nahme</label>
<input type="date" id="commissioned" :value="activeVehicleObj.commissioned" readonly />
</div>
<div>
<label for="decommissioned">Außer-Betrieb-Nahme</label>
<input type="date" id="decommissioned" :value="activeVehicleObj.decommissioned" readonly />
</div>
</div>
<Spinner v-if="loadingActive == 'loading'" class="mx-auto" />

View file

@ -17,14 +17,6 @@
<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' }"
@ -108,8 +100,6 @@ 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)

View file

@ -1,5 +1,10 @@
<template>
<MainTemplate title="Fahrzeuge">
<MainTemplate>
<template #topBar>
<div class="flex flex-row items-center justify-between pt-5 pb-3 px-7">
<h1 class="font-bold text-xl h-8">Fahrzeuge</h1>
</div>
</template>
<template #diffMain>
<div class="flex flex-col w-full h-full gap-2 justify-center px-7">
<Pagination

View file

@ -1,12 +1,18 @@
<template>
<MainTemplate :title="activeVehicleObj?.name">
<MainTemplate>
<template #headerInsert>
<RouterLink to="../" class="text-primary">zurück zur Liste</RouterLink>
</template>
<template #topBar>
<RouterLink v-if="can('update', 'unit', 'vehicle')" :to="{ name: 'admin-unit-vehicle-edit' }">
<PencilIcon class="w-5 h-5" />
</RouterLink>
<div class="flex flex-row gap-2 items-center justify-between pt-5 pb-3 px-7">
<h1 class="font-bold text-xl h-8 min-h-fit grow">
{{ activeVehicleObj?.name }}
</h1>
<RouterLink v-if="can('update', 'unit', 'vehicle')" :to="{ name: 'admin-unit-vehicle-edit' }">
<PencilIcon class="w-5 h-5" />
</RouterLink>
</div>
</template>
<template #diffMain>
<div class="flex flex-col gap-2 grow px-7 overflow-hidden">

View file

@ -1,5 +1,10 @@
<template>
<MainTemplate title="Geräte-Typen">
<MainTemplate>
<template #topBar>
<div class="flex flex-row items-center justify-between pt-5 pb-3 px-7">
<h1 class="font-bold text-xl h-8">Geräte-Typen</h1>
</div>
</template>
<template #diffMain>
<div class="flex flex-col w-full h-full gap-2 justify-center px-7">
<Pagination

View file

@ -1,10 +1,14 @@
<template>
<MainTemplate :title="activeVehicleTypeObj?.type">
<MainTemplate>
<template #headerInsert>
<RouterLink :to="{ name: 'admin-unit-vehicle_type' }" class="text-primary">zurück zur Liste</RouterLink>
</template>
<template #topBar>
<div class="flex flex-row gap-2">
<div class="flex flex-row gap-2 items-center justify-between pt-5 pb-3 px-7">
<h1 class="font-bold text-xl h-8 min-h-fit grow">
{{ activeVehicleTypeObj?.type }}
</h1>
<RouterLink v-if="can('update', 'unit', 'vehicle_type')" :to="{ name: 'admin-unit-vehicle_type-edit' }">
<PencilIcon class="w-5 h-5" />
</RouterLink>

View file

@ -1,5 +1,10 @@
<template>
<MainTemplate title="Kleidung erfassen">
<MainTemplate>
<template #topBar>
<div class="flex flex-row items-center justify-between pt-5 pb-3 px-7">
<h1 class="font-bold text-xl h-8">Kleidung erfassen</h1>
</div>
</template>
<template #diffMain>
<div class="flex flex-col gap-2 h-full w-full overflow-y-auto">
<form class="flex flex-col gap-4 py-2 w-full max-w-xl mx-auto" @submit.prevent="triggerCreate">
@ -9,15 +14,11 @@
<input type="text" id="name" required />
</div>
<ScanInput name="code" label="Code" :required="false" />
<div>
<label for="commissioned">In-Betrieb-Nahme</label>
<input type="date" id="commissioned" required />
</div>
<div>
<label for="location">Verortung (optional)</label>
<input type="text" id="location" />
</div>
<MemberSearchSelectSingle title="Träger (optional)" v-model="wearer" />
<MemberSearchSelectSingle title="Träger (optional)" />
<div class="flex flex-row justify-end gap-2">
<RouterLink
:to="{ name: 'admin-unit-wearable' }"
@ -61,7 +62,6 @@ export default defineComponent({
status: null as null | "loading" | { status: "success" | "failed"; reason?: string },
timeout: null as any,
selectedType: "" as string,
wearer: "" as string,
};
},
computed: {
@ -82,9 +82,8 @@ export default defineComponent({
code: formData.code.value || null,
name: formData.name.value,
location: formData.location.value,
wearerId: this.wearer,
wearerId: "",
wearableTypeId: this.selectedType,
commissioned: formData.commissioned.value,
};
this.status = "loading";
this.createWearable(createWearable)

View file

@ -17,14 +17,6 @@
<label for="location">Verortung</label>
<input type="text" id="location" :value="activeWearableObj.location" readonly />
</div>
<div>
<label for="commissioned">In-Betrieb-Nahme</label>
<input type="date" id="commissioned" :value="activeWearableObj.commissioned" readonly />
</div>
<div>
<label for="decommissioned">Außer-Betrieb-Nahme</label>
<input type="date" id="decommissioned" :value="activeWearableObj.decommissioned" readonly />
</div>
<div>
<label for="wearer">Träger</label>
<input

View file

@ -18,14 +18,6 @@
<input type="text" id="location" v-model="wearable.location" />
</div>
<MemberSearchSelectMultiple title="Träger (optional)" />
<div>
<label for="commissioned">In-Betrieb-Nahme</label>
<input type="date" id="commissioned" required v-model="wearable.commissioned" />
</div>
<div>
<label for="decommissioned">Außer-Betrieb-Nahme (optional)</label>
<input type="date" id="decommissioned" v-model="wearable.decommissioned" />
</div>
<div class="flex flex-row justify-end gap-2">
<button primary-outline type="reset" class="w-fit!" :disabled="canSaveOrReset" @click="resetForm">
abbrechen
@ -108,8 +100,6 @@ export default defineComponent({
code: formData.code.value || null,
name: formData.name.value,
location: formData.location.value,
commissioned: formData.commissioned.value,
decommissioned: formData.decommissioned.value ?? null,
};
this.status = "loading";
this.updateActiveWearable(updateWearable)

View file

@ -1,5 +1,10 @@
<template>
<MainTemplate title="Kleidungen">
<MainTemplate>
<template #topBar>
<div class="flex flex-row items-center justify-between pt-5 pb-3 px-7">
<h1 class="font-bold text-xl h-8">Kleidungen</h1>
</div>
</template>
<template #diffMain>
<div class="flex flex-col w-full h-full gap-2 justify-center px-7">
<Pagination

View file

@ -1,12 +1,18 @@
<template>
<MainTemplate :title="activeWearableObj?.name">
<MainTemplate>
<template #headerInsert>
<RouterLink to="../" class="text-primary">zurück zur Liste</RouterLink>
</template>
<template #topBar>
<RouterLink v-if="can('update', 'unit', 'wearable')" :to="{ name: 'admin-unit-wearable-edit' }">
<PencilIcon class="w-5 h-5" />
</RouterLink>
<div class="flex flex-row gap-2 items-center justify-between pt-5 pb-3 px-7">
<h1 class="font-bold text-xl h-8 min-h-fit grow">
{{ activeWearableObj?.name }}
</h1>
<RouterLink v-if="can('update', 'unit', 'wearable')" :to="{ name: 'admin-unit-wearable-edit' }">
<PencilIcon class="w-5 h-5" />
</RouterLink>
</div>
</template>
<template #diffMain>
<div class="flex flex-col gap-2 grow px-7 overflow-hidden">

View file

@ -1,5 +1,10 @@
<template>
<MainTemplate title="Kleidungs-Typen">
<MainTemplate>
<template #topBar>
<div class="flex flex-row items-center justify-between pt-5 pb-3 px-7">
<h1 class="font-bold text-xl h-8">Kleidungs-Typen</h1>
</div>
</template>
<template #diffMain>
<div class="flex flex-col w-full h-full gap-2 justify-center px-7">
<Pagination