20 lines
634 B
Plaintext
20 lines
634 B
Plaintext
<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 %>
|
|
|
|
<%= 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' %>
|