usdigitalresponse / cpf-reporter

CPF Reporter application maintained by the USDR Grants program.
Apache License 2.0
0 stars 4 forks source link

[Bug]: Can't edit output templates #488

Open ClaireValdivia opened 1 month ago

ClaireValdivia commented 1 month ago

Why is this issue important?

USDR Admins are unable to edit the output templates, and you can't view the previous file that was added for the output template version. Being able to download the file that was added as well as edit the output template will be helpful for troubleshooting and updating output templates in the case that an incorrect file was added.

Current State

Received this error when trying to update the output template Image

Expected State

"Show" page When a USDR Admin clicks the "Show" button next to the output template version, they should see the following on the details page: each file type should display along with linked text showing the file name next to it. For example: CPF1ABroadbandInfrastructureTemplate: namoffile.csv CPF1BDigitalConnectivityTechTemplate: namoffile.csv CPF1CMultipurposeCommunityTemplate: namoffile.csv

The "nameoffile.csv" should display the name of the file uploaded, and the text should be a link to download the file that was uploaded.

"Edit" page When a USDR Admin clicks the "Edit" button next to an output template version:

Implementation Plan

The following functions need to be added...

Relevant Code Snippets

No response

ClaireValdivia commented 3 weeks ago

Note- another workaround could be adding a prompt after creating a new output template to "Apply to most recent reporting period?"