* Adds new and edit views for events and removes them from the index view * Fixes formatting issues in /admin/pages/index.html.erb * Refactors /admin/events partial, new, and edit forms * Updates admin_events routes to include all routes except destroy * Refactors Admin::EventsController and adds #new and #edit actions * specs: Adjusts admin_creates_new_event_spec to work with /admin/event changes * Refactors the Admin::EventsController, routes, and events index even further - Adds back placeholder text in Events form - Removes unnecessary code from controller - Reverts changes to routes - Adjusts event_cover_image size on index.html.erb * specs: Adds tests around creating and updating events to events_spec * Adds pagination to Admin::EventsController #index to cap events at 20 per page * Removes .all from Admin::EventsController and adds a line to index.html.erb * Uses crayons classes for _event_form.html.erb |
||
|---|---|---|
| .. | ||
| _event.html.erb | ||
| index.html.erb | ||
| show.html.erb | ||