All edit pages have working delete buttons
This commit is contained in:
parent
f0cf2b0c24
commit
edb56c84ef
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue