New Feature: Farmer Report Page
Closed this issue · 0 comments
The link for this page should be in the Site Information accordion on the sidebar, and should be titled "Farmer Report"
Duplicate the year/affiliation filtering and card view (no need to color the cards) from Water sensors:
In between the year/affil filtering and the cards, add a big text box: "The buttons below will generate reports for your growers. A Word document will be downloaded to your computer; this will take about 15 seconds to complete. Make sure to review the file and edit it as appropriate for your grower. You may wish to rename or remove sections, or add photos from the site."
On clicking the card, call the endpoint from the python api: /report/{sitecode}
and then download the file to the user's computer. Make sure a spinner comes up somewhere (overlaid on the screen? inside the card? use your judgement) to show that the request has been sent and that you're waiting for the response.