The primary goal of the Progress Report feature is to produce a tabular report that presents a comparison between the number of processed forms and the total expected forms, categorized by sub-race type within distinct administrative areas. This report is has been generated for the following levels: Regions, Offices, Constituencies and Sub-Constituencies. In this particular issue, the focus is on generating a Progress Report for Centers.
Implementation
[ ] Create a in the CentersReportView in the progress_by_sub_races_reports.py file similar to this RegionsReportView but addressing Centers data instead
[ ] Add html_table_centers_columns and html_table_centers_columns lists in the progress_report in the progress_by_sub_races_reports.py file and update them with the relevant data through the function.
[ ] Add centers_progress_report_url in the context variable of the above function.
[ ] Add the above url in the urls.py file, that utilizes the CentersReportView
[ ] Create the tab by adding a <li> tag in the home.html file
[ ] Update the progress_report_by_admin_area.html to render the centers data correctly
Acceptance Criteria
[ ] The progress report table is generated accurately based on the selected administrative area tab.
[ ] The progress report table includes the specified columns.
[ ] The progress report can be exported and printed as a CSV.
[ ] There is a totals row with an aggregate of the columns data
The primary goal of the Progress Report feature is to produce a tabular report that presents a comparison between the number of processed forms and the total expected forms, categorized by sub-race type within distinct administrative areas. This report is has been generated for the following levels: Regions, Offices, Constituencies and Sub-Constituencies. In this particular issue, the focus is on generating a Progress Report for Centers.
Implementation
CentersReportView
in theprogress_by_sub_races_reports.py
file similar to this RegionsReportView but addressing Centers data insteadhtml_table_centers_columns
andhtml_table_centers_columns
lists in theprogress_report
in theprogress_by_sub_races_reports.py
file and update them with the relevant data through the function.centers_progress_report_url
in the context variable of the above function.urls.py
file, that utilizes theCentersReportView
<li>
tag in thehome.html
fileprogress_report_by_admin_area.html
to render the centers data correctlyAcceptance Criteria