forked from fixin.me/fixin.me
Allow stream action to expand into multiple actions
e.g. by including 'onclick()' event handler
This commit is contained in:
@@ -19,7 +19,7 @@
|
||||
<td class="actions">
|
||||
<%= form.submit form: :unit_form %>
|
||||
<%= image_link_to t(:cancel), "close-circle-outline", units_path, class: 'dangerous',
|
||||
onclick: turbo_stream_handler('form_close'), name: :cancel %>
|
||||
name: :cancel, onclick: render_turbo_stream('form_close', {id: id}) %>
|
||||
</td>
|
||||
</tr>
|
||||
<!-- TODO: display error_messages_for unit -->
|
||||
|
||||
Reference in New Issue
Block a user