Content
View differences
Updated by Behrokh Satarnejad 9 months ago
### Steps to reproduce
1. Login as a user with permissions to delete WPs
2. Go to the Wps page
3. Select a some of the Wps to be deleted
4. bulk delete them
### What is the buggy behavior?
* Wps list is misaligned
### What is the expected behavior?
* Align We should use the WP Primer DangerWarning component, with the list items
of work packages in an [insetBox](https://qa.openproject-edge.com/lookbook/pages/components/inset_box).
* Use the same pattern as for bulk delete projects, except with a DangerWarning (no checkbox confirmation): <mention class="mention" data-id="64885" data-type="work_package" data-text="##64885">##64885</mention>
* DangerWarning Dialog:
* Title: "Permanently delete these work packages?"
* Text: "Are you sure you want to delete the following work packages?"
* Body: List of work packages in an [insetBox](https://qa.openproject-edge.com/lookbook/pages/components/inset_box); use [Work Package Info Line](https://qa.openproject-edge.com/lookbook/pages/components/work_package_info_line) for listing work packages, but without the status
* Buttons:
* Cancel
* Delete permanently (danger)
### Screenshots and other files
**Current:**
<img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/713629/content">
<br> **Expected:**
<img class="image_resized op-uc-image op-uc-image_inline" style="width:667px;" src="/api/v3/attachments/781427/content">
1. Login as a user with permissions to delete WPs
2. Go to the Wps page
3. Select a some of the Wps to be deleted
4. bulk delete them
### What is the buggy behavior?
* Wps list is misaligned
### What is the expected behavior?
* Align
* Use the same pattern as for bulk delete projects, except with a DangerWarning (no checkbox confirmation): <mention class="mention" data-id="64885" data-type="work_package" data-text="##64885">##64885</mention>
* DangerWarning Dialog:
* Title: "Permanently delete these work packages?"
* Text: "Are you sure you want to delete the following work packages?"
* Body: List of work packages in an [insetBox](https://qa.openproject-edge.com/lookbook/pages/components/inset_box); use [Work Package Info Line](https://qa.openproject-edge.com/lookbook/pages/components/work_package_info_line) for listing work packages, but without the status
* Buttons:
* Cancel
* Delete permanently (danger)
**Current:**
<img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/713629/content">
<br>
<img class="image_resized op-uc-image op-uc-image_inline" style="width:667px;" src="/api/v3/attachments/781427/content">