Skip to content

feat(admin): add delete confirmation dialog for school records#80

Open
thakurakanksha288 wants to merge 1 commit into
harxh-v:mainfrom
thakurakanksha288:fix/delete-confirmation-dialog
Open

feat(admin): add delete confirmation dialog for school records#80
thakurakanksha288 wants to merge 1 commit into
harxh-v:mainfrom
thakurakanksha288:fix/delete-confirmation-dialog

Conversation

@thakurakanksha288

@thakurakanksha288 thakurakanksha288 commented Jun 8, 2026

Copy link
Copy Markdown

Overview

Introduces a JavaScript-based delete confirmation modal to prevent accidental data erasure by administrative users. This provides a clean UX guard layer before final records are deleted from the dashboard.

Changes Made

  • Added assets/js/confirm-delete.js: Created modular logic to intercept delete action clicks, launching an interactive confirmation prompt instead of executing immediate destruction.
  • Attached listeners to dangerous administrative buttons to standardize safe data handling flows.

How to Test

  1. Navigate to the admin dashboard panels.
  2. Click any record deletion button (e.g., student, course, or ID card template rows).
  3. Verify that the system intercepts the click and cleanly prompts you to confirm your action before completing the request.

closes #79

@github-actions

github-actions Bot commented Jun 8, 2026

Copy link
Copy Markdown

Thank you for submitting your pull request! 🙌 We'll review it as soon as possible. In the meantime, please ensure that your changes align with our CONTRIBUTING.md. If there are any specific instructions or feedback regarding your PR, we'll provide them here. Thanks again for your contribution! 😊

@thakurakanksha288

Copy link
Copy Markdown
Author

hi @harxh-v , kindly merge it under right labels

@thakurakanksha288

Copy link
Copy Markdown
Author

hi @harxh-v , kindly merge this

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.

Delete option should ask before removing data

1 participant