It should also consider time, because it should not be possible to modify an event that has occurred in the morning but is over. It should, however, be possible to edit ongoing events, for reasons such as room changes etc. Events that do not have an endTime should be editable on the whole day until midnight and are considered to be passed after.
Also a lot of the code has to go into the controller not in the view. It is not considered good practice. For example one could just create an array of tuples, where on element of the tuple contains the event object and another a flag if it is considered to be passed. Then one only needs to test on the flag not on the times of the event.