SORMAS (Surveillance, Outbreak Response Management and Analysis System) is an early warning and management system to fight the spread of infectious diseases.
Besides the Delete, Discard, Save buttons the following buttons should also appear:
1) ARCHIVE -> if the user has CAMPAIGN_FORM_DATA_ARCHIVE right and the campaign form is not already archived
2) DEARCHIVE -> if the user has CAMPAIGN_FORM_DATA_ARCHIVE and CAMPAIGN_FORM_DATA_VIEW_ARCHIVED (based on the requirements from https://github.com/SORMAS-Foundation/SORMAS-Project/issues/13034) and the campaign form is already archived.
Proposed Change
Implement the missing features from Problem Description in order to be consistent with other entities from application.
Added Value/Benefit
Consistency and new features for Campaign Forms.
Acceptance Criteria
[ ] Working relevanceStatusFilter on Campaign Data with Active/Archived/Deleted/All items
[ ] Added Archive/Dearchive button in Data Form (based on the conditions from Problem description)
[ ] An archived campaign form should not be accessible by URL without CAMPAIGN_FORM_DATA_VIEW_ARCHIVED right
Problem Description
Campaign Data should have a relevanceStatus filter with ACTIVE, ARCHIVED, DELETED, ALL items.
The archive/dearchive of the campaign forms should be independent of the EDIT right ( based on https://github.com/SORMAS-Foundation/SORMAS-Project/issues/11830).
Besides the Delete, Discard, Save buttons the following buttons should also appear: 1) ARCHIVE -> if the user has CAMPAIGN_FORM_DATA_ARCHIVE right and the campaign form is not already archived 2) DEARCHIVE -> if the user has CAMPAIGN_FORM_DATA_ARCHIVE and CAMPAIGN_FORM_DATA_VIEW_ARCHIVED (based on the requirements from https://github.com/SORMAS-Foundation/SORMAS-Project/issues/13034) and the campaign form is already archived.
Proposed Change
Implement the missing features from Problem Description in order to be consistent with other entities from application.
Added Value/Benefit
Consistency and new features for Campaign Forms.
Acceptance Criteria
Implementation Details
No response
Mockups
No response
Additional Information
No response