{% if grant %} {% extends "deliver_grant_funding/grant_base.html" %} {% set active_item_identifier = "details" %} {% else %} {% extends "deliver_grant_funding/base.html" %} {% set active_item_identifier = "grants" %} {% endif %} {% from "govuk_frontend_jinja/components/back-link/macro.html" import govukBackLink %} {% set page_title = grant.name %} {% block beforeContent %} {% if not grant.id %} {{ govukBackLink({ "text": "Back", "href": back_link_href }) }} {% endif %} {% endblock beforeContent %} {% block content %}
{% if grant.id %}{{ grant.name }}{% else %}Set up the grant{% endif %}

What is the unique code for this grant?

This should clearly identify the grant and will usually be an initialism of the grant name. The code must be unique for every grant in Deliver grant funding.

{{ form.csrf_token }} {{ form.code(params={ "label": { "isPageHeading": false, "classes": "govuk-visually-hidden" }, "classes": "govuk-!-width-two-thirds", }) }}
{% set submit_label = 'Update grant code' if grant.id else 'Save and continue' %} {{ form.submit(params={"text": submit_label}) }} {% if grant %} Cancel {% endif %}
{% endblock content %}