|
|
|
@ -3,14 +3,11 @@ |
|
|
|
<ul class="m-2 flex gap-2"> |
|
|
|
<li> |
|
|
|
<%= button_to 'Show Modal Default',false, class: "btn btn-primary", data: { turbo_show_modal: true } %> |
|
|
|
</li> |
|
|
|
|
|
|
|
<li> |
|
|
|
<%= button_to 'Show Modal Front',false, class: "btn btn-primary", data: { turbo_show_modal: 'front-dialog'} %> |
|
|
|
</li> |
|
|
|
|
|
|
|
<li> |
|
|
|
<form method="dialog"> |
|
|
|
<form method="dialog" class="flex flex-col"> |
|
|
|
<%= content_tag :button, 'Show Modal Remote', class: "btn btn-primary", onclick: "Turbo.config.forms.showModal('remote-dialog')" %> |
|
|
|
<%= content_tag :button, 'Show Modal Remote2', class: "btn btn-primary", onclick: "Turbo.config.forms.showModal(false)" %> |
|
|
|
</form> |
|
|
|
|