SORMAS-Project icon indicating copy to clipboard operation
SORMAS-Project copied to clipboard

Implement missing features for Campaign form in order to be consistent with other entities

Open carina29 opened this issue 10 months ago • 0 comments

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).

image

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.

image

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

Implementation Details

No response

Mockups

No response

Additional Information

No response

carina29 avatar Apr 26 '24 09:04 carina29