forked from fixin.me/fixin.me
Unit#edit action
This commit is contained in:
10
app/views/units/edit.turbo_stream.erb
Normal file
10
app/views/units/edit.turbo_stream.erb
Normal file
@@ -0,0 +1,10 @@
|
||||
<%# 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 %>
|
||||
Reference in New Issue
Block a user