mirror of
https://github.com/tomru/pfadi-bussle.git
synced 2026-03-03 06:27:11 +01:00
break start/end date fields together
This commit is contained in:
committed by
Thomas Ruoff
parent
8925a9ed7f
commit
18337a7ac7
@@ -11,29 +11,33 @@ export default function DateSelect() {
|
||||
return (
|
||||
<>
|
||||
<InputWrapper label="Datum" required>
|
||||
<label className="flabel inline-block mr-3" htmlFor="startDate">
|
||||
Von
|
||||
</label>
|
||||
<input
|
||||
required
|
||||
type="date"
|
||||
name="startDate"
|
||||
value={startDate}
|
||||
onChange={onChangeEvent}
|
||||
min={today}
|
||||
/>
|
||||
<label className="flabel inline-block ml-6 mr-3" htmlFor="endDate">
|
||||
Bis
|
||||
</label>
|
||||
<input
|
||||
required
|
||||
type="date"
|
||||
name="endDate"
|
||||
value={endDate}
|
||||
placeholder="Von"
|
||||
onChange={onChangeEvent}
|
||||
min={startDate || today}
|
||||
/>
|
||||
<div className="inline-block mr-6">
|
||||
<label className="flabel inline-block w-6 mr-3" htmlFor="startDate">
|
||||
Von
|
||||
</label>
|
||||
<input
|
||||
required
|
||||
type="date"
|
||||
name="startDate"
|
||||
value={startDate}
|
||||
onChange={onChangeEvent}
|
||||
min={today}
|
||||
/>
|
||||
</div>
|
||||
<div className="inline-block">
|
||||
<label className="flabel inline-block w-6 mr-3" htmlFor="endDate">
|
||||
Bis
|
||||
</label>
|
||||
<input
|
||||
required
|
||||
type="date"
|
||||
name="endDate"
|
||||
value={endDate}
|
||||
placeholder="Von"
|
||||
onChange={onChangeEvent}
|
||||
min={startDate || today}
|
||||
/>
|
||||
</div>
|
||||
</InputWrapper>
|
||||
</>
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user