Enable Edit and View of Reports

This commit is contained in:
Julian Krauser 2025-07-17 10:37:40 +02:00
parent 5ea5a0160a
commit 31b7ec9c3e
10 changed files with 162 additions and 56 deletions

View file

@ -9,21 +9,23 @@
<small v-if="damageReport?.related">({{ damageReport.related.code }})</small>
</p>
<div class="flex flex-row gap-2">
<div v-if="damageReport.images.length != 0" class="cursor-pointer" title="hi">
<div v-if="damageReport.images.length != 0" class="cursor-pointer">
<PhotoIcon class="w-5 h-5" />
</div>
<div v-if="damageReport.location" class="cursor-pointer" title="hi">
<div v-if="damageReport.location" class="cursor-pointer">
<MapPinIcon class="w-5 h-5" />
</div>
<div v-if="damageReport.reportedBy" class="cursor-pointer" title="hi">
<div v-if="damageReport.reportedBy" class="cursor-pointer">
<UserIcon class="w-5 h-5" />
</div>
<div v-if="damageReport.maintenance" class="cursor-pointer" title="hi">
<div v-if="damageReport.maintenance" class="cursor-pointer">
<WrenchScrewdriverIcon class="w-5 h-5" />
</div>
</div>
</div>
<div class="p-2">
<p>gemeldet: {{ damageReport.reportedAt }}</p>
<p>Status: {{ damageReport.status }}</p>
<p v-if="damageReport.description">Beschreibung: {{ damageReport.description }}</p>
</div>
</RouterLink>