|
|
|
@ -2,17 +2,23 @@ |
|
|
|
|
|
|
|
<ul class="m-2 flex gap-2"> |
|
|
|
<li> |
|
|
|
<%= button_to 'Show Modal',false, class: "btn btn-primary", data: { turbo_show_modal: 'remote-dialog'} %> |
|
|
|
<%= 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"> |
|
|
|
<%= content_tag :button, 'Show Modal2', class: "btn btn-primary", onclick: "Turbo.config.forms.showModal('remote-dialog')" %> |
|
|
|
<%= 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> |
|
|
|
</li> |
|
|
|
|
|
|
|
<li> |
|
|
|
<%= button_to 'Delete', @meeting, method: :delete, class: "btn btn-error", data: { turbo_confirm: 'cette action est irréversible, merci de confirmer'} %> |
|
|
|
<%= button_to 'Delete1', @meeting, method: :delete, class: "btn btn-error", data: { turbo_confirm: 'cette action est irréversible, merci de confirmer'} %> |
|
|
|
<%= button_to 'Delete2', @meeting, method: :delete, class: "btn btn-error", data: { turbo_confirm: false} %> |
|
|
|
</li> |
|
|
|
</ul> |
|
|
|
|
|
|
|
|