Skip to content

Commit

Permalink
bs4 home verifications (#4023)
Browse files Browse the repository at this point in the history
* upgrade to bs4 base

mc

mc

* revert temp changes for design review to trunk

mc

mc

* bs4 plan shopping family info & choose cov for HH pages (#3821)

* create account page plus additional translations

* immigration doc partials

* translations for other clients

* don't touch FAA yet

* app scan warnings

* app scan warnings

* app scan issues

* starting to rubocop

* navigation helper rubocop

* fix brakeman, other text changes

* app scan flags

* sanitize links

* fix link

* devise translations

* fix devise translations

* devise translations

* devise translations

* devise translations

* devise translations

* devise translations

* reformat devide translations

* reformat devide translations

* reformat devide translations

* reformat devide translations

* redo devise translations

* id bad bullets

* id bad bullet

* id bad bullet

* id bad bullet text

* previous and continue buttons dryed out

* properly sanitize link

* fix for no ssn info text

* sign in text fix

* header contact number not clickable (#3812)

add missing href attribute to link

* fix personal info step 3 content (#3819)

* fix duplicate for, fix missing asterisk for home address fields with introduction of form builder helper that builds a text field which abstracts out setting required field and asterisk append

* update helper method to allow callers to not specify class param, fix contact_info_for in other translations

* remove unrelated changes

* update race legend subtitle to be inline (#3833)

move parenthetical to inline with legend title

* remove disagree placeholder text (#3831)

remove disagree_placeholder_text div

* fix auth and consent previous button layout (#3825)

* wrap progress button in vertically aligned flex box

* combines prev and continue link partial into one partial, updates consumers of the old partials to use the new one and keep functionality

* remove unneeded div

* remove unneeded argument

* ssn number mask format (#3824)

* add mask for ssn, add mask-ssn class on text field

* update class name to not be repetitive

* use preexisting input mask for ssn

* phone number mask format (#3823)

* add script tag for phone number mask, add phone_number class on text field, update placeholder to match expected format

* replace new mask with a call to inputMasks

* add missing underscore prefix to partial (#3840)

* right align header account links (#3832)

* add ml-auto class to link column

* remove unneeded span

* adds newline for each span

* remove ml-auto class from span and adds align-items-end to both columns

* unbold demo info questions (#3836)

* localize incarcerated and citizen strings, remove asterisk from tribe_member_2 to allow space and non-space cases, add new selector to allow for unbold form labels and legends

* remove asterisk from tribal_name translation

* use weight-n instead of new class for enforcing non-bold titles in form

* add class for immigrant doc labels

* replace header content (#3838)

add new devise entry for bs4 welcome message, update controller to drive the flash message using bs4 flag

* remove repeated header text (#3839)

add translations for user roles, remove fallback on role check in portal helper, use new translation keys in portal helper

* rubocop

* give continue buttons shared selectors

* resolve ticket 187618984 previous button underlined

* ridp agreement text bold

* disabled dob on more info

* session warning pop up

* privacy spacing

* add not sure for is applying coverage

* duplicated *s for aiant question

* load correct ridp partials

* show help shopping button

* progress nav buttons cleanup

* auto build feature branch on new changes

* fix failed validation page

* start fixing rspec failures

* continuing spec work

* continuing spec work

* more spec fixes

* ridp admin actions

* rubocop fixes

* fix warning

* make bs4 layout more conditional for dc

* bs4 flag for layouts already using bs4 layout

* wlecome controller

* rubocop

* fix address and contact row spacing (#3843)

* use margin bottom 2 for first address and contact rows, wrap address hidden fields in span to lose input + label styling

* remove span, update selector to disregard hidden inputs

* fix contact method alert (#3851)

* adds localized string for contact options, update checkbox setup to use unique ids for each option and localize the label, adds missing class on BS4 checkbox span

* adds check for non-person which crashed on null check and stopped further validations in the call

* remove checked call in combined get

* unbold personal info immigration fields (#3852)

add weight-n to other status questions legend and all missing immigration doc labels

* remove extra personal info contact text (#3850)

* fix fonts, more ridp work started

* remove unneeded please provide disclaimer label

* remove weird merge tag

---------

Co-authored-by: Kristin Merbach <[email protected]>

* hide id in pre login (#3849)

update translation to just be id, update account display to only show id substring when present

* fix label for verified state (#3865)

update new verification helper to return the string matching legacy for valid case

* remove personal info step in consumer signup (#3863)

cherry pick old changes

* use warning banner for no match (#3861)

* update content for bs4, use warning banner

* padding updates

* rename translation key

* add text for missing immigrant status labels (#3864)

* adds hardcoded text for missing localized keys

* add translations for content

* move not sure link below radios (#3870)

* use grid for is_applying_for_cov elements

* remove rows and reorganize classes

* add asterisk to address line 1 and zip in personal info (#3820)

* add builder to use for DRYing creation of required text fields with asterisks

* update address 1, address 2, city, and zip fields to use the new text_field builder, update zip field to have asterisk

* localize city

* makes placeholder a required keyword param

* rename to RequirableFormBuilder, update helper to maintain both the field/select element and its label, moves asterisk to label per specs

* fixe merge order so that params override options

* remove formbuilder and hardcode asterisks in markup

* fix trailing whitespace, remove county translation

* restore add 1 class

* use required class for required fields

* add required attr for city

* add disabled class to continue link (#3872)

* add disabled class to link, remove extraneous if in button

* restores disabled if for button case

* fix missing document faq button (#3877)

* 187579400 update flash (#3854)

* add BS4 view to flash partial

* updates flash partial for bs4, updates progress and bs4 layouts to render new flash

* fix underscore on close button

* close icon work

* white space fix

* map legacy alert type to bs4, update flash layout to work well with larger messages, accessibility updates

* add success case, more whitespace cleanup

* update alert-error to use correct border and add error icon

* move container out of layout, update padding on header to match footer

* update padding and margins on flash

* simplify flash in progress layout now that we have flash in its own container

* unrelated fix for failed validations, replace old alert style, add missing legacy style in BS4 flash style map, add new alert style, update flash margin,

* adds @bs4 arguments for render_flash calls and restores horizontal status in bs4 layout

* rename flash type helper method

* update info step 1 banner (#3860)

* adds warning option to DOB error, updates error_messages partial to handle error option and use new UI

* remove left padding for list in alert

* remove unneeded classes

* remove padding style

* updates classes for error banner to match mockups

* move flash into content column for progress layout, remove mt class from flash to allow layouts to drive top margin

* ridp default select agree (#3878)

add selected args for radio buttons

* resolve spacing issues (#3875)

* fix spacing, style the info to match other info boxes

* more spacing

* consolidate spacing classes

* session modal styling (#3874)

* session modal styling

* remove unnecessary span

* consolidate spacing classes

* ridp waiting

* update upload doc verify identity modal (#3886)

* split modal partial for bs4, finish header

* add radios and upload/close buttons

* padding update

* update radio text to be blocked and centered with radio

* more padding and margin fixes

* padding update for info label

* use for to render radios

* add id

* remove unneeded value attr

* remove unneeded classes on button row

* refactor radio value and id

* use element name for legend

* removes for from legend

* remove row

* move btn-file selector to forms

* start moving FAA to use bootstrap 4 (#3855)

* fix fonts, more ridp work started

* start faa

* fix resolve layout

* fix resolve layout

* fix rebase issues

* pr requests and translations

---------

Signed-off-by: kristinmerbach <[email protected]>

* improve ridp status badges (#3884)

* temp

* improve ridp status badges

* improve encapsulation

* rename of vars

* rename vars 2.0

* ridp fixes for previous and log out links (#3879)

* ridp link fixes

* button link hovers shouldn't have underline

* fix add mailing address functionality (#3876)

* fix mailing address js

* remove console log

* add button for existing mailing addresses

* help me sign up flow bs4 conversion started (#3887)

* help me sign up flow started

* translations and search input

* wave issues

* translations

---------

Signed-off-by: kristinmerbach <[email protected]>

* fix fonts, more ridp work started

* choose cov page wip

* plan shopping progress bars updated

* plan shopping nav refactoring

* remove debug line

* choose cov for hh progress, added pg nav buttons for first flow

* family information page progress

* family information conversion, fixed progress nav buttons

* translation fixes

* removed debugging code

* convert to html.erb

* rebase cleanup

* removed duped code  & unnecessary vars, erb convert for ps compare modal

* fix link_to CSS vunerabilities

* baseline post convrsion

* plan shopping progress refactor

* Bootstrap misc bugfixes (#3895)

fixes for 6 bug tickets

* pr feedback, small fixes

* upgrade to bs4 base

* revert temp changes for design review to trunk

* add feature flag and switch consumer role controler layout

* personal information page redo

* feature flags, faa layouts

* bs4 footer

* fix for dynamic footer

* header wip, stable

* header progress

* sticky footer fix

* header logo update, move styling to new file

* add bs4 upgrade icons, collapsed header tweaks

* started family information

* privacy page and personal information, button mixin

* registration process

* more work on consumer flow

* fix semicolon

* client specific files re-organized

* authorization & consent page

* footer updates

* footer phone # fix

* authority & consent ridp page

* progress nav accessibility

* fix fonts, more ridp work started

* added ME colors, revert app controller flag

* ridp flow

* add new progress layout

* create account page plus additional translations

* immigration doc partials

* translations for other clients

* don't touch FAA yet

* app scan warnings

* app scan warnings

* app scan issues

* starting to rubocop

* navigation helper rubocop

* fix brakeman, other text changes

* app scan flags

* sanitize links

* fix link

* devise translations

* fix devise translations

* devise translations

* devise translations

* devise translations

* devise translations

* devise translations

* reformat devide translations

* reformat devide translations

* reformat devide translations

* reformat devide translations

* redo devise translations

* id bad bullets

* id bad bullet

* id bad bullet

* id bad bullet text

* previous and continue buttons dryed out

* properly sanitize link

* fix for no ssn info text

* sign in text fix

* header contact number not clickable (#3812)

add missing href attribute to link

* fix personal info step 3 content (#3819)

* fix duplicate for, fix missing asterisk for home address fields with introduction of form builder helper that builds a text field which abstracts out setting required field and asterisk append

* update helper method to allow callers to not specify class param, fix contact_info_for in other translations

* remove unrelated changes

* update race legend subtitle to be inline (#3833)

move parenthetical to inline with legend title

* remove disagree placeholder text (#3831)

remove disagree_placeholder_text div

* fix auth and consent previous button layout (#3825)

* wrap progress button in vertically aligned flex box

* combines prev and continue link partial into one partial, updates consumers of the old partials to use the new one and keep functionality

* remove unneeded div

* remove unneeded argument

* ssn number mask format (#3824)

* add mask for ssn, add mask-ssn class on text field

* update class name to not be repetitive

* use preexisting input mask for ssn

* phone number mask format (#3823)

* add script tag for phone number mask, add phone_number class on text field, update placeholder to match expected format

* replace new mask with a call to inputMasks

* add missing underscore prefix to partial (#3840)

* right align header account links (#3832)

* add ml-auto class to link column

* remove unneeded span

* adds newline for each span

* remove ml-auto class from span and adds align-items-end to both columns

* unbold demo info questions (#3836)

* localize incarcerated and citizen strings, remove asterisk from tribe_member_2 to allow space and non-space cases, add new selector to allow for unbold form labels and legends

* remove asterisk from tribal_name translation

* use weight-n instead of new class for enforcing non-bold titles in form

* add class for immigrant doc labels

* replace header content (#3838)

add new devise entry for bs4 welcome message, update controller to drive the flash message using bs4 flag

* remove repeated header text (#3839)

add translations for user roles, remove fallback on role check in portal helper, use new translation keys in portal helper

* rubocop

* give continue buttons shared selectors

* resolve ticket 187618984 previous button underlined

* ridp agreement text bold

* disabled dob on more info

* session warning pop up

* privacy spacing

* add not sure for is applying coverage

* duplicated *s for aiant question

* load correct ridp partials

* show help shopping button

* progress nav buttons cleanup

* auto build feature branch on new changes

* fix failed validation page

* start fixing rspec failures

* continuing spec work

* continuing spec work

* more spec fixes

* ridp admin actions

* rubocop fixes

* fix warning

* make bs4 layout more conditional for dc

* bs4 flag for layouts already using bs4 layout

* wlecome controller

* rubocop

* fix address and contact row spacing (#3843)

* use margin bottom 2 for first address and contact rows, wrap address hidden fields in span to lose input + label styling

* remove span, update selector to disregard hidden inputs

* fix contact method alert (#3851)

* adds localized string for contact options, update checkbox setup to use unique ids for each option and localize the label, adds missing class on BS4 checkbox span

* adds check for non-person which crashed on null check and stopped further validations in the call

* remove checked call in combined get

* unbold personal info immigration fields (#3852)

add weight-n to other status questions legend and all missing immigration doc labels

* remove extra personal info contact text (#3850)

* fix fonts, more ridp work started

* remove unneeded please provide disclaimer label

* remove weird merge tag

---------

Co-authored-by: Kristin Merbach <[email protected]>

* hide id in pre login (#3849)

update translation to just be id, update account display to only show id substring when present

* fix label for verified state (#3865)

update new verification helper to return the string matching legacy for valid case

* remove personal info step in consumer signup (#3863)

cherry pick old changes

* use warning banner for no match (#3861)

* update content for bs4, use warning banner

* padding updates

* rename translation key

* add text for missing immigrant status labels (#3864)

* adds hardcoded text for missing localized keys

* add translations for content

* move not sure link below radios (#3870)

* use grid for is_applying_for_cov elements

* remove rows and reorganize classes

* add asterisk to address line 1 and zip in personal info (#3820)

* add builder to use for DRYing creation of required text fields with asterisks

* update address 1, address 2, city, and zip fields to use the new text_field builder, update zip field to have asterisk

* localize city

* makes placeholder a required keyword param

* rename to RequirableFormBuilder, update helper to maintain both the field/select element and its label, moves asterisk to label per specs

* fixe merge order so that params override options

* remove formbuilder and hardcode asterisks in markup

* fix trailing whitespace, remove county translation

* restore add 1 class

* use required class for required fields

* add required attr for city

* add disabled class to continue link (#3872)

* add disabled class to link, remove extraneous if in button

* restores disabled if for button case

* fix missing document faq button (#3877)

* 187579400 update flash (#3854)

* add BS4 view to flash partial

* updates flash partial for bs4, updates progress and bs4 layouts to render new flash

* fix underscore on close button

* close icon work

* white space fix

* map legacy alert type to bs4, update flash layout to work well with larger messages, accessibility updates

* add success case, more whitespace cleanup

* update alert-error to use correct border and add error icon

* move container out of layout, update padding on header to match footer

* update padding and margins on flash

* simplify flash in progress layout now that we have flash in its own container

* unrelated fix for failed validations, replace old alert style, add missing legacy style in BS4 flash style map, add new alert style, update flash margin,

* adds @bs4 arguments for render_flash calls and restores horizontal status in bs4 layout

* rename flash type helper method

* update info step 1 banner (#3860)

* adds warning option to DOB error, updates error_messages partial to handle error option and use new UI

* remove left padding for list in alert

* remove unneeded classes

* remove padding style

* updates classes for error banner to match mockups

* move flash into content column for progress layout, remove mt class from flash to allow layouts to drive top margin

* ridp default select agree (#3878)

add selected args for radio buttons

* resolve spacing issues (#3875)

* fix spacing, style the info to match other info boxes

* more spacing

* consolidate spacing classes

* session modal styling (#3874)

* session modal styling

* remove unnecessary span

* consolidate spacing classes

* ridp waiting

* update upload doc verify identity modal (#3886)

* split modal partial for bs4, finish header

* add radios and upload/close buttons

* padding update

* update radio text to be blocked and centered with radio

* more padding and margin fixes

* padding update for info label

* use for to render radios

* add id

* remove unneeded value attr

* remove unneeded classes on button row

* refactor radio value and id

* use element name for legend

* removes for from legend

* remove row

* move btn-file selector to forms

* start moving FAA to use bootstrap 4 (#3855)

* fix fonts, more ridp work started

* start faa

* fix resolve layout

* fix resolve layout

* fix rebase issues

* pr requests and translations

---------

Signed-off-by: kristinmerbach <[email protected]>

* improve ridp status badges (#3884)

* temp

* improve ridp status badges

* improve encapsulation

* rename of vars

* rename vars 2.0

* ridp fixes for previous and log out links (#3879)

* ridp link fixes

* button link hovers shouldn't have underline

* fix add mailing address functionality (#3876)

* fix mailing address js

* remove console log

* add button for existing mailing addresses

* help me sign up flow bs4 conversion started (#3887)

* help me sign up flow started

* translations and search input

* wave issues

* translations

---------

Signed-off-by: kristinmerbach <[email protected]>

* Bootstrap misc bugfixes (#3895)

fixes for 6 bug tickets

* update bs4 content for dob personal info banner (#3883)

* update corner radius for bs4 alerts, localize dob error, switch on message when validating dob for bs4 flag

* use existing continue strings as substring in dob error

* add document list to verify identity (#3890)

* cleanup, move old list to bs4

* more list work

* layout cleanup

* more list work

* adds trash style

* destroy icon update

* adds js handling for delete

* add new js destroy

* indentation fixes

* adds aria

* use h6 for type

* fix header span

* indentation fixes, update fdish page with list changes as well

* add missing change from merge

* remove class

* refactor row classes to support mobile

* alpha tweak

* remove float-end

* remove align

* fix unmatched span

* remove align

* remove d-flex

* puts label and badge in col

* button refactor

* remove unneeded icon

* add remove padding

* margin fixes

* more layout fixes

* restore fdsh modal

* use insured modal for insured

* cleanup

* FAA eligibility results to bs4 (#3894)

* eligibility results

* waiting for eligibility

* wait for results

---------

Signed-off-by: kristinmerbach <[email protected]>

* add member to family fix

* main.scss brace fix, cleanup

* webpacker depreciation warning cleanup

* fix build error with calc

* revert sass depreciation fix attempt

* small transation & inline style fixes

* XSS fixes

---------

Signed-off-by: kristinmerbach <[email protected]>
Signed-off-by: Sarah Austin <[email protected]>
Co-authored-by: Kristin Merbach <[email protected]>
Co-authored-by: Charlie Parker <[email protected]>
Co-authored-by: kvootla <[email protected]>
Co-authored-by: Alec Turnbull <[email protected]>
Co-authored-by: kristinmerbach <[email protected]>
Co-authored-by: Alec Turnbull <[email protected]>

mc

mc

* UI work

mc

mc

* use correct nav partial, add start date header

mc

* add due date element and resizing support

* update local var name for due date to match global due date helper method

* add absent badge class, update badge col to have different offset based on presence of actions button

* add FA card

mc

* indentation cleanup, add missing end

* fix actions button

* add padding on type

* remove date driving layout

* remove unneeded d-flex

* remove date layout for fa section

* fix button padding

* fix due date padding

* add file list for non-fa

* remove header for doc types

* add FA file section

* add missing translations

mc

mc

* rebase cleanup

* remove sanitize

* more rebase cleanup

mc

* restore lost file from rebase

mc

* fix spacing

* refactor faq link

* support admin actions

mc

* layout fix

mc

mc

* add info badge

* rebase cleanup

mc

* restore fa progress nav

* restore whitespace

* restore eof newline

* move resolve layout to parent controller

* whitespace fix

* minor style fixes

---------

Co-authored-by: Sarah Austin <[email protected]>
Co-authored-by: Kristin Merbach <[email protected]>
  • Loading branch information
3 people committed Sep 16, 2024
1 parent 943c120 commit 8a98a6d
Show file tree
Hide file tree
Showing 8 changed files with 62 additions and 38 deletions.
17 changes: 3 additions & 14 deletions app/controllers/insured/families_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class Insured::FamiliesController < FamiliesController

layout :resolve_layout

before_action :enable_bs4_layout, only: [:home, :find_sep, :record_sep, :check_qle_date, :check_move_reason, :check_marriage_reason, :check_insurance_reason, :personal, :inbox, :manage_family, :brokers, :enrollment_history] if EnrollRegistry.feature_enabled?(:bs4_consumer_flow)
before_action :enable_bs4_layout, only: [:home, :find_sep, :record_sep, :check_qle_date, :check_move_reason, :check_marriage_reason, :check_insurance_reason, :verification, :personal, :inbox, :manage_family, :brokers, :enrollment_history] if EnrollRegistry.feature_enabled?(:bs4_consumer_flow)
before_action :updateable?, only: [:delete_consumer_broker, :record_sep, :purchase, :upload_notice]
before_action :init_qualifying_life_events, only: [:home, :manage_family, :find_sep]
before_action :check_for_address_info, only: [:find_sep, :home]
Expand Down Expand Up @@ -142,7 +142,7 @@ def find_sep
end

respond_to do |format|
format.html
format.html { render :layout => EnrollRegistry.feature_enabled?(:bs4_consumer_flow) ? "progress" : "application" }
end
end

Expand Down Expand Up @@ -374,7 +374,7 @@ def purchase
@terminate_date = fetch_terminate_date(params["terminate_date_#{@enrollment.hbx_id}"]) if @terminate.present?
@terminate_reason = params[:terminate_reason] || ''
respond_to do |format|
format.html
format.html { render :layout => 'application' }
end
else
redirect_to :back
Expand Down Expand Up @@ -692,15 +692,4 @@ def conditionally_bs4_enabled_actions
def enable_bs4_layout
@bs4 = conditionally_bs4_enabled_actions.include?(action_name) ? params[:bs4] == "true" : true
end

def resolve_layout
case action_name
when "find_sep"
EnrollRegistry.feature_enabled?(:bs4_consumer_flow) ? "progress" : "application"
when "brokers", "inbox", "home", "enrollment_history", "personal", "manage_family"
EnrollRegistry.feature_enabled?(:bs4_consumer_flow) ? "progress" : "two_column"
when "purchase"
"two_column"
end
end
end
2 changes: 1 addition & 1 deletion app/helpers/verification_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def verification_type_class(status)
when 'outstanding', 'rejected'
'danger'
when 'curam', 'attested', 'expired', 'unverified'
'default'
@bs4 ? 'absent' : 'default'
when 'pending'
'info'
end
Expand Down
26 changes: 26 additions & 0 deletions app/javascript/css/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,16 @@ ul.list-right-section {
background-color: var(--warning-status-tint);
border: 1px solid var(--warning-border);
}

&.badge-info {
background-color: var(--info-tint);
border: 1px solid var(--info-color);
}

&.badge-absent {
background-color: var(--grey-040);
border: 1px solid var(--grey-160);
}
}

.badge-current-plan {
Expand Down Expand Up @@ -327,6 +337,22 @@ ul.list-right-section {
display: none;
}

.return-for-def-reason {
display: none;
}

.fedhub-request {
display: none;
}

.extend-request {
display: none;
}

.view-history {
display: none;
}

// medium breakpoint
@media screen and (max-width: 767px) {
.d-flex.sm-block {
Expand Down
24 changes: 12 additions & 12 deletions app/views/insured/families/verification/_verification.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<% due_date = @person.primary_family&.eligibility_determination&.outstanding_verification_earliest_due_date || default_verification_due_date %>
<dl class="d-flex">
<dt><%= l10n("document_due_date") %>:</dt>
<dd><%= due_date %> <%= "(#{l10n("past_due")})" if due_date <= TimeKeeper.date_of_record %></dd>
<dd><%= due_date %> <%= "(#{l10n("past_date")})" if due_date <= TimeKeeper.date_of_record %></dd>
</dl>
<% end %>
<% @family_members.each do |family_member| %>
Expand All @@ -25,24 +25,24 @@
<% if can_display_or_modify_type?(verif_type) %>
<div class="my-3">
<div class="row mb-2 mx-0 p-0">
<div class="d-flex col-xl-7 px-0 pb-2 pb-xl-0 align-items-center">
<div class="d-flex col-lg px-0 pb-2 pb-lg-0 align-items-center">
<div class="<%= "col-xl-#{badge_col_class} col-md-#{badge_col_class}" %> col-lg-3 col-4 px-0">
<%= v_type_display %>
</div>
<div class="mr-auto ml-xl-0">
<div class="ml-auto ml-lg-0">
<span class="badge badge-status badge-<%= verification_type_class(verif_type.validation_status) %> p-2" id="status">
<%= show_v_type(verif_type.validation_status, current_user.has_hbx_staff_role?) %>
<%= pundit_span Family, :updateable? %>
</span>
</div>
<% if VerificationType::DUE_DATE_STATES.include?(verif_type.validation_status) %>
<p class="d-flex align-items-center my-0 ml-md-3">
<strong class="secondary-text"><%= l10n("due_date") %>: </strong>
<%= verif_type.verif_due_date %>
</p>
<dl class="d-flex col justify-content-end align-items-center mb-0 px-0">
<dt><%= l10n("due_date") %>:</dt>
<dd><%= verif_type.verif_due_date %></dd>
</dl>
<% end %>
</div>
<div class="d-flex col-xl-5 pl-xl-2 px-0 justify-content-xl-end">
<div class="d-flex col-lg-auto pl-lg-2 px-0 justify-content-lg-end">
<% if can_show_actions_button %>
<span class="v-type-actions mr-2">
<%= select_tag :verification_actions, admin_actions(verif_type, family_member.person), {id: "v-action-#{person.id}-#{v_type.split.join('-')}", prompt: l10n("insured.consumer_roles.upload_ridp_documents.actions"), class: "button-select"} %>
Expand All @@ -66,12 +66,12 @@
</div>
<div>
<% if verif_type.type_documents.any? %>
<span><label class="my-0"><%= l10n("documents_list_title", document_type: v_type_display) %></label></span>
<span><label class="my-0"><%= l10n("insured.consumer_roles.upload_ridp_documents.list_header", ridp_type: v_type_display) %></label></span>
<div class="col-sm-12 px-0">
<% verif_type.type_documents.each do |vlp_doc| %>
<div class="d-flex row py-1 px-0 m-0 align-items-center" id="doc_table_row_<%=vlp_doc.id%>">
<div class="col-sm px-0 m-0">
<%= vlp_doc.title.titleize %>
<%= vlp_doc.title.titleize %>
</div>
<div class="d-flex col-sm align-items-center justify-content-sm-end px-0 mt-1 mt-sm-0 mb-0">
<% if vlp_doc.identifier.present? %>
Expand All @@ -83,9 +83,9 @@
<% end) %>
<% end %>
<span class="<%=pundit_class(Family, :updateable?)%> pl-1" >
<%= h(link_to(document_path(vlp_doc, :person_id => person.id, :verification_type => verif_type.id, :doc_title => vlp_doc.title.titleize), method: :delete, class: "btn-error outline text-nowrap") do %>
<%= link_to document_path(vlp_doc, :person_id => person.id, :verification_type => verif_type.id, :doc_title => vlp_doc.title.titleize), method: :delete, class: "btn-error outline text-nowrap" do %>
<%= l10n("insured.consumer_roles.upload_ridp_documents.remove") %>
<% end) %>
<% end %>
</span>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,26 +3,26 @@
<% can_show_actions_button = current_user.has_hbx_staff_role? && evidence_type.present? %>
<% badge_col_class = can_show_actions_button ? "5" : "4" %>
<div class="my-3" data-cuke="<%= evidence_kind %>_for_<%= applicant.full_name.parameterize.underscore %>">
<div class="row mb-2 mx-0 p-0">
<div class="d-flex col-xl-7 px-0 pb-2 pb-xl-0 align-items-center">
<div class="d-flex sm-block sm-space justify-content-between mb-2 mx-0 p-0">
<div class="d-flex sm-block sm-space col-md-9 px-0 pb-2 pb-lg-0 align-items-center">
<div class="<%= "col-xl-#{badge_col_class} col-md-#{badge_col_class}" %> col-lg-3 col-4 px-0">
<%= l10n(display_evidence_type(evidence_type)) %>
</div>
<div class="mr-auto ml-xl-0">
<div class="ml-auto ml-lg-0 sm-block sm-space">
<span class="badge badge-status badge-<%= verification_status_class(evidence.aasm_state.to_s) %> p-2" id="status">
<%= show_verification_status(evidence.aasm_state.to_s, current_user.has_hbx_staff_role?) %>
</span>
</div>
<% if Eligibilities::Evidence::DUE_DATE_STATES.include?(evidence.aasm_state.to_s) %>
<p class="d-flex align-items-center my-0 ml-md-3">
<p class="d-flex align-items-center my-0 ml-md-3 sm-block sm-space">
<strong class="secondary-text"><%= l10n("due_date") %>: </strong>
<%= evidence.verif_due_date %>
</p>
<% end %>
</div>
<div class="d-flex col-xl-5 pl-xl-2 px-0 justify-content-xl-end">
<div class="d-flex col-md-3 pl-lg-2 px-0 justify-content-lg-end sm-block sm-space">
<% if can_show_actions_button %>
<span class="v-type-actions mr-2">
<span class="v-type-actions mr-2 sm-block sm-space">
<%= select_tag :verification_actions, admin_actions_on_faa_documents(evidence), {id: "v-action-#{applicant.id}-#{evidence_type.downcase.split.join('-')}", prompt: l10n("insured.consumer_roles.upload_ridp_documents.actions"), class: "button-select"} %>
</span>
<% end %>
Expand All @@ -44,15 +44,15 @@
</div>
<div>
<% if evidence.documents.any? %>
<span><label class="my-0"><%= l10n("documents_list_title", document_type: l10n(display_evidence_type(evidence_type))) %></label></span>
<span><label class="my-0"><%= l10n("insured.consumer_roles.upload_ridp_documents.list_header", ridp_type: v_type_display) %></label></span>
<div class="col-sm-12 px-0">
<% evidence.documents.each do |document|%>
<% key = document.identifier.split('#').last %>
<div class="d-flex row py-1 px-0 m-0 align-items-center" id="doc_table_row_<%=document.id%>">
<div class="col-sm px-0 m-0">
<%= document.title.titleize %>
<%= vlp_doc.title.titleize %>
</div>
<div class="d-flex col-sm align-items-center justify-content-sm-end px-0 mt-1 mt-sm-0 mb-0">

<% if document.identifier.present? %>
<%= h(content_tag(
:a,
Expand All @@ -66,9 +66,9 @@
<% end) %>
<% end %>
<span class="<%=pundit_class(Family, :updateable?)%> pl-1" >
<%= h(link_to(financial_assistance.application_applicant_verification_documents_destroy_path(document, :applicant_id => applicant.id, :evidence => evidence.id, :doc_key => key, :doc_title => document.title.titleize, evidence_kind: evidence_kind), :method => :delete, class: "btn-error outline text-nowrap") do %>
<%= link_to financial_assistance.application_applicant_verification_documents_destroy_path(document, :applicant_id => applicant.id, :evidence => evidence.id, :doc_key => key, :doc_title => document.title.titleize, evidence_kind: evidence_kind), method: :delete, class: "btn-error outline text-nowrap" do %>
<%= l10n("insured.consumer_roles.upload_ridp_documents.remove") %>
<% end) %>
<% end %>
</span>
</div>
</div>
Expand Down
3 changes: 3 additions & 0 deletions db/seedfiles/translations/en/cca/insured.rb
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,9 @@
:'en.my_account' => "My Account",
:'en.manage_family' => "Manage Family",
:'en.personal' => "Personal",
:'en.verifications' => "Verifications",
:'en.verification_faq' => "View the documents we accept",
:'en.verification_documents' => "Verification Documents",
:'en.insured.my_coverme_header' => "My CoverME.gov",
:'en.insured.report_a_life_change' => "Report a Life Change",
:'en.insured.report_life_changes' => "Report Life Changes",
Expand Down
3 changes: 3 additions & 0 deletions db/seedfiles/translations/en/dc/insured.rb
Original file line number Diff line number Diff line change
Expand Up @@ -395,6 +395,9 @@
:'en.my_account' => "My Account",
:'en.manage_family' => "Manage Family",
:'en.personal' => "Personal",
:'en.verifications' => "Verifications",
:'en.verification_faq' => "View the documents we accept",
:'en.verification_documents' => "Verification Documents",
:'en.insured.my_coverme_header' => "My CoverME.gov",
:'en.insured.families.make_a_first_payment' => "Make a first Payment for a new plan",
:'en.insured.report_a_life_change' => "Report a Life Change",
Expand Down
3 changes: 3 additions & 0 deletions db/seedfiles/translations/en/me/insured.rb
Original file line number Diff line number Diff line change
Expand Up @@ -395,6 +395,9 @@
:'en.my_household' => "My Household",
:'en.my_household_desc' => "These are currently all the members listed in your household. If you need to get health insurance coverage for other members of your family, select 'Add New Member'",
:'en.personal' => "Personal",
:'en.verifications' => "Verifications",
:'en.verification_faq' => "View the documents we accept",
:'en.verification_documents' => "Verification Documents",
:'en.broker_search_placeholder' => "Name or Agency",
:'en.insured.my_coverme_header' => "My CoverME.gov",
:'en.insured.report_a_life_change' => "Report a Life Change",
Expand Down

0 comments on commit 8a98a6d

Please sign in to comment.