Commit 11999271 authored by Cédric F.'s avatar Cédric F.

Add bounds for date inputs

parent 5415fb5b
Pipeline #5484006 passed with stage
in 1 minute and 13 seconds
......@@ -87,6 +87,7 @@ config model =
(List.append dateInputAttributes
[ class "form-control form-control-lg"
, value model.birthDateString
, Html.Attributes.max <| DateExtra.toISOString <| Date.fromTime model.now
, onInput NewBirthDate
]
)
......@@ -224,6 +225,7 @@ eventForm model index =
(List.append dateInputAttributes
[ class "form-control"
, value event.from
, Html.Attributes.max event.to
, webkitHack
, onInput (UpdateEvent EventFrom)
]
......@@ -238,6 +240,7 @@ eventForm model index =
(List.append dateInputAttributes
[ class "form-control"
, value event.to
, Html.Attributes.min event.from
, onInput (UpdateEvent EventTo)
]
)
......
- fail if event.from > event.to
- store goals
- responsive
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment