forked from fixin.me/fixin.me
11 lines
335 B
Plaintext
11 lines
335 B
Plaintext
<%# TODO: make sure turbo_stream layout is used in new/edit %>
|
|
<%= turbo_stream.disable :add_unit %>
|
|
<%= turbo_stream.disable_all 'td.actions .button' %>
|
|
|
|
<%= turbo_stream.replace @unit, partial: 'form' %>
|
|
|
|
<%= turbo_stream.update :unit_form_frame do %>
|
|
<%= form_with model: @unit, html: {id: :unit_form} do %>
|
|
<% end %>
|
|
<% end %>
|