From 9262801cfd011d11acbaf63bf44c9a5e8b575aed Mon Sep 17 00:00:00 2001 From: JP <85654561+jp524@users.noreply.github.com> Date: Mon, 13 May 2024 16:04:59 -0500 Subject: [PATCH 1/3] Update labels for Contact Details section Co-authored-by: Josh Smith --- app/views/case_contacts/form/details.html.erb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/views/case_contacts/form/details.html.erb b/app/views/case_contacts/form/details.html.erb index b2d869c748..c2a168ff7c 100644 --- a/app/views/case_contacts/form/details.html.erb +++ b/app/views/case_contacts/form/details.html.erb @@ -32,9 +32,9 @@
-

*

+

*

-
+
<%= form.radio_button :contact_made, true, checked: @case_contact.contact_made, @@ -54,7 +54,7 @@
-
+
<%= form.collection_radio_buttons(:medium_type, contact_mediums, 'value', 'label') do |b| %>
<%= b.radio_button(class: "form-check-input") %> @@ -64,7 +64,7 @@
-
<%= form.label :occurred_at, "c. Occurred On" %>
+
<%= form.label :occurred_at, "c. Date of contact" %>
<% occurred_at = @case_contact.occurred_at || Time.zone.now %> <%= render "layouts/components/ranged_date_picker", @@ -74,7 +74,7 @@
-
+
<%= render(Form::HourMinuteDurationComponent.new(form: form, hour_value: duration_hours(@case_contact), minute_value: duration_minutes(@case_contact))) %>
From e55a37142093ee8c8a21714642b57c5944102c01 Mon Sep 17 00:00:00 2001 From: JP <85654561+jp524@users.noreply.github.com> Date: Mon, 13 May 2024 16:05:33 -0500 Subject: [PATCH 2/3] WIP update duration input fields Co-authored-by: Josh Smith --- .../form/hour_minute_duration_component.html.erb | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/app/components/form/hour_minute_duration_component.html.erb b/app/components/form/hour_minute_duration_component.html.erb index 6d5fab8f0c..563d7ec11f 100644 --- a/app/components/form/hour_minute_duration_component.html.erb +++ b/app/components/form/hour_minute_duration_component.html.erb @@ -1,19 +1,21 @@ -
-
+
+
<%= @form.label :duration_hours, "Hour(s)" %> <%= @form.number_field :duration_hours, min: 0, - class: "cc-field", + class: "form-control", size: "10", + value: @hour_value, required: true %>
-
+
<%= @form.label :duration_minutes, "Minute(s)" %> <%= @form.number_field :duration_minutes, min: 0, - class: "cc-field", + class: "form-control", size: "10", + style: "background:white", value: @minute_value, required: true %>
From 0cff7d20d682c75d2650924e9e27e8ac69864d08 Mon Sep 17 00:00:00 2001 From: JP <85654561+jp524@users.noreply.github.com> Date: Mon, 13 May 2024 16:05:33 -0500 Subject: [PATCH 3/3] Update duration input fields Co-authored-by: Josh Smith --- .../form/hour_minute_duration_component.html.erb | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/app/components/form/hour_minute_duration_component.html.erb b/app/components/form/hour_minute_duration_component.html.erb index 6d5fab8f0c..7a0ba75ba4 100644 --- a/app/components/form/hour_minute_duration_component.html.erb +++ b/app/components/form/hour_minute_duration_component.html.erb @@ -1,19 +1,21 @@ -
-
+
+
<%= @form.label :duration_hours, "Hour(s)" %> <%= @form.number_field :duration_hours, min: 0, - class: "cc-field", + class: "form-control", size: "10", + style: "background:white", value: @hour_value, required: true %>
-
+
<%= @form.label :duration_minutes, "Minute(s)" %> <%= @form.number_field :duration_minutes, min: 0, - class: "cc-field", + class: "form-control", size: "10", + style: "background:white", value: @minute_value, required: true %>