{% macro digitalmarketplaceComplianceCommunicationAttachments(params) %} {%- from "govuk_frontend_jinja/components/button/macro.html" import govukButton -%} {%- from "govuk_frontend_jinja/components/fieldset/macro.html" import govukFieldset -%} {%- from "digitalmarketplace_frontend_jinja/components/compliance-communication-attachment-row/macro.html" import digitalmarketplaceComplianceCommunicationAttachmentRow -%} {% set number_of_attachments = params.form.attachments | length %} {% call govukFieldset({ "legend": { "text": "Add an attachment", "classes": "govuk-fieldset__legend--m" }, "attributes": { "data-module": "dm-compliance-communication-attachments", "data-max-number-of-attachments": number_of_attachments } }) %}
{{ govukButton({ "html": 'Add attachment ( remaining)', "classes": "govuk-button--secondary dm-compliance-communication__attachments-add govuk-visually-hidden", "type": "button", "attributes": { "tabindex": "-1" } }) }} {% endcall %} {% endmacro %}