Preliminary support for default Units import

This commit is contained in:
2024-11-09 02:05:04 +01:00
parent be48d6fd7f
commit 846eb6da14
3 changed files with 20 additions and 2 deletions

View File

@@ -2,7 +2,7 @@
<% if current_user.at_least(:active) %>
<%= image_link_to t('.add_unit'), 'plus-outline', new_unit_path, id: :add_unit,
onclick: 'this.blur();', data: {turbo_stream: true} %>
<%= image_link_to t('.import_units'), 'import', new_unit_path, class: 'tools',
<%= image_link_to t('.import_units'), 'import', units_defaults_path, class: 'tools',
data: {turbo_stream: true} %>
<% end %>
</div>