Story #130 Event Creation Input Validation - cseseniordesign/reservations GitHub Wiki

End User Documentation

Dev Testing Instructions

  1. Ensure you are on the most recent version of the dev-event-creation-input-validation branch.
  2. Start your dev environment and log in with development2, so you have all permissions.
  3. Navigate to the Events tab under Admin.
  4. Create a new event by clicking "+ New Event from Preset".
  5. Ensure that you can not create an event without filling event title and dates.
  6. Edit the created event by clicking the event title from events page.
  7. Ensure that you can not edit an event without filling event title and dates.

Production Testing Instructions

  1. Go to https://innovationstudio-manager.unl.edu/home/
  2. 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.