20 lines
1.1 KiB
Twig
20 lines
1.1 KiB
Twig
<div id="htmx-modal"
|
|
class="fixed inset-0 z-50 h-full w-full" {{ stimulus_controller('modal') }} {{ stimulus_action('modal', 'close', 'modal-close@window') }}>
|
|
<div class="absolute inset-0 h-full w-full bg-ink/35 backdrop-blur-[3px]" {{ stimulus_action('modal', 'close', 'click') }}></div>
|
|
<div class="absolute top-1/2 left-1/2 w-full max-w-3xl -translate-x-1/2 -translate-y-1/2 px-4">
|
|
<div class="card relative py-6" role="dialog" aria-modal="true" aria-labelledby="htmx-modal-title">
|
|
<div class="flex items-center justify-between gap-4 px-6 pb-4">
|
|
<h2 id="htmx-modal-title" class="text-xl font-bold text-brand">
|
|
{% block title %}{% endblock %}
|
|
</h2>
|
|
<button type="button" class="btn-tool" {{ stimulus_action('modal', 'close') }}>Schließen</button>
|
|
</div>
|
|
<div class="max-h-[75svh] overflow-y-auto">
|
|
<div class="px-6">
|
|
{% block content %}{% endblock %}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|