2024-01-19 18:25:59 -06:00
|
|
|
<div class="container mt-5">
|
|
|
|
<div class="row justify-content-center">
|
|
|
|
<div class="col-md-6">
|
|
|
|
<h1 class="mb-4 text-center">Edit Worker</h1>
|
2024-01-17 01:21:20 -06:00
|
|
|
|
2024-01-19 18:25:59 -06:00
|
|
|
<%= render 'form', worker: @worker %>
|
2024-01-17 01:21:20 -06:00
|
|
|
|
2024-01-19 18:25:59 -06:00
|
|
|
<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" %>
|
2024-01-22 15:26:29 -06:00
|
|
|
<%= link_to 'Delete', @worker, method: :delete, data: { confirm: 'Are you sure?' }, class: "btn btn-danger" %>
|
2024-01-19 18:25:59 -06:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|