{% set collection = collection|default(false) %}
<div class="js-form-validation modal fade download-modal bd-example-modal-lg js-dl-modal" id="{{ collection ? 'dlModalCollection' : 'dlModal' }}" tabindex="-1" aria-labelledby="dlModal-label" aria-hidden="true">
{{ include('loading/loading-overlay.html.twig', {
className: 'js-loading-modal loading-overlay--cart loading-overlay--white'
}) }}
<div class="modal-dialog modal-lg" role="document">
<div class="modal-content">
<div class="modal-body">
<form class="js-dl-modal__form" action="/404" data-action="#" data-dl-modal-url="{{ collection ? path('user_download_collection') : path('user_download') }}">
<div class="d-flex justify-content-end align-content-center">
<button type="button" class="d-flex flex-row btn-close js-dl-modal__close" data-bs-dismiss="modal" title="{{ 'general.close' | trans }}" aria-label="{{ 'general.close' | trans }}">
<strong class="align-self-center">{{ 'general.close' | trans }}</strong>
<span class="icon icon-close size-icon align-self-center" aria-hidden="true"></span>
</button>
</div>
<hr>
<h5 class="modal-title mt-4" id="dlModal-label">{{ 'download-modal.title'|trans }}</h5>
<div class="wysiwyg">
{{ 'download-modal.content'|trans|raw }}
</div>
{{ include('includes/form/checkbox.html.twig', {
label: 'download-modal.checkbox' | trans,
id: 'dl_check',
name: 'dl_check',
required: 'true',
className: 'js-dl-modal__form-check mt-4'
}, with_context = false) }}
<a class="btn btn-primary mt-4 disabled js-dl-modal__submit">{{ 'download-modal.btn'|trans }}</a>
</form>
</div>
</div>
</div>
</div>