diff --git a/app/views/insured/consumer_roles/_form.html.erb b/app/views/insured/consumer_roles/_form.html.erb index 77c35aa274c..2d74e5fc732 100644 --- a/app/views/insured/consumer_roles/_form.html.erb +++ b/app/views/insured/consumer_roles/_form.html.erb @@ -23,7 +23,6 @@

<%= l10n("insured.consumer_roles.contact_info_for") %> <%= @person.full_name %>

-

<%= l10n("insured.consumer_roles.home_address") %>

<%= render partial: 'shared/consumer_home_address_fields', locals: {f: f, bs4: true} %>
diff --git a/app/views/insured/families/_family_member_row.html.erb b/app/views/insured/families/_family_member_row.html.erb index 883af85e890..9f18abc0607 100644 --- a/app/views/insured/families/_family_member_row.html.erb +++ b/app/views/insured/families/_family_member_row.html.erb @@ -1,26 +1,26 @@ - <% person_id = member.person.id %> - - <%= member.full_name.titleize %> - <%= member.person.hbx_id %> - <%= member.age_on(TimeKeeper.date_of_record) %> - <%= member.gender.humanize %> - <%= member.relationship.try(:humanize) %> - - <% edit_url = member.is_primary_applicant ? personal_insured_families_path({bs4: @bs4}) : main_app.edit_insured_family_member_path({id: member.id, bs4: @bs4}) %> - - <%= h(link_to l10n("edit_member"), edit_url, remote: true, class: 'edit-member btn button outline close-2') %> - +<% person_id = member.person.id %> + + <%= member.full_name.titleize %> + <%= member.person.hbx_id %> + <%= member.age_on(TimeKeeper.date_of_record) %> + <%= member.gender.humanize %> + <%= member.relationship.try(:humanize) %> + + <% edit_url = member.is_primary_applicant ? personal_insured_families_path({bs4: @bs4}) : main_app.edit_insured_family_member_path({id: member.id, bs4: @bs4}) %> + + <%= h(link_to l10n("edit_member"), edit_url, remote: true, class: 'edit-member btn button outline close-2') %> + - - + + + diff --git a/app/views/insured/family_members/_dependent_form.html.erb b/app/views/insured/family_members/_dependent_form.html.erb index 535747e2c7b..b7072ebbdc6 100644 --- a/app/views/insured/family_members/_dependent_form.html.erb +++ b/app/views/insured/family_members/_dependent_form.html.erb @@ -119,12 +119,6 @@ -
-
-

<%= l10n("insured.consumer_roles.home_address")%>

- <%= l10n('insured.dependent_home_address_info') %> -
-
<% if has_active_consumer_dependent?(@person, @dependent) %> <%= render 'shared/address_fields_for_dependent', f: f, show_no_dc_address: true %> diff --git a/app/views/people/landing_pages/_personal.html.erb b/app/views/people/landing_pages/_personal.html.erb index 94a53738910..e3e25a7b5f3 100644 --- a/app/views/people/landing_pages/_personal.html.erb +++ b/app/views/people/landing_pages/_personal.html.erb @@ -66,13 +66,13 @@ <% if current_user.does_not_have_any_staff_role? && !current_user.has_insured_role? %> <%= render 'shared/age_off_excluded', f: f %> <% end %> - +
<% if @person.is_consumer_role_active? %>
<%= render 'shared/consumer_fields', f: f %>
- <%= render partial: 'shared/consumer_home_address_fields', locals: {f: f, bs4: true} %> + <%= render partial: 'shared/consumer_home_address_fields', locals: {f: f} %> <% else %> <%= render 'shared/home_address_fields', f: f %> <% end %> @@ -81,11 +81,11 @@

<%= l10n("insured.consumer_roles.phone_and_email") %>

<%= l10n("insured.consumer_roles.please_provide") %>

- <%= render partial: 'shared/phone_fields', locals: {f: f, bs4: true} %> + <%= render partial: 'shared/phone_fields', locals: {f: f} %>
diff --git a/app/views/shared/_address_fields_for_dependent.html.erb b/app/views/shared/_address_fields_for_dependent.html.erb index 377ed782ba5..f201c95f216 100644 --- a/app/views/shared/_address_fields_for_dependent.html.erb +++ b/app/views/shared/_address_fields_for_dependent.html.erb @@ -15,8 +15,18 @@ <% display_class="d-none" %> <% end %> <% end %> - <% required = kind =='home' ? "address_required" : '' %> +
+ <% if kind == 'home' %> +

<%= l10n("insured.consumer_roles.home_address") %>

+ <%= l10n("insured.primary_home_address_info") %> + <% elsif kind == 'mailing' %> +

<%= l10n("insured.mailing_address") %>

+ <%=l10n("insured.primary_mailing_address_info")%> + <% end %> +
+ + <% required = kind =='home' ? "address_required" : '' %>
<%# mailing-div inputs should default to unrequired because the mailing-div is hidden by default; required attrs on the fields are added in application.js on show %>
diff --git a/app/views/shared/_consumer_home_address_fields.html.erb b/app/views/shared/_consumer_home_address_fields.html.erb index 1952de6aa57..9a12a09f37f 100644 --- a/app/views/shared/_consumer_home_address_fields.html.erb +++ b/app/views/shared/_consumer_home_address_fields.html.erb @@ -16,6 +16,7 @@ <% required = kind =='home' ? "address_required" : '' %>
<% if kind == 'home' %> +

<%= l10n("insured.consumer_roles.home_address") %>

<%= l10n("insured.primary_home_address_info") %> <% elsif kind == 'mailing' %>

<%= l10n("insured.mailing_address") %>

diff --git a/components/financial_assistance/app/views/financial_assistance/applicants/_edit.html.erb b/components/financial_assistance/app/views/financial_assistance/applicants/_edit.html.erb index 3bea81d437e..ad461692415 100644 --- a/components/financial_assistance/app/views/financial_assistance/applicants/_edit.html.erb +++ b/components/financial_assistance/app/views/financial_assistance/applicants/_edit.html.erb @@ -2,7 +2,7 @@ <%= form_for @applicant, url: application_applicant_path(@application, @applicant), method: :patch do |f|%> <%= hidden_field_tag :is_dependent, @applicant.is_dependent? %> <% readonly_status = @applicant.is_primary_applicant? %> - +
@@ -95,7 +95,6 @@
<% else %>
-

<%= l10n("insured.consumer_roles.home_address") %>

<%= render partial: 'shared/consumer_home_address_fields', locals: {f: f, bs4: true} %>