Add ability to delete records #2806

This commit is contained in:
Martin Lensment 2015-08-03 12:23:48 +03:00
parent 44b2d383b1
commit 72b322ae1f
4 changed files with 21 additions and 0 deletions

View file

@ -1,5 +1,7 @@
- content_for :actions do
= link_to(t(:back), admin_zonefile_settings_path, class: 'btn btn-default')
= link_to(t(:delete), admin_zonefile_setting_path(@zonefile_setting),
method: :delete, data: { confirm: t(:are_you_sure) }, class: 'btn btn-danger')
= render 'shared/title', name: t(:edit_zone)
= render 'form'