27 lines
1.3 KiB
Twig
27 lines
1.3 KiB
Twig
<div id="htmx-modal" class="fixed inset-0 w-full h-full z-50" {{ stimulus_controller('modal') }} {{ stimulus_action('modal', 'close', 'modal-close@window') }}>
|
|
<div class="absolute inset-0 w-full h-full bg-black/80" {{ stimulus_action('modal', 'close', 'click') }}></div>
|
|
<div class="absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 px-4 w-full max-w-2xl">
|
|
<div class="relative bg-white py-8 rounded-md">
|
|
<div class="flex justify-between pb-4 px-8">
|
|
<div class="text-2xl font-bold">
|
|
{% block title %}{% endblock %}
|
|
</div>
|
|
<button type="button"
|
|
class="inline-block"
|
|
{{ stimulus_action('modal', 'close') }}>
|
|
{{ icon('close', 'w-6 h-6')}}
|
|
</button>
|
|
</div>
|
|
<div class="h-96 overflow-y-scroll">
|
|
<div class="px-8">
|
|
{% block content %}{% endblock %}
|
|
</div>
|
|
</div>
|
|
<div class="htmx-indicator absolute top-0 left-0 inset-0 bg-white/90 flex items-center justify-center"
|
|
id="htmx-modal-indicator">
|
|
{% include '_partials/_spinner.html.twig' with { 'class': 'w-8 h-8'} %}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|