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

Confirmation Page for Blog Post Deletion #95

Closed
wants to merge 4 commits into from

Conversation

divyalakshmi0
Copy link

Pull Request: Confirmation Page for Blog Post Deletion

Issue: #84

Description:

This pull request introduces a confirmation page that prompts users to confirm their intention to delete a blog post. This enhancement aims to prevent accidental deletions by providing a clear warning before proceeding with the deletion.

Changes Made:

  1. Confirmation Page:

    • Created a new EJS view (delete-post.ejs) that displays a confirmation message and options to either proceed with the deletion or cancel the action.
    • The confirmation page includes:
      • A clear message asking the user if they are sure they want to delete the post.
      • "Confirm" and "Cancel" buttons to proceed with or cancel the deletion action.
  2. Update to Existing Delete Route:

    • Modified the existing delete route to render the confirmation page when a user attempts to delete a post.
    • Ensured that the post ID is correctly passed to the confirmation page for the deletion process.
  3. Styling:

    • Added basic CSS for the confirmation page to ensure a user-friendly interface.

Benefits:

  • Improves user experience by reducing the risk of unintentional deletions.
  • Maintains the integrity of the blog by ensuring that users make informed decisions before deleting posts.

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

🎉 Boom! Your pull request just flew into the BlogLog HQ. High fives all around! Our team of tech wizards will check it out and get back to you faster than you can say 'code ninja!' Thanks for leveling up the project!

@sudo-dpkg
Copy link
Owner

@divyalakshmi0 can you please add a ss of page ?

@sudo-dpkg sudo-dpkg closed this Nov 9, 2024
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