This commit is contained in:
Matthias Hochmeister
2026-03-26 12:12:18 +01:00
parent d351ea2647
commit 507111e8e8
12 changed files with 202 additions and 131 deletions

View File

@@ -48,6 +48,7 @@ import { useNavigate } from 'react-router-dom';
import { format, parseISO } from 'date-fns';
import DashboardLayout from '../components/dashboard/DashboardLayout';
import ChatAwareFab from '../components/shared/ChatAwareFab';
import GermanDateField from '../components/shared/GermanDateField';
import ServiceModePage from '../components/shared/ServiceModePage';
import { useAuth } from '../contexts/AuthContext';
import { usePermissionContext } from '../contexts/PermissionContext';
@@ -262,22 +263,18 @@ function FahrzeugBuchungen() {
{/* Filters */}
<Paper sx={{ p: 2, mb: 2 }}>
<Stack direction={{ xs: 'column', sm: 'row' }} spacing={2} alignItems="center">
<TextField
<GermanDateField
size="small"
label="Von"
type="date"
value={filterFrom}
onChange={(e) => setFilterFrom(e.target.value)}
InputLabelProps={{ shrink: true }}
onChange={(iso) => setFilterFrom(iso)}
sx={{ minWidth: 160 }}
/>
<TextField
<GermanDateField
size="small"
label="Bis"
type="date"
value={filterTo}
onChange={(e) => setFilterTo(e.target.value)}
InputLabelProps={{ shrink: true }}
onChange={(iso) => setFilterTo(iso)}
sx={{ minWidth: 160 }}
/>
<FormControl size="small" sx={{ minWidth: 180 }}>