Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(Update) Airport Collection Edit Item #14

Open
MarkyAaronYoung opened this issue Jul 14, 2020 · 1 comment
Open

(Update) Airport Collection Edit Item #14

MarkyAaronYoung opened this issue Jul 14, 2020 · 1 comment
Assignees

Comments

@MarkyAaronYoung
Copy link
Contributor

MarkyAaronYoung commented Jul 14, 2020

User Story

As a user, I should be able to edit airport items.

AC

WHEN a user is logged in and on the Airport Collection Page
THEN they will see an edit button on the individual Airport items
WHEN clicked it'll populate a form the the user to edit the name, location, and website
THEN when submitted it'll update the airport and dom will be reprinted with updated airport.

Dev Notes

  • Add edit button to airport cards
  • Addclass.hide unless the user is logged in
  • Create a airport collection div
  • Create editAirportForm() - Use bootstrap form
  • $('body').on('click', '.edit-airport-form', editAirportForm)
  • Create editAirport() that takes values from form and updates the airport src/javascripts/components/editAirport/editAirport.js
  • $('body').on('click', '.submit-edit-airport-form', editAirport)
  • Use axios.put() to update Airport in Firebase -- src/javascripts/helpers/data/airportData.js
@MarkyAaronYoung
Copy link
Contributor Author

Screen Shot 2020-07-14 at 6 52 55 PM

@MarkyAaronYoung MarkyAaronYoung changed the title Airport Collection Edit Item (Create) Airport Collection Edit Item Jul 16, 2020
@MarkyAaronYoung MarkyAaronYoung changed the title (Create) Airport Collection Edit Item (Update) Airport Collection Edit Item Jul 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant