ilios / ilios

Curriculum Management System for the Health Professions
http://www.iliosproject.org
MIT License
82 stars 42 forks source link

Timed Release Learning Materials - Have End Date Default to Later than or equal to Start Date #5661

Closed dartajax closed 1 month ago

dartajax commented 2 months ago

This is just a convenience for the user. If you want to display a learning material and set the start date to a future (later than today) date, the end date should automatically (after the end date button is pressed) adjust to the same date since I guess it could be a one days special.

image

image

image

image

IF this is a duplicate, I apologize in advance.

michaelchadwick commented 2 months ago

@dartajax I was able to figure out how to "sync" the dates so that you can't enter an endDate before a startDate. You can still do an end time before the start time, so the error message could still come up (which has an extra "AM" at the end, too. Can't figure out where that's set in the code or its dependencies). I'm just working on updating tests for my fix.

michaelchadwick commented 2 months ago

Because of the way I'm "syncing" the dates, I didn't go for the "+1" since it would make it impossible to create a start and end date on the same day, which I'm sure is a potential use case.

michaelchadwick commented 1 month ago

@dartajax This looks like it's been handled by ilios/frontend#8103 but I'll let you close it.