mirror of
https://github.com/we-promise/sure.git
synced 2026-04-24 06:24:04 +00:00
* Patch virtual_path within modal helper Added an example translation within the modal to test. * Fix modal translation scope By changing this to a partial that accepts the content via a local var instead of a layout the virtual path, and therefore translation scope is not changed.
9 lines
331 B
Plaintext
9 lines
331 B
Plaintext
<%# locals: (content:) -%>
|
|
<%= turbo_frame_tag "modal" do %>
|
|
<dialog class="bg-white border border-[#141414]/25 rounded-2xl max-h-[556px] max-w-[580px] w-full shadow-xs" data-controller="modal" data-action="click->modal#click_outside">
|
|
<div class="flex flex-col h-full">
|
|
<%= content %>
|
|
</div>
|
|
</dialog>
|
|
<% end %>
|