Change namespace for defaults controllers

To allow proper path prefix for view partials when using
config.action_view.prefix_partial_path_with_controller_namespace
This commit is contained in:
2024-11-09 21:12:51 +01:00
parent f402e6ba00
commit 537cd18336
11 changed files with 31 additions and 10 deletions

View File

@@ -2,9 +2,8 @@
<% 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', units_defaults_path, class: 'tools',
data: {turbo_stream: true} %>
<% end %>
<%= image_link_to t('.import_units'), 'download-outline', default_units_path, class: 'tools' %>
</div>
<%= tag.div id: :unit_form %>