forked from fixin.me/fixin.me
Manage client-side js with turbo_stream actions
This commit is contained in:
@@ -17,9 +17,9 @@
|
||||
</td>
|
||||
|
||||
<td class="actions">
|
||||
<%= form.submit form: :unit_form, onclick: 'focusAddLink(event)' %>
|
||||
<%= form.submit form: :unit_form %>
|
||||
<%= image_link_to t(:cancel), "close-circle-outline", units_path, class: 'dangerous',
|
||||
onclick: 'closeForm(event); return false;' %>
|
||||
onclick: turbo_stream_handler('form_close'), name: :cancel %>
|
||||
</td>
|
||||
</tr>
|
||||
<!-- TODO: display error_messages_for unit -->
|
||||
|
||||
Reference in New Issue
Block a user