From d4f8247771ec41e658b031da0d24510cc4c175f3 Mon Sep 17 00:00:00 2001 From: Jon Roberts Date: Sat, 21 Sep 2024 15:19:38 -0400 Subject: [PATCH] form html/css tidy --- .../stylesheets/pages/case_contacts_form.scss | 12 +++++ app/views/case_contacts/form/details.html.erb | 45 +++++++++---------- 2 files changed, 34 insertions(+), 23 deletions(-) diff --git a/app/assets/stylesheets/pages/case_contacts_form.scss b/app/assets/stylesheets/pages/case_contacts_form.scss index 1616481ff4..81b06d2382 100644 --- a/app/assets/stylesheets/pages/case_contacts_form.scss +++ b/app/assets/stylesheets/pages/case_contacts_form.scss @@ -23,6 +23,18 @@ border-bottom-right-radius: 0; } + h2 { + font-size: 28px; + } + + h3 { + font-size: medium; + } + + legend { + font-size: medium; + } + .case-contacts-form { &-buttons { display: flex; diff --git a/app/views/case_contacts/form/details.html.erb b/app/views/case_contacts/form/details.html.erb index 74f16b7a11..6e21a2cee2 100644 --- a/app/views/case_contacts/form/details.html.erb +++ b/app/views/case_contacts/form/details.html.erb @@ -22,15 +22,15 @@ <%= render "/shared/error_messages", resource: @case_contact %> -
+

Details

-
+

-

+
<%= render(Form::MultipleSelectComponent.new( form: form, @@ -44,11 +44,11 @@
-
+

<%= form.label :occurred_at do %> Contact Date* <% end %> -

+
<% min_date = CaseContact::MINIMUM_DATE %> <% current_date = Date.current %> @@ -63,7 +63,7 @@
-
+

Contact Type(s)*

<% @grouped_contact_types.each do |group_name, contact_types| %>
@@ -82,35 +82,34 @@
<%= form.check_box :contact_made, class: "form-check-input" %> -
- <%= form.label :contact_made, "Contact was made", class: "form-check-label align-middle" %> -
+

+ <%= form.label :contact_made, "Contact was made", class: "form-check-label align-middle mt-2" %> +

- -
-
- -
+
+

+ Contact Medium +

<%= form.collection_radio_buttons(:medium_type, contact_mediums, 'value', 'label') do |b| %> -
+
<%= b.radio_button(class: "form-check-input") %> <%= b.label(class: "form-check-label") %>
<% end %> -
+
-
Duration of contact
+

Duration of contact

<%= render(Form::HourMinuteDurationComponent.new(form: form, hour_value: duration_hours(@case_contact), minute_value: duration_minutes(@case_contact))) %>
-
+
-
+ Add Note -
+ <% org_driving_reimbursement = current_organization.show_driving_reimbursement %> <% show_driving_reimbursement = org_driving_reimbursement && show_volunteer_reimbursement(@casa_cases) %> @@ -169,11 +168,11 @@ <% show_additional_expenses = org_additional_expenses && Pundit.policy(current_user, @case_contact).additional_expenses_allowed? %> <% if show_driving_reimbursement %> -
+

Reimbursement

<% if Flipper.enabled?(:reimbursement_warning, current_organization) %>
-
+

Volunteers are reimbursed at the federal mileage rate.
Please note that there is a $35.00 per month cap per volunteer for your mileage. @@ -252,7 +251,7 @@
<% end %>
- + <% end %>