All edit pages have working delete buttons

This commit is contained in:
Ben 2024-01-22 15:26:29 -06:00
parent f0cf2b0c24
commit edb56c84ef
2 changed files with 2 additions and 0 deletions

View File

@ -8,6 +8,7 @@
<div class="mt-3 d-flex justify-content-between">
<%= 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" %>
</div>
</div>
</div>

View File

@ -8,6 +8,7 @@
<div class="mt-3 d-flex justify-content-between">
<%= 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" %>
</div>
</div>
</div>