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

Added Confirmation Before Delete Task #113

Merged
merged 1 commit into from
Mar 21, 2021
Merged

Added Confirmation Before Delete Task #113

merged 1 commit into from
Mar 21, 2021

Conversation

1hanzla100
Copy link
Contributor

No description provided.

@1hanzla100
Copy link
Contributor Author

@shacker Review Pull Request and Merge it with master branch

@@ -53,7 +53,7 @@ <h3 class="card-title">{{ task.title }}</h3>
<form method="post" action="{% url "todo:delete_task" task.id %}" role="form" class="d-inline">
{% csrf_token %}
<div style="display:inline;">
<button class="btn btn-danger btn-sm" type="submit" name="submit_delete">
<button class="btn btn-danger btn-sm" type="submit" onclick="return confirm('Are you sure to delete task?');" name="submit_delete">
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please make it say "Are you sure you want to delete this task?"

Copy link
Owner

@shacker shacker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi - Can you please make the language change requested, and also post a couple of screenshots in the PR description, showing what happens when you click either of the two buttons? (as proof that it does delete what it should delete, and doesn't delete if you cancel out). Thanks.

@shacker
Copy link
Owner

shacker commented Mar 21, 2021

@1hanzla100 We never heard back from after the code review above. Did you still want to have this merged? Please respond.

@shacker
Copy link
Owner

shacker commented Mar 21, 2021

@1hanzla100 Nevermind, I'll just bring it in and change it myself. Thanks!

@shacker shacker merged commit 1762fe7 into shacker:master Mar 21, 2021
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

Successfully merging this pull request may close these issues.

2 participants