1
0
postdoc/app/components/modal_component/modal_component.html.erb
2020-12-06 21:05:11 +01:00

19 lines
494 B
Plaintext

<div class="modal"
data-controller="modal"
data-modal-target="modal"
data-action="click->modal#closeClickedOutside mousedown->modal#trackMouseDown mouseup->modal#trackMouseUp ajax:error->modal#error" >
<div class="modal__popup">
<% if has_title? %>
<div class="modal__header">
<%= title %>
</div>
<% end %>
<div class="modal__body">
<%= body %>
</div>
<div class="modal__footer">
<%= footer %>
</div>
</div>
</div>