<% if current_user.at_least(:active) %> <%= image_link_to t('.new_quantity'), 'plus-outline', new_quantity_path, id: dom_id(Quantity, :new, :link), onclick: 'this.blur();', data: {turbo_stream: true} %> <% end %> <%#= image_link_to t('.import_quantities'), 'download-outline', default_quantities_path, class: 'tools' %>
<%= tag.div id: :quantity_form %> <% if current_user.at_least(:active) %> <% end %> <%= tag.tr id: "quantity_", hidden: true, ondragover: "dragOver(event)", ondrop: "drop(event)", ondragenter: "dragEnter(event)", ondragleave: "dragLeave(event)", data: {drop_id: "quantity_", drop_id_param: "quantity[parent_id]"} do %> <% end %> <%= render(@quantities) || render_no_items %>
<%= Quantity.human_attribute_name(:name).capitalize %> <%= Quantity.human_attribute_name(:description).capitalize %><%= t :actions %>
<%= t '.top_level_drop' %>