Ezer-Lachaim / EZLA

1 stars 19 forks source link

Restrict time of ordering a ride to X hours before now #438

Open LEVI-RIVKIN opened 6 months ago

LEVI-RIVKIN commented 6 months ago

Add a setting in the backoffice to enable the restriction of ordering a new ride within a specified number of hours before the current time.

  1. The setting should be in a new settings page in the backoffice.
  2. All settings should be saved under a settings key in the db.
  3. This setting should be named rideTimeRestriction.
  4. All settings saved in db should be returned from the server (backend) in a new /settings route.
  5. Add validation in the backend when creating ride.
  6. Add validation in the client in new ride page.
  7. Add validation in the backoffice in new ride dialog and edit ride dialog.