Skip to content

add delete button on details and edit views#2733

Open
samialfattani wants to merge 2 commits into
pallets-eco:masterfrom
samialfattani:feat/delete-btn2
Open

add delete button on details and edit views#2733
samialfattani wants to merge 2 commits into
pallets-eco:masterfrom
samialfattani:feat/delete-btn2

Conversation

@samialfattani
Copy link
Copy Markdown
Contributor

Fixes #1327

Tests case are added to make sure button is appeared in both edit and details views with both Modal and non-modal mode

@samialfattani samialfattani marked this pull request as ready for review December 26, 2025 15:52
@ElLorans
Copy link
Copy Markdown
Contributor

ElLorans commented Jan 1, 2026

image Would it make sense to have the Delete button next to the "Cancel" one rather than on the top?

@samialfattani
Copy link
Copy Markdown
Contributor Author

Would it make sense to have the Delete button next to the "Cancel" one rather than on the top?

I thought about that, but i found it more clear to have it on the top for many reasons:
1- keep it far away of cancel button to avoid clicking delete by mistake.
2- when i was trying to add the button in Modal pages, it was'nt strait forward and i found some issues with JS.

@samuelhwilliams
Copy link
Copy Markdown
Contributor

I think having the delete button in the bottom row with existing buttons sounds good. We could right align it to create distance. If it doesn't already, the delete process could also require a confirmation step to prevent accidental deletion.

@samialfattani
Copy link
Copy Markdown
Contributor Author

samialfattani commented Jan 3, 2026

waht about details page ?

image

@samialfattani

This comment was marked as resolved.

Fixes pallets-eco#1327

fix showing confirm message on Modal

Align "Delete" button with other button groups in Edit page

fix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

Delete button on Edit/Detail view

4 participants