Sha256: 7c523768a4ced5f932d454b1e9414f9c0f93086b3a27f897139f7d3bc478f8f0
Contents?: true
Size: 1.02 KB
Versions: 3
Compression:
Stored size: 1.02 KB
Contents
<% if render_as_modal? %> <%= turbo_frame_tag coco_modal_frame_id(name), class: "modal-frame" do %> <%= render component_tag( id: id, role: "dialog", aria: {modal: "true"}, data: {turbo_temporary: true}, x: { data: x_data("modal"), bind: "root", cloak: true, "@modal:visit": "modal.visit($event.detail.url)" }, ) do %> <div class="modal-overlay" x-bind="overlay"></div> <div class="modal-container" x-bind="container" x-ref="container"> <div class="modal-content" x-trap.noscroll.inert.noreturn="open"> <%= modal_content %> </div> </div> <% end %> <%= render_flash_messages %> <% end %> <% else %> <div data-role="inline-modal-content"> <% if container_type == :dialog %> <%= render Coco::ModalDialog.new(title: title.to_s, dismissable: false) do %> <%= content %> <% end %> <% else %> <%= coco_panel do %> <%= content %> <% end %> <% end %> </div> <% end %>
Version data entries
3 entries across 3 versions & 1 rubygems