forked from fixin.me/fixin.me
@@ -12,7 +12,7 @@
|
||||
<% if current_user.at_least(:admin) %>
|
||||
<% if unit.default? %>
|
||||
<%= image_button_to t('.delete'), 'delete-outline', default_unit_path(unit),
|
||||
method: :delete %>
|
||||
method: :delete, **disabled_attributes(!unit.movable?) %>
|
||||
<% else %>
|
||||
<%= image_button_to t('.export'), 'upload-outline', export_default_unit_path(unit),
|
||||
disabled_attributes(!unit.portable?) %>
|
||||
|
||||
@@ -17,8 +17,8 @@
|
||||
id: dom_id(unit, :new, :link), onclick: 'this.blur();', data: {turbo_stream: true} %>
|
||||
<% end %>
|
||||
|
||||
<%= image_button_to t('.delete_unit'), 'delete-outline', unit_path(unit),
|
||||
method: :delete %>
|
||||
<%= image_button_to t('.destroy'), 'delete-outline', unit_path(unit),
|
||||
method: :delete, **disabled_attributes(!unit.movable?) %>
|
||||
</td>
|
||||
<% if unit.movable? %>
|
||||
<td class="handle" draggable="true">⠿</td>
|
||||
|
||||
Reference in New Issue
Block a user