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

USER STORY: Update/Edit my recipes #18

Closed
6 tasks done
chris-townsend opened this issue Nov 9, 2022 · 0 comments
Closed
6 tasks done

USER STORY: Update/Edit my recipes #18

chris-townsend opened this issue Nov 9, 2022 · 0 comments
Assignees
Labels
1 User Story Estimate is 1 story point must-have A must-have feature

Comments

@chris-townsend
Copy link
Owner

chris-townsend commented Nov 9, 2022

User Story:

As a logged-in User, I can update and edit my recipes so that I can update any changes or mistakes that I have made

Ideas:

  • fontawesome for an 'edit' logo

Acceptance Criteria:

  • Only a logged-in User can update a recipe
  • If a User is logged in, an update button should be shown on the user recipe page
  • The form should auto-fill the previous content when the update button is clicked
  • When a logged-in User clicks update, the new data should be saved to the database
  • The logged-in User should be notified that they have updated the recipe successfully

Related User Stories:

Tasks:

  • Create classes in views.py
  • Create an 'edit' button that appears next to the recipe on a user's created recipes page
    • Ensure User is logged-in before an edit button appears and only display if the user is the author of the recipe
      • {% if request.user.username == recipe.author.username %}
  • Create an edit recipe view that uses the template for adding a recipe while auto-filling the fields with existing content
  • Wire up URLs to render templates
  • Create an alert message to the user for a successful update of their recipe

@chris-townsend chris-townsend added must-have A must-have feature 2 User Story Estimate is 2 story points labels Nov 9, 2022
@chris-townsend chris-townsend added this to the EPIC: User Recipes milestone Nov 9, 2022
@chris-townsend chris-townsend self-assigned this Nov 9, 2022
@chris-townsend chris-townsend added 1 User Story Estimate is 1 story point and removed 2 User Story Estimate is 2 story points labels Nov 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1 User Story Estimate is 1 story point must-have A must-have feature
Projects
Development

No branches or pull requests

1 participant