Sha256: 880b3c08082d459326134673c710d2b4a36b296702b3da784e3e60654e29f9ca
Contents?: true
Size: 743 Bytes
Versions: 23
Compression:
Stored size: 743 Bytes
Contents
class ModalContentComponent < ViewComponent::Base def initialize(src: nil) @src = src with_content(loading_html) if @src.present? super end def loading_html <<~HTML.html_safe <div class="text-center text-body-secondary fs-3" style="min-height: 15em"> Cargando... </div> HTML end erb_template <<~ERB <div class="modal-body"> <div class="d-flex justify-content-around sticky-top"> <div class="flash position-relative w-100 d-flex justify-content-center"> </div> </div> <%= helpers.turbo_frame_tag :modal_content, **{ src: @src, refresh: :morph }.compact do %> <%= content %> <% end %> </div> ERB end
Version data entries
23 entries across 23 versions & 1 rubygems