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

(Create)Crew Collection Add Items #17

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

(Create)Crew Collection Add Items #17

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

Comments

@bnemchak
Copy link
Contributor

bnemchak commented Jul 14, 2020

User Story

As a user, I should be able to add a crew member to the team.

AC

WHEN a user is logged in
AND clicks on the crew button
THEN they will see a single add button at the top of the page
AND that button will populate a form

Dev Notes

  • Create a crew collection div
  • create addCrew() : src/javascripts/components/addCrew/addCrew.js
  • Create a single addCrew button
  • Add class.hide unless the user is logged in
  • Create addCrewForm() use bootstrap form bootstrap form
  • $('body').on('click', '.add-crew-form', addCrewForm)
  • Form will print to #new-crew div using utils.printToDom('#new-crew, domString); function
  • Create addCrew() that takes values from form and creates new food object
  • $('body').on('click', '.submit-crew-form', addCrew)
  • * create axios.post()``` commands to firebase to add to data
@bnemchak bnemchak self-assigned this Jul 14, 2020
@bnemchak
Copy link
Contributor Author

Screen Shot 2020-07-14 at 7 10 45 PM

@bnemchak bnemchak changed the title Crew Collection Add Items (Create)Crew Collection Add Items 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