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
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