<div class="modal" id="dynamic-modal-{{ identifier }}" data-bs-backdrop="static" data-bs-keyboard="false" role="dialog" aria-labelledby="dynamic-modal-{{ identifier }}-title" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered {{ meta.modal_size }}" role="document">
<div class="modal-content {% if modal %} border shadow {% endif %}">
<div class="modal-header">
<h5 class="modal-title" id="dynamic-modal-{{ identifier }}-title">
<i class="{{ meta.icon ?? 'mdi mdi-loading mdi-spin' }}"></i>
<span class="modal-title-text">{{ meta.title }}</span>
</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" data-dismiss="modal" aria-label="{{ phrase('Close') }}"></button>
</div>
<div class="modal-body">
{% if meta.description %}
<div class="pb-3 mb-3">
{{ meta.description }}
</div>
{% endif %}
{% for name, params in results.field_data %}
{% if params.type == 'geospatial' %}
{# Include form read component #}
{% include 'core/form_read.twig' with params %}
{% endif %}
{% endfor %}
<div class="row">
{# Find index within column total #}
{% for index in 1..results.column_total %}
<div class="col {{ results.column_size[index] }}">
{# Loop field data for matching column position by index #}
{% for name, params in results.field_data %}
{% if index == params.position and params.type != 'geospatial' %}
{% if results.set_heading[name] %}
<h5> {{ results.set_heading[name] }} </h5>
{% endif %}
{% if results.merged_field[name] %}
<div class="row">
<div class="col {{ results.field_size[name] }}">
{# Include form read component #}
{% include 'core/form_read.twig' with params %}
</div>
{% for merged_field in results.merged_field[name] %}
{% if results.field_data[merged_field] %}
<div class="col {{ results.field_size[merged_field] }}">
{# Include form read component #}
{% include 'core/form_read.twig' with {params: results.field_data[merged_field]} %}
</div>
{% endif %}
{% endfor %}
</div>
{% elseif not params.merged %}
{# Include form read component #}
{% include 'core/form_read.twig' with params %}
{% endif %}
{% endif %}
{% endfor %}
</div>
{% endfor %}
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-light me-1" data-bs-dismiss="modal">
{{ phrase('Close') }}
<em class="text-sm d-none d-lg-inline">(esc)</em>
</button>
</div>
</div>
</div>
</div>
|