Implement UI for ProgramOrderables

Description

The purpose of this ticket is implementing the UI that enables managing program orderables. The UI should apply the strategy presented on the forum.

 

Acceptance Criteria:

  • the Programs tab on Administration > Products > Edit Orderable screen should display a table of added programs

    • the table should contain two columns: Program Name and Actions

    • Actions column should contain:

      • Edit and Delete buttons if a user has ORDERABLES_MANAGE right

      • View if a user has only FACILITY_APPROVED_ORDERABLES_MANAGE right

    • Edit button should open the modal with the following fields:

      • Full Supply

      • Doses per Patient

      • Orderable Display Category

      • Display Order

      • Price per Pack

    • Delete button should remove from the list

  • Add Program button should be displayed above the table and open the modal with all the fields mentioned above and additionally dropdown with all available (not associated) programs

  • This tab requires ORDERABLES _MANAGE right. Users without this right see this screen as read-only.

  • A user with the edit right should be able to save changes by clicking the Save programs button

 

Status

Assignee

Aleksandra Sołtys

Reporter

Klaudia Pałkowska

Labels

Story Points

5

Time tracking

40h

Epic Link

Components

Sprint

None

Fix versions

Priority

Major
Configure