Linked workers for participant show page have been bootstrapped!
This commit is contained in:
parent
d817ae6992
commit
b742c3bf78
|
@ -81,22 +81,24 @@
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
<%= form_with(model: [@participant, @employment], url: link_worker_participant_path(@participant), method: :post) do |form| %>
|
<%= form_with(model: [@participant, @employment], url: link_worker_participant_path(@participant), method: :post, class: 'row g-3') do |form| %>
|
||||||
<div class="field">
|
<div class="col-md-6">
|
||||||
<%= form.label :worker_id, "Select Worker" %>
|
<%= form.label :worker_id, "Select Worker", class: 'form-label' %>
|
||||||
<%= form.collection_select :worker_id, Worker.all, :id, :name, include_blank: true %>
|
<%= form.collection_select :worker_id, Worker.all, :id, :name, { include_blank: true }, { class: 'form-select' } %>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="field">
|
<div class="col-md-3">
|
||||||
<%= form.label :start_date %>
|
<%= form.label :start_date, class: 'form-label' %>
|
||||||
<%= form.date_field :start_date %>
|
<%= form.date_field :start_date, class: 'form-control' %>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="field">
|
<div class="col-md-3">
|
||||||
<%= form.label :end_date %>
|
<%= form.label :end_date, class: 'form-label' %>
|
||||||
<%= form.date_field :end_date %>
|
<%= form.date_field :end_date, class: 'form-control' %>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<%= form.submit "Link Worker" %>
|
<div class="col-12">
|
||||||
|
<%= form.submit "Link Worker", class: 'btn btn-dark' %>
|
||||||
|
</div>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue