Please enable JavaScript.
Coggle requires JavaScript to display documents.
JAR-1193 - Make adding/editing tactics possible - Coggle Diagram
JAR-1193 - Make adding/editing tactics possible
When clicking the 'plus' icon for a media channel
A modal should be shown for the
user to enter a new tactic, in which
A field should be shown where the tactic name can be entered, this is a required field and a validation message + indication should appear when clicking 'Add' and this field is not filled in :check:
The modal shows two 'columns': Tactic dimensions on the left and fees on the right :check:
You should be able to close the modal by clicking the close button, next to the modal or the cancel button. :check:
You should only see 'Cancel' and 'Add' buttons :check:
There should always be one empty 'fee row' visible. The delete button next to the row should be grayed out when there's only one empty fee row visible :check:
The delete button for the fee should be disabled if the fields are not filled in :check:
A new, empty row should appear, when deleting the last populated 'fee row' :check:
You should be able to remove a fee by clicking the delete button next to it (unless all populated fee rows are deleted) :check:
When adding a tactic, the tactic API is called to store the new tactic:check:
When storing a tactic that already exists, a toast message appears to inform the user about the duplicate name and the modal stays open for the user to update the name :check:
Clicking 'Add' closes the modal, and updates the table with the 'fee row' that was just added :check:
When clicking the 'pencil' icon for an existing tactic
A modal should be shown for the
user to update previosuly entered tactics, in which
All of the functionality of the 'add modal'
should work the same, and additionally
There should be a 'cancel', 'remove' and 'save' button in the modal :check:
The existing tactic name should be prepopulated :check:
The existing tactic name should be prepopulated :check:
The existing 'fee rows' should be populated :check:
Clicking the remove button should remove the fee row, close the dialog, and update the table so that the 'fee row' is removed :check:
A tooltip should be shown when hovering over the fee total of a tactic in the table, to see what the total fee consists of :check: