forked from fixin.me/fixin.me
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:
17
app/views/default/units/index.html.erb
Normal file
17
app/views/default/units/index.html.erb
Normal file
@@ -0,0 +1,17 @@
|
||||
<div class="rightside buttongrid">
|
||||
<%= image_link_to t('.back'), 'arrow-left-bold-outline', units_path %>
|
||||
</div>
|
||||
|
||||
<table class="main items">
|
||||
<thead>
|
||||
<tr>
|
||||
<th><%= User.human_attribute_name(:symbol).capitalize %></th>
|
||||
<% if current_user.at_least(:active) %>
|
||||
<th><%= t :actions %></th>
|
||||
<% end %>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="units">
|
||||
<%= render(@units, partial: 'default') || render_no_items %>
|
||||
</tbody>
|
||||
</table>
|
||||
@@ -1,2 +0,0 @@
|
||||
<h1>Units::Defaults#index</h1>
|
||||
<p>Find me in app/views/units/defaults/index.html.erb</p>
|
||||
@@ -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 %>
|
||||
|
||||
Reference in New Issue
Block a user