What started out as a simple fix to the missing patient count in the SubmissionListView turned into a new feature to include an audit year selector
This PR places a new select in the navbar alongside the view_preference selector. To implement this it adds:
audit_year_select partial
audit-year url for the htmx POST request on change of the select
store the selected_audit_year in session
a new custom htmx trigger to requery all submissions, patients and visits on update of the session
2 new permissions mixins - one to prevent access to create/update/delete routes if can_complete_questionnaire session is False and another if users are attempting to change, create or delete records in previous audit years
a new test class for the routes (at least the create routes)
Overview
Please describe the purpose of this PR here.
Related Issues
closes #384
Mentions
@reecehill the new select does not quite look as it should. Could you review and make it works more like the view_preference one that you made? This audit_year_select need not have an apply/remove button but would be good if the filter might be visible in the tables like the view_preference one
Patient number now fixed - no patient number show for inactive submissions since the data has been deleted.
The audit_year_select though is not quite right
What started out as a simple fix to the missing patient count in the SubmissionListView turned into a new feature to include an audit year selector
This PR places a new select in the navbar alongside the
view_preference
selector. To implement this it adds:audit_year_select
partialaudit-year
url for the htmxPOST
request on change of the selectselected_audit_year
in sessioncan_complete_questionnaire
session isFalse
and another if users are attempting to change, create or delete records in previous audit yearsOverview
Please describe the purpose of this PR here.
Related Issues
closes #384
Mentions
@reecehill the new select does not quite look as it should. Could you review and make it works more like the
view_preference
one that you made? This audit_year_select need not have an apply/remove button but would be good if the filter might be visible in the tables like theview_preference
one