Do not allow to permanently remove a price

#522
This commit is contained in:
Artur Beljajev 2017-05-23 17:31:32 +03:00
parent 18be71b519
commit 7d94273a5e
6 changed files with 3 additions and 64 deletions

View file

@ -3,17 +3,8 @@
</ol>
<div class="page-header">
<div class="row">
<div class="col-sm-10">
<h1><%= t '.title' %></h1>
</div>
<div class="col-sm-2 text-right">
<%= link_to(t('.delete_btn'), admin_price_path(@price),
method: :delete,
data: { confirm: t('.delete_btn_confirm') },
class: 'btn btn-danger') %>
</div>
<div class="col-sm-10">
<h1><%= t '.title' %></h1>
</div>
</div>