{% import 'admin/lib.html' as lib with context %} {% from "govuk_frontend_jinja/components/details/macro.html" import govukDetails %} {% from "common/govuk/tabs/macro.html" import govukTabs %} {% from "common/partials/guidance-help.html" import guidanceHelp %} {# This mirrors `render_form_fields` from admin/lib.html, wrapping the content field in write/preview tabs; it must stay in step with that macro. #} {% call lib.form_tag() %} {% if csrf_token %} {# flask-admin's form does no CSRF validation itself; this input is read by the ajax-markdown-preview component to authenticate its preview POSTs. #} {% endif %} {% for f in form if f.widget.input_type == 'hidden' %} {{ f }} {% endfor %} {% for f in form if f.widget.input_type != 'hidden' %} {% if f.short_name == 'content' %} {% set write_release_note_html %} {{ f(params={"label": {"classes": "govuk-label--m"}, "rows": 15, "attributes": {"data-ajax-markdown-source": "", "data-markdown-toolbar": ""} }) }} {{ govukDetails(params={"summaryText": "Formatting help", "html": guidanceHelp(includeHeadings=false) }) }} {% endset %} {% set preview_release_note_html %}
Below is a preview of how your release note will be shown to users of the service.