BCStudentSoftwareDevTeam / celts

Web app to support the CELTS program at Berea College
BSD 3-Clause "New" or "Revised" License
1 stars 8 forks source link

Disable Delete Event Button When Creating an Event #1165

Closed stevensonmichel closed 3 months ago

stevensonmichel commented 6 months ago

When an event is being created, the Delete Event button is still active. Considering that an event can be deleted unless it has been created, that button should be disabled if an event is being added for the first time.

delete1

If one clicks on the Delete button when creating an event, it sends to this 404 page, given that the event was not created so there is no view.

delete2

stevensonmichel commented 6 months ago

Disable Delete Button When Creating an Event

Hira-Ijaz commented 6 months ago

@stevensonmichel I would like to work on this issue, please assign it to me.

JohnCox2211 commented 3 months ago

Added if condition so that the delete button does not appear on the create page, only on the edit page. Change pulled and merged. Code starts line 281 in createEvent.html