{% extends "deliver_grant_funding/grant_base.html" %} {% from "govuk_frontend_jinja/components/back-link/macro.html" import govukBackLink %} {% from "govuk_frontend_jinja/components/error-summary/macro.html" import govukErrorSummary %} {% set type_constants = collection.type.constants %} {% set active_item_identifier = type_constants.active_nav %} {% set page_title = "Upload new data set to " + collection.name %} {% block beforeContent %} {% set back_link = url_for("deliver_grant_funding.list_collection_data_sets", grant_id=grant.id, collection_type=collection.type, collection_id=collection.id) %} {{ govukBackLink({ "text": "Back", "href": back_link }) }} {% endblock beforeContent %} {% block content %}
{% if gr_errors %} {% set error_list = [] %} {% for error in gr_errors %} {% do error_list.append({"text": error, "href": "#file"}) %} {% endfor %} {{ govukErrorSummary({ "titleText": "There is a problem", "errorList": error_list }) }} {% endif %}

{{ collection.name }} Upload new data set

To upload a complete data set, check the grant recipients have been set up first before uploading the file. The grant recipients will be reflected in the data set template (CSV).

If you are missing some grant recipients or data, you can still upload the file and replace it later.

{{ form.csrf_token }} {{ form.name }} {{ form.file(params={"javascript": true, "attributes": {"accept": "text/csv" } }) }}

Only CSV (.csv) files can be uploaded for data sets.

{{ form.submit(params={"text": "Continue and format data" }) }} Cancel
{% endblock content %}