<%= tag.tr id: dom_id(quantity), ondragstart: 'dragStart(event)', ondragend: 'dragEnd(event)', ondragover: 'dragOver(event)', ondrop: 'drop(event)', ondragenter: 'dragEnter(event)', ondragleave: 'dragLeave(event)', data: {drag_path: rebase_quantity_path(quantity), drop_id: dom_id(quantity.parent || quantity)} do %> <%= link_to quantity, edit_quantity_path(quantity), onclick: 'this.blur();', data: {turbo_stream: true} %> <%= quantity.description %> <% if current_user.at_least(:active) %> <%= image_link_to t('.new_subquantity'), 'plus-outline', new_quantity_path(quantity), id: dom_id(quantity, :new, :link), onclick: 'this.blur();', data: {turbo_stream: true} %> <%= image_button_to_if quantity.movable?, t('.destroy'), 'delete-outline', quantity_path(quantity), method: :delete %> <% if quantity.movable? %> ⠿ <% else %> <% end %> <% end %> <% end %>