mirror of https://github.com/docusealco/docuseal
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
969 B
20 lines
969 B
<turbo-frame id="modal">
|
|
<% modal_title_id = "modal_title_#{SecureRandom.hex(4)}" %>
|
|
<turbo-modal class="modal modal-open items-start !animate-none overflow-y-auto" data-close-after-submit="<%= local_assigns.key?(:close_after_submit) ? local_assigns[:close_after_submit] : true %>" aria-labelledby="<%= modal_title_id %>">
|
|
<div class="absolute top-0 bottom-0 right-0 left-0" data-action="click:turbo-modal#close"></div>
|
|
<div class="modal-box pt-4 pb-6 px-6 mt-20 max-h-none">
|
|
<% if local_assigns[:title] %>
|
|
<div class="flex justify-between items-center border-b pb-2 mb-2 font-medium">
|
|
<span id="<%= modal_title_id %>">
|
|
<%= local_assigns[:title] %>
|
|
</span>
|
|
<button type="button" class="text-xl" data-action="click:turbo-modal#close" aria-label="<%= t('close') %>">×</button>
|
|
</div>
|
|
<% end %>
|
|
<div>
|
|
<%= yield %>
|
|
</div>
|
|
</div>
|
|
</turbo-modal>
|
|
</turbo-frame>
|