diff --git a/app/views/participants/show.html.erb b/app/views/participants/show.html.erb index cf50111..c9a9802 100644 --- a/app/views/participants/show.html.erb +++ b/app/views/participants/show.html.erb @@ -81,22 +81,24 @@ -<%= form_with(model: [@participant, @employment], url: link_worker_participant_path(@participant), method: :post) do |form| %> -
- <%= form.label :worker_id, "Select Worker" %> - <%= form.collection_select :worker_id, Worker.all, :id, :name, include_blank: true %> +<%= form_with(model: [@participant, @employment], url: link_worker_participant_path(@participant), method: :post, class: 'row g-3') do |form| %> +
+ <%= form.label :worker_id, "Select Worker", class: 'form-label' %> + <%= form.collection_select :worker_id, Worker.all, :id, :name, { include_blank: true }, { class: 'form-select' } %>
-
- <%= form.label :start_date %> - <%= form.date_field :start_date %> +
+ <%= form.label :start_date, class: 'form-label' %> + <%= form.date_field :start_date, class: 'form-control' %>
-
- <%= form.label :end_date %> - <%= form.date_field :end_date %> +
+ <%= form.label :end_date, class: 'form-label' %> + <%= form.date_field :end_date, class: 'form-control' %>
- <%= form.submit "Link Worker" %> +
+ <%= form.submit "Link Worker", class: 'btn btn-dark' %> +
<% end %>