mirror of
https://github.com/tomru/pfadi-bussle.git
synced 2026-03-04 23:17:12 +01:00
improve date select
This commit is contained in:
@@ -16,10 +16,11 @@ 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="">
|
||||||
|
<label className="flabel inline-block mr-3" htmlFor="startDate">
|
||||||
Von
|
Von
|
||||||
</label>
|
</label>
|
||||||
<input
|
<input
|
||||||
@@ -32,8 +33,8 @@ export default function DateSelect() {
|
|||||||
min={today}
|
min={today}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div className="inline-block">
|
<div className="">
|
||||||
<label className="flabel inline-block w-6 mr-3" htmlFor="endDate">
|
<label className="flabel inline-block mr-3" htmlFor="endDate">
|
||||||
Bis
|
Bis
|
||||||
</label>
|
</label>
|
||||||
<input
|
<input
|
||||||
@@ -47,6 +48,7 @@ export default function DateSelect() {
|
|||||||
min={startDate || today}
|
min={startDate || today}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
</InputWrapper>
|
</InputWrapper>
|
||||||
</>
|
</>
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user