From b742c3bf785d41507a2185c8455188a6a236bd73 Mon Sep 17 00:00:00 2001 From: Ben Date: Mon, 22 Jan 2024 23:48:37 -0600 Subject: [PATCH] Linked workers for participant show page have been bootstrapped! --- app/views/participants/show.html.erb | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) 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 %>