2024-01-23 00:14:10 -06:00
|
|
|
<h1>Edit Employment</h1>
|
|
|
|
|
|
|
|
<%= form_with(model: @employment, url: employment_path(@employment), method: :patch) do |form| %>
|
|
|
|
<div class="field">
|
|
|
|
<%= form.label :start_date %>
|
|
|
|
<%= form.date_field :start_date %>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="field">
|
|
|
|
<%= form.label :end_date %>
|
|
|
|
<%= form.date_field :end_date %>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<%= form.submit "Update Employment" %>
|
|
|
|
<% end %>
|
|
|
|
|
2024-01-23 19:14:58 -06:00
|
|
|
<%= link_to 'Delete Employment', employment_path(@employment), method: :delete, data: { confirm: 'Are you sure?' }, class: 'btn btn-danger' %>
|
|
|
|
|
|
|
|
<%= link_to 'Back to Participant', participant_path(@employment.participant), class: 'btn btn-secondary' %>
|