Skip to content

Commit

Permalink
bs4 family info edit primary fix (#4223)
Browse files Browse the repository at this point in the history
* Updates to scenarios for Insured consumer flow dc (#3990)

* update admin consumer steps

* update pom libaries

* disable bs4 for individual features

* diable bs4 consumer flow insured folder dc

* update disable bs4 for dc

* update scenarios for dc client

* update scenarios for dc and maine

* update scenarios for dc

* update maine and dc scenarios

* update dc account creation steps

* remove unnecessarry comments #binding.irb

* update wait for eligiblity response feature for maine and dc

* update account creation feature for dc

* update documents_page feature for dc

* update household coverage page feature for dc

* update message pages feature for dc

* update individual_sep_signup feature for dc

* update contast level aa scenarios for maine

* update help_me_sign_up_steps

* update dc insured scenarios

* update other income scenarios for dc

* update individual_sep_signup scenarios for dc

* update individual_with_existing_sep scenarios for dc

* add wait to individual steps for dc

* disable bs4 changes for manage family personal information dc

* update ageoff_sep_employee_adding_dependent scenario for dc

* update household_info_continue_button_steps for dc

* update health_coverage scenario

* update continue button for dc

* udate contrast level aa scenarios and remove comments from feature file

* update comments around bugs introduce with details

* update individual steps for maine

* update job income steps for dc

* update job income POM

* update health coverage pom locators

* fix health coverage eligible question

* print cucumber failures in summary (#3987)

* adding cucumber failures to summary

* trying another way to pipe it

* trying with tee instead of just redirection

* tee didn't work

* print error on screen too

* update accessbility scenarios

* more FAA cleanup

* tax info continue button selector

* tax info scnearios

* missing translations

* waiting for results cucumber

* start on manage seps

* don't use new bootstrap layout

* convert response_id to string

* more welcome screen work

* ridp continue button

* proper log out location

* update individual steps for dc

---------

Co-authored-by: Diana Quisbert <[email protected]>
Co-authored-by: Kristin Merbach <[email protected]>
Co-authored-by: Marco (Polo) Ornelas <[email protected]>
Co-authored-by: Alec Turnbull <[email protected]>

mc

* add html sanitization as needed (#4112)

* add html sanitization as needed

* always check app scan

mc

* use readonly attrs for ssn and dob, add readonly selector following disabled style, fix applicants partial to load primary attrs correctly

* rebase cleanup

---------

Co-authored-by: quisbertdiana <[email protected]>
Co-authored-by: kristinmerbach <[email protected]>
  • Loading branch information
3 people authored and bbodine1 committed Aug 20, 2024
1 parent df86834 commit f4675bc
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion app/javascript/css/forms.scss
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ select,
&:hover {
border-color: var(--grey-120);
}
&:disabled {
&:disabled, &[readonly] {
background: var(--grey-030);
color: var(--input-text-color);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,24 @@
<p><%= l10n('insured.family_members.index.continue_to_get_insurance') %></p>

<div id="primary-person" class="py-3">
<% primary_person = @application.primary_applicant %>
<div class="d-flex flex-row">
<h2><%= l10n('member') %> 1</h2>
<%= render '/financial_assistance/shared/info_needed', applicant: @application.primary_applicant %>
<%= render '/financial_assistance/shared/info_needed', applicant: primary_person %>
</div>

<div id="member-<%= @application.primary_applicant.id %>-info-display" class="d-flex flex-row flex-wrap justify-content-between">
<div id="member-<%= primary_person.id %>-info-display" class="d-flex flex-row flex-wrap justify-content-between">
<div>
<label for="primary-name"><%= l10n("name")%></label>
<input id="primary-name" type="text" value="<%= "#{@person.first_name} #{@person.middle_name} #{@person.last_name}" %>" disabled >
<input id="primary-name" type="text" value="<%= "#{primary_person.first_name} #{primary_person.middle_name} #{primary_person.last_name}" %>" disabled >
</div>
<div>
<label for="primary-age"><%= l10n("age")%></label>
<input id="primary-age" type="text" value="<%= @person.age_on(TimeKeeper.date_of_record) %>" disabled >
<input id="primary-age" type="text" value="<%= primary_person.age_on(TimeKeeper.date_of_record) %>" disabled >
</div>
<div>
<label for="primary-gender"><%= l10n("gender")%></label>
<input id="primary-gender" type="text" value="<%= "#{@person.gender&.humanize}" %>" disabled >
<input id="primary-gender" type="text" value="<%= "#{primary_person.gender&.humanize}" %>" disabled >
</div>
<div>
<label for="primary-relation"><%= l10n("relationship")%></label>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@
<div class="d-flex mb-md-4">
<div class="col-md-6 col-lg-3 p-0">
<%= f.label :dob, l10n("date_of_birth"), class: "required" %>
<%= f.date_field :dob, placeholder: "MM/DD/YYYY", min: 110.years.ago, max:"9999-12-31", required: true, disabled: @applicant.is_primary_applicant? %>
<%= f.date_field :dob, placeholder: "MM/DD/YYYY", min: 110.years.ago, max:"9999-12-31", required: true, readonly: @applicant.is_primary_applicant? %>
</div>
<div class="col-md-6 col-lg-3 p-0">
<%= f.label :gender, l10n("gender"), class: 'required' %>
<%= f.label :gender, l10n("gender"), class: 'required' %>
<%= f.select :gender, [ [l10n("Male"), 'male'], [l10n("Female"), 'female'] ], {prompt: l10n("select_option")}, autocomplete: :off, required: true %>
<a href="#sex_gender" data-toggle="modal" data-target="#sex_gender" class="d-block"><%= l10n("not_sure") %></a>
<%= render partial: 'shared/modal_support_text_household', locals: {key: "sex_gender"} %>
Expand All @@ -44,10 +44,9 @@
<% if EnrollRegistry.feature_enabled?(:ssn_ui_validation) %>
<%= f.text_field :ssn, placeholder: "000-00-0000", class: "required keep-label mask-ssn",
pattern: "(?!666|000|9\\d{2})\\d{3}[\\- ]{0,1}(?!00)\\d{2}[\\- ]{0,1}(?!0{4})\\d{4}", oninvalid: "this.setCustomValidity('Invalid Social Security number.')",
oninput: "this.setCustomValidity('')", disabled: @applicant.is_primary_applicant? %>
oninput: "this.setCustomValidity('')", readonly: @applicant.is_primary_applicant? %>
<% else %>
<%= f.text_field :ssn, placeholder: "000-00-0000", class: "required mask-ssn", disabled: @applicant.is_primary_applicant?,
readonly: f.object.is_a?(Forms::EmployeeRole) %>
<%= f.text_field :ssn, placeholder: "000-00-0000", class: "required mask-ssn", readonly: @applicant.is_primary_applicant? || f.object.is_a?(Forms::EmployeeRole) %>
<% end %>
</div>
<div class="col-md-6 col-lg-3 p-0 pt-md-4 no-ssn-container mr-auto">
Expand Down

0 comments on commit f4675bc

Please sign in to comment.