MakeICT / event-creator

0 stars 3 forks source link

Form validition - invalid dates #35

Closed Rowbotronics closed 4 years ago

Rowbotronics commented 4 years ago

The event creation form should check whether the start and end dates are valid and prevent submission if it is not. Currently if you select an end time that is before the start time the event can be created, but will fail to sync. A generic internal server error is displayed to the user.

We also need to check that the event times are in the future.

Rowbotronics commented 4 years ago

Form validation added in 150c15da15eb6b6254e13ec517e997e3a81286fb to verify that event date is in the future.

Event time handling was also changed and now uses a start date, start time, and duration, so it is no longer possible to enter an end time that is before the start time. a8abdd5a2a3c6a6d29048e019366af25071c00cd