Add destroy budget button to admin budget edit view

This commit is contained in:
Bertocq
2018-01-08 17:48:46 +01:00
parent 51e3d75c62
commit dd3a0add2a

View File

@@ -1,5 +1,7 @@
<%= back_link_to admin_budgets_path %> <%= back_link_to admin_budgets_path %>
<%= button_to t("admin.budgets.edit.delete"), admin_budget_path(@budget), method: :delete, class: "button hollow alert float-right small" %>
<h2><%= t("admin.budgets.edit.title") %></h2> <h2><%= t("admin.budgets.edit.title") %></h2>
<%= render '/admin/budgets/form' %> <%= render '/admin/budgets/form' %>