Open jbkey2015 opened 4 years ago
As a user, I should be able to a add Show to an Event.
WHEN the user goes to an events page AND the user clicks the ADDEVENTSHOW button THEN a modal should appear with check boxes that upon checking a box will add a show.
Show -> showEvent: Smash
Place in showEvents Component
const printshowOpt = () => { let domString = ''; forEach(show){ domString +=` <div class="form-check"> <input class="form-check-input show" type="checkbox" name="${shows.id}" id="${shows.id}" value="${show.name}" ${(show.isChecked === true) ? checked : unchecked}> <label class="form-check-label" for="${show.id}">${show.name}</label> </div> `; } utilities.printToDom('showsSelection', domString); };
Modify Show Event
modifyShowEvent = (showId) => { if (checked) { showEventData.addShowEvent(showId) }; };
Add Axios call const addShowEvent = (showId) => axios.post(${baseUrl}/showEvents.json, showId);
const addShowEvent = (showId) => axios.post(
, showId);
check the erd for eventShows it should only have 2 things in it eventId and showId
User Story
As a user, I should be able to a add Show to an Event.
AC
WHEN the user goes to an events page AND the user clicks the ADDEVENTSHOW button THEN a modal should appear with check boxes that upon checking a box will add a show.
Dev Notes
Show -> showEvent: Smash
Place in showEvents Component
Modify Show Event
Add Axios call
const addShowEvent = (showId) => axios.post(
${baseUrl}/showEvents.json, showId);