The progressive report is used for displaying candidates votes per administrative area. Administrative areas are Regions, Constituencies and Sub Constituencies.
Proposed changes
[ ] Create filter drop-downs for filtering the report per the Administrative area's selected. The Administrative areas list will be based on the one's that have result forms in archived state. The filters will in the following exact order:
Regions.
Constituencies.
Sub Constituencies.
[ ] Selecting region's should update the Constituencies and Sub Constituencies list with the one's in the region's selected.
[ ] The progressive report will consist of the following columns:
Administrative area
Number of candidates
Number of votes
Action
[ ] The Administrative area column value's should be the last Administrative Area selected so that we can display the progressive report per Administrative Area i.e.
On initial page load, no filter would have been selected so the report will be showing progressive report per region(s).
If a region(s) is selected, the report will still show progressive report per the selected regions.
If a constituenciey(s) is selected, the report will still show progressive report per the selected constituenciey(s).
If a sub constituenciey(s) is selected, the report will still show progressive report per the selected sub constituenciey(s).
[ ] The Action column will have a button that reads Votes per candidate which when clicked should redirect to a screen that shows candidates with at least one vote and their respective votes. This screen will consist of the following columns:
Candidates name
Votes
NB: For sub consitutuency candidates votes list it should be order by ballot order (candidate order field).
Task check list
[ ] Create filter drop-downs for filtering the report per the Administrative area's. The filters will the following in the exact order:
Regions.
Constituencies.
Sub Constituencies.
The following Django queries should help with logic:
Sub constituencies progressive report (candidate's votes report based on the selected region name, constituency name and sub constituency code. Ordered by ballot order)
Context
The progressive report is used for displaying candidates votes per administrative area. Administrative areas are Regions, Constituencies and Sub Constituencies.
Proposed changes
Administrative area
column value's should be the last Administrative Area selected so that we can display the progressive report per Administrative Area i.e.Action
column will have a button that readsVotes per candidate
which when clicked should redirect to a screen that shows candidates with at least one vote and their respective votes. This screen will consist of the following columns:Task check list
[ ] Create filter drop-downs for filtering the report per the Administrative area's. The filters will the following in the exact order:
The following Django queries should help with logic:
[ ] Create a progressive report per Administrative area(s) selected. The following Django queries will help with this logic:
Regions progressive report:
Regions progressive report (candidate's votes report based on the selected region name)
Constituencies progressive report:
Constituencies progressive report (candidate's votes report based on the selected region name and constituency name)
Sub constituencies progressive report:
Sub constituencies progressive report (candidate's votes report based on the selected region name, constituency name and sub constituency code. Ordered by ballot order)
[ ] Update the
ProgressiveReportDataView
viewfilter_queryset
method with the above logic