Add Quantity #new, #create, #destroy actions

This commit is contained in:
2025-01-11 17:01:34 +01:00
parent 1e7ef75e8b
commit 57f10c94a4
10 changed files with 166 additions and 17 deletions

View File

@@ -0,0 +1,7 @@
<%= turbo_stream.close_form dom_id(@quantity.parent || Quantity, :new) %>
<%= turbo_stream.remove :no_items %>
<% @ancestors.map do |ancestor| %>
<%= turbo_stream.replace ancestor %>
<% end %>
<%= @before.nil? ? turbo_stream.append(:quantities, @quantity) :
turbo_stream.before(@before, @quantity) %>