You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As a user, I should be able to add airports to the airport collection.
AC
WHEN a user is logged in and on the Airport Collection Page THEN they will see a single add button on the top of the page WHEN clicked it'll populate a form where the user can add the name, location, and website THEN when submitted it'll add the aiport and dom will be reprinted with added airport item
Dev Notes
Create an airport collection div
Create a single addAirport button
*. src/javascripts/components/addAirport/addAirport.js
Addclass.hide unless the user is logged in
Create addAirportForm() use bootstrap form bootstrap form
User Story
As a user, I should be able to add airports to the airport collection.
AC
WHEN a user is logged in and on the Airport Collection Page
THEN they will see a single add button on the top of the page
WHEN clicked it'll populate a form where the user can add the name, location, and website
THEN when submitted it'll add the aiport and dom will be reprinted with added airport item
Dev Notes
addAirport button
*.
src/javascripts/components/addAirport/addAirport.js
addAirportForm()
use bootstrap form bootstrap form$('body').on('click', '.add-airport-form', addAirportForm)
addAirport()
that takes values from form and creates new airport object$('body').on('click', '.submit-airport-form', addAirport)
* create
axios.post()``` commands to firebase to add to dataThe text was updated successfully, but these errors were encountered: