18 lines
462 B
Plaintext
18 lines
462 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 'Back to Participant', participant_path(@employment.participant) %>
|