{#
/**
 * @file
 * Block template from where to load the modals.
 *
 * See AltcomAjax::altcomAjaxAttrsString() for explanantion of vars.
 *
 * Available variables:
 * - element - The raw element containing data.
 *    - path - Current path where the block is displayed.
 */
#}
{{ attach_library('ui_patterns/libraries.bs_modal') }}
{{ attach_library('ui_patterns/libraries.bs_buttons') }}
{{ attach_library('ui_patterns/tm_modal.tm_modal_lib') }}

{{ attach_library('ui_patterns/modal_popups_block.modal_popups_block_lib') }}

{% set ajax_attrs = altcom_ajax_attrs_string(
  'modal_popups_modals',
  'modals-popups-loading',
  {'path': element.path},
  1, 1, 1)
%}

<div id="modals-popups-loading"
     data-aa-bs-toggle="modal"
     data-aa-bs-target="#modal-popup"
    {{ ajax_attrs|raw }}
  >
</div>
