feat: add vehicle edit page, image gallery with upload, print and CSV export

This commit is contained in:
2026-07-19 19:47:39 +02:00
parent 58fcf4a722
commit 563127c75a
9 changed files with 499 additions and 5 deletions
@@ -0,0 +1,15 @@
import { VehicleEditForm } from '@/components/vehicles/VehicleEditForm';
export default async function FahrzeugBearbeitenPage({
params,
}: {
params: Promise<{ locale: string; id: string }>;
}) {
const { id } = await params;
return (
<div className="max-w-2xl mx-auto p-6">
<h1 className="text-2xl font-bold text-text mb-6">Fahrzeug bearbeiten</h1>
<VehicleEditForm vehicleId={id} />
</div>
);
}
+68
View File
@@ -20,3 +20,71 @@ body {
color: var(--color-text);
font-family: system-ui, -apple-system, sans-serif;
}
@media print {
body {
background: white !important;
color: black !important;
font-size: 12pt;
}
.print\:hidden {
display: none !important;
}
.print\:block {
display: block !important;
}
nav,
aside,
button[class*="print:hidden"],
[data-testid="vehicle-actions"],
[data-testid="vehicle-images"],
[data-testid="upload-image-button"],
[data-testid="delete-button"],
[data-testid="vehicle-filters"],
[data-testid="vehicle-pagination"] {
display: none !important;
}
[data-testid="vehicle-detail-fields"] {
border: 1px solid #ccc !important;
padding: 16px !important;
}
[data-testid="vehicle-detail-fields"] dt {
font-weight: bold !important;
color: #333 !important;
}
[data-testid="vehicle-detail-fields"] dd {
color: black !important;
}
h1[data-testid="vehicle-detail-title"] {
font-size: 18pt !important;
color: black !important;
}
a {
text-decoration: none !important;
color: black !important;
}
.bg-surface {
background: white !important;
}
.border-border {
border-color: #ccc !important;
}
.text-text-muted {
color: #555 !important;
}
.text-text {
color: black !important;
}
}