{% from "govuk/components/details/macro.njk" import govukDetails %}

<ul class="govuk-list">
{% for document in service.meta.documents %}
  <li class="gouk-!-margin-bottom-2">
    {{dmAttachment({
      "link": {
        "classes": "govuk-!-font-size-16",
        "href": document.url,
        "text": document.name
      },
      "contentType": document.extension | upper,
      "headingTag": 'p',
      "thumbnailSize": "small"
    })}}
  </li>
{% endfor %}
</ul>

{% from "govuk/components/details/macro.njk" import govukDetails %}

<ul class="govuk-list">
{% for document in service.meta.documents %}
  <li class="gouk-!-margin-bottom-2">
    {{dmAttachment({
      "link": {
        "classes": "govuk-!-font-size-16",
        "href": document.url,
        "text": document.name
      },
      "contentType": document.extension | upper,
      "headingTag": 'p',
      "thumbnailSize": "small"
    })}}
  </li>
{% endfor %}
</ul>

{% set alternativeFormatHtml %}
  If you use assistive technology (such as a screen reader) and need versions of these documents in a more accessible format,
  email the supplier at <a href="mailto:{{ service.meta.contact.email }}" target="_blank" class="govuk-link">{{ service.meta.contact.email }}</a>.
  Tell them what format you need. It will help if you say what assistive technology you use.
{% endset %}

{{ govukDetails({
  "classes": "govuk-!-font-size-16",
  "summaryText": "Request an accessible format",
  "html": alternativeFormatHtml
}) }}

Add message on how to request alternative formats of service documents
Add message on how to request alternative formats of service documents

We want users to know who to send requests for accessible versions of
service documents to, this commit adds a piece of content with guidance
after all the documents. Users should direct their requests to
suppliers, and suppliers should always have a public contact email
address, so we use that.

We could have had this as part of the alternativeFormatHtml for each
attachment component, but we thought that would have been too
repetitive.

Co-authored-by: Nora Brodian <69edcc1281260d829da69cf6e950bc7c5b0fc10b@digital.cabinet-office.gov.uk>
