mirror of
https://github.com/tomru/pfadi-bussle.git
synced 2026-03-04 15:07:13 +01:00
improve date select
This commit is contained in:
@@ -16,36 +16,38 @@ export default function DateSelect() {
|
|||||||
start={startDate}
|
start={startDate}
|
||||||
end={endDate}
|
end={endDate}
|
||||||
onChange={onChange}
|
onChange={onChange}
|
||||||
className="m-6"
|
className="my-6 max-w-lg"
|
||||||
/>
|
/>
|
||||||
<div className="inline-block mr-6">
|
<div className="grid grid-cols-1 sm:grid-cols-2 gap-4">
|
||||||
<label className="flabel inline-block w-6 mr-3" htmlFor="startDate">
|
<div className="">
|
||||||
Von
|
<label className="flabel inline-block mr-3" htmlFor="startDate">
|
||||||
</label>
|
Von
|
||||||
<input
|
</label>
|
||||||
required
|
<input
|
||||||
type="date"
|
required
|
||||||
className="input-text"
|
type="date"
|
||||||
name="startDate"
|
className="input-text"
|
||||||
value={startDate || ''}
|
name="startDate"
|
||||||
onChange={onChangeEvent}
|
value={startDate || ''}
|
||||||
min={today}
|
onChange={onChangeEvent}
|
||||||
/>
|
min={today}
|
||||||
</div>
|
/>
|
||||||
<div className="inline-block">
|
</div>
|
||||||
<label className="flabel inline-block w-6 mr-3" htmlFor="endDate">
|
<div className="">
|
||||||
Bis
|
<label className="flabel inline-block mr-3" htmlFor="endDate">
|
||||||
</label>
|
Bis
|
||||||
<input
|
</label>
|
||||||
required
|
<input
|
||||||
type="date"
|
required
|
||||||
className="input-text"
|
type="date"
|
||||||
name="endDate"
|
className="input-text"
|
||||||
value={endDate || ''}
|
name="endDate"
|
||||||
placeholder="Von"
|
value={endDate || ''}
|
||||||
onChange={onChangeEvent}
|
placeholder="Von"
|
||||||
min={startDate || today}
|
onChange={onChangeEvent}
|
||||||
/>
|
min={startDate || today}
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</InputWrapper>
|
</InputWrapper>
|
||||||
</>
|
</>
|
||||||
|
|||||||
Reference in New Issue
Block a user