Verleih 1.1.0: Detailseite im einheitlichen Seitenkopf
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
dea1c7061a
commit
4fc163e93e
6 changed files with 12 additions and 16 deletions
|
|
@ -1,8 +1,8 @@
|
|||
<script setup>
|
||||
import { computed, onBeforeUnmount, ref, watch } from 'vue';
|
||||
import { Link, router, useForm, usePage } from '@inertiajs/vue3';
|
||||
import { CalendarDays, ChevronLeft, Clock, ImageOff, LoaderCircle, MapPin, PencilLine, Send, Trash2, Undo2, UserRound, X } from '@lucide/vue';
|
||||
import { AppLayout, Button, Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, FormField, Input, PersonAvatar, formatDate, toast } from '@inhaus/ui';
|
||||
import { CalendarDays, Clock, ImageOff, LoaderCircle, MapPin, PencilLine, Send, Trash2, Undo2, UserRound, X } from '@lucide/vue';
|
||||
import { AppLayout, Button, PageHeader, Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, FormField, Input, PersonAvatar, formatDate, toast } from '@inhaus/ui';
|
||||
import RequestDialog from '../components/RequestDialog.vue';
|
||||
import StatusBadge from '../components/StatusBadge.vue';
|
||||
|
||||
|
|
@ -39,13 +39,13 @@ const period = (from, until) =>
|
|||
|
||||
<template>
|
||||
<AppLayout :title="item.title">
|
||||
<div class="ih:mb-4 ih:flex ih:flex-wrap ih:items-center ih:justify-between ih:gap-3">
|
||||
<Link href="/verleih" class="ih:inline-flex ih:items-center ih:gap-1 ih:text-sm ih:font-medium ih:text-muted-foreground ih:hover:text-foreground"><ChevronLeft class="ih:size-4" /> {{ labels.title }}</Link>
|
||||
<div v-if="canManage" class="ih:flex ih:gap-2">
|
||||
<PageHeader :title="item.title" :breadcrumbs="[{ label: labels.title, href: '/verleih' }]">
|
||||
<template #description><StatusBadge :lent="item.lent" class="ih:mt-1 ih:w-fit ih:border" /></template>
|
||||
<template v-if="canManage" #actions>
|
||||
<Button variant="outline" size="sm" as-child><Link :href="`/verleih/${item.id}/bearbeiten`"><PencilLine /> Bearbeiten</Link></Button>
|
||||
<Button variant="ghost" size="sm" class="ih:text-destructive ih:hover:text-destructive" @click="remove"><Trash2 /> Löschen</Button>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
</PageHeader>
|
||||
|
||||
<div class="ih:grid ih:gap-6 ih:lg:grid-cols-[minmax(0,1fr)_22rem]">
|
||||
<!-- Bild: ganz, ohne Zuschnitt -->
|
||||
|
|
@ -71,10 +71,6 @@ const period = (from, until) =>
|
|||
|
||||
<aside class="ih:grid ih:content-start ih:gap-4 ih:lg:sticky ih:lg:top-24">
|
||||
<section class="ih:grid ih:gap-4 ih:rounded-lg ih:border ih:bg-card ih:p-5">
|
||||
<div class="ih:grid ih:gap-2">
|
||||
<StatusBadge :lent="item.lent" class="ih:w-fit ih:border" />
|
||||
<h1 class="ih:text-xl ih:leading-snug ih:font-semibold">{{ item.title }}</h1>
|
||||
</div>
|
||||
<dl class="ih:grid ih:gap-2 ih:text-sm">
|
||||
<div class="ih:flex ih:gap-2">
|
||||
<dt class="ih:sr-only">Aktueller Standort</dt>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue