<% if current_user.at_least(:active) %> <%= image_link_to t('.new_unit'), 'plus-outline', new_unit_path, id: dom_id(Unit, :new, :link), onclick: 'this.blur();', data: {turbo_stream: true} %> <% end %> <%= image_link_to t('.import_units'), 'download-outline', default_units_path, class: 'tools-area' %>
<%# TODO: remove? form can be inserted directly, e.g. at the end of index %> <%= tag.div id: :unit_form %> <% if current_user.at_least(:active) %> <% end %> <%= tag.tr id: "unit_", hidden: true, data: {controller: 'drag', action: 'dragover->drag#over drop->drag#drop dragenter->drag#enter dragleave->drag#leave', drag_drop_id_value: 'unit_', drag_drop_id_param_value: 'unit[base_id]'} do %> <% end %> <%= render(@units) || render_no_items %>
<%= Unit.human_attribute_name(:symbol) %> <%= Unit.human_attribute_name(:description) %> <%= Unit.human_attribute_name(:multiplier) %><%= t :actions %>
<%= t '.top_level_drop' %>