Story #130 Event Creation Input Validation - cseseniordesign/reservations GitHub Wiki
End User Documentation
Dev Testing Instructions
- Ensure you are on the most recent version of the
dev-event-creation-input-validation
branch.
- Start your dev environment and log in with development2, so you have all permissions.
- Navigate to the Events tab under Admin.
- Create a new event by clicking "+ New Event from Preset".
- Ensure that you can not create an event without filling event title and dates.
- Edit the created event by clicking the event title from events page.
- Ensure that you can not edit an event without filling event title and dates.
Production Testing Instructions
- Go to https://innovationstudio-manager.unl.edu/home/
- Log in as an admin user, then Follow steps 3-7 from the dev testing instructions above.
Technical Documentation
routes/admin/events.rb
- Changes within the POST
/admin/events/create/?
action:
- Flash error message when event title or dates are not filled; redirect to the same page.
- Changes within the POST
/admin/events/:event_id/edit/?
action:
- Flash error message when event title or dates are not filled; redirect to the same page.