Add 'Delete' button to Valuators index/search views
This commit is contained in:
@@ -29,7 +29,12 @@
|
||||
<%= t("admin.valuators.index.no_description") %>
|
||||
<% end %>
|
||||
<td>
|
||||
<% unless user.valuator? %>
|
||||
<% if user.valuator? %>
|
||||
<%= link_to t("admin.valuators.valuator.delete"),
|
||||
admin_valuator_path(user),
|
||||
method: :delete,
|
||||
class: "button hollow alert expanded" %>
|
||||
<% else %>
|
||||
<%= form_for Valuator.new(user: user), url: admin_valuators_path do |f| %>
|
||||
<%= f.text_field :description,
|
||||
label: false,
|
||||
|
||||
Reference in New Issue
Block a user