nss-evening-cohort-11 / nutshell-droids-ewoks

PanAm Airline
0 stars 1 forks source link

View food items to a flight #91

Open Nikababy01 opened 4 years ago

Nikababy01 commented 4 years ago

User Story

As a user, I should be able to food items to a flight.

AC

WHEN looking at the flights "page"

THEN I should see all the flights

Dev Notes

In src/javascripts/helpers/data create a smashData.js file to add the data to the planned flights const getAllFlightInfo = ( ) => new Promise (resolve, reject) => { planesData.js.getPlanes( ) .then((planesResponse) =>{ hubData.getAllAirports( ).then((hubResponse) => { crewData.js.getAllCrews( ).then((crewResponse) => { foodData.js.getAllFoods( ) . then ((foodResponse)= { resolve([]);

Inside the <form id="create-new-flight-form"> there will be <div id="flight-food-options">

these will be check boxes created after looping through the smash file for food options

the .val will be captured and display alongside other flight info on the new flight card