Story #102 List event trainer on daily agenda | User and Technical Documentation - cseseniordesign/reservations GitHub Wiki

End User Documentation

Dev Testing Instructions

  1. Make sure you are on the most recent version of the dev-trainer-on-agenda branch.
  2. Start your dev environment.
  3. Navigate to the events page
  4. Create an event for the current date with a trainer.
  5. Navigate to the admin/agenda page.
  6. Confirm that the event created appears with the trainer listed as the last element in the table.

Production Testing Instructions

  1. Go to https://innovationstudio-manager.unl.edu/home/
  2. Follow steps 3 and up from the dev testing instructions above.

Technical Documentation

routes/admin/agenda.rb

  • Created a new hash, trainers which contains each trainer_id and their associated name for every event on the agenda.
  • Passed this hash to agenda.erb for use on the agenda page.

views/admin/agenda.erb

  • Added a column on the events agenda table for Trainer
  • Populated that column by using the trainers hash with event.trainer_id