diff --git a/app/views/vendors/edit.html.erb b/app/views/vendors/edit.html.erb index 92ab41a..7b14f40 100644 --- a/app/views/vendors/edit.html.erb +++ b/app/views/vendors/edit.html.erb @@ -8,6 +8,7 @@
<%= link_to 'Cancel', vendor_path(@vendor), class: "btn btn-warning" %> <%= link_to 'Back to List', vendors_path, class: "btn btn-secondary" %> + <%= link_to 'Delete', @vendor, method: :delete, data: { confirm: 'Are you sure?' }, class: "btn btn-danger" %>
diff --git a/app/views/workers/edit.html.erb b/app/views/workers/edit.html.erb index 6df7e5a..1397f1a 100644 --- a/app/views/workers/edit.html.erb +++ b/app/views/workers/edit.html.erb @@ -8,6 +8,7 @@
<%= link_to 'Cancel', worker_path(@worker), class: "btn btn-warning" %> <%= link_to 'Back to List', workers_path, class: "btn btn-secondary" %> + <%= link_to 'Delete', @worker, method: :delete, data: { confirm: 'Are you sure?' }, class: "btn btn-danger" %>