Together with @Klaudia_Palkowska, we are currently working on creating a mockup for Facility Type Approved Product (FTAP) viewing and editing (link) and for Orderable (link). We have found an existing ticket to Edit/Manage Facility Type Approved Products (link) which already contains prepared mockup:
The mockup assumes that there is an ‘Orderable’ section in the ‘Administration’ menu. After clicking ‘edit’ user is moved to ‘Orderable’ detail view. In the ‘Facility Types’ tab, we can create/update FTAP by clicking a button for a given Facility Type and Program. If the FTAP is “active” the button reads “Active”. If the FTAP is non-existent or in-active the button reads “Configure”.
The mockup is compatible with the current form of FTAPs (the newly added ‘active’ flag is also visible). The newest version of FTAP should be displayed/edited. Moreover, saving the FTAP configuration should be handled in the following way (slightly different than in the existing ticket):
- If active flag checked -> FTAP is created or updated (if already exists) with active flag set to true
- If active flag unchecked -> set FTAP active flag to false (no deletion committed)
For the program orderables, the workflow would be implemented in a similar way. There would be a separate ‘programs’ tab which would contain the list of all available programs. In each program row, there would be a configure/active button which would navigate to the program-orderable detail view with the related inputs to set. See the mockup below:
We should discuss if a constraint should be added to limit programs available in the ‘Facility Types’ tab to the programs selected in the ‘Programs’ tab. As far as I’m concerned, there are no such constraints on the backend (there was a constraint ftap ←→ programOrderable but it has been removed link).
Do you have any suggestions or do you see any impediments?