fixin.me/app/views/units/edit.turbo_stream.erb
cryptogopher 759a0b31b7 Disable only form-opening link
Close other forms on new form open
2024-02-04 20:11:44 +01:00

8 lines
308 B
Plaintext

<%# TODO: make sure turbo_stream layout is used in new/edit %>
<%= turbo_stream.replace @unit, partial: 'form', locals: {id: dom_id(@unit, :edit)} %>
<%= turbo_stream.update :unit_form_frame do %>
<%= form_with model: @unit, html: {id: :unit_form} do %>
<% end %>
<% end unless @unit.errors.present? %>