Skip to content

Commit

Permalink
chore: Update enrollment actions dropdown item class in families view (
Browse files Browse the repository at this point in the history
  • Loading branch information
bbodine1 committed Aug 10, 2024
1 parent 6c26f58 commit 40cb986
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions app/views/insured/families/_enrollment_actions.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -36,17 +36,23 @@
<% if hbx_enrollment.product.present? && enrollment_is_ivl_or_coverall?(hbx_enrollment) %>
<hr>
<% if show_pay_now?("Enrollment Tile", hbx_enrollment)%>

<% if before_effective_date?(hbx_enrollment) %>
<a role="menuitem" onfocus="handleGlossaryFocus('make_payment_before_effective_hover')" onblur="handleGlossaryBlur('make_payment_before_effective_hover')" class="btn-link btn-block px-2 py-1" data-toggle="modal" data-target="#payNowModal<%= hbx_enrollment.hbx_id %>" data-enrollment="<%= hbx_enrollment.hbx_id %>">
<a role="menuitem" onfocus="handleGlossaryFocus('make_payment_before_effective_hover')" onblur="handleGlossaryBlur('make_payment_before_effective_hover')" class="btn-link btn-block dropdown-item px-2 py-1" data-toggle="modal" data-target="#payNowModal<%= hbx_enrollment.hbx_id %>" data-enrollment="<%= hbx_enrollment.hbx_id %>" href="#">
<%= render partial:"shared/glossary_hover", locals: {key: "make_payment_before_effective_hover", title: "Make a first payment for my new plan", term: sanitize(l10n("plans.issuer.pay_now.make_first_payment")) } %>
</a>
<% else %> <%# after or on effective date %>
<a role="menuitem" onfocus="handleGlossaryFocus('make_payments_hover')" onblur="handleGlossaryBlur('make_payments_hover')" class="btn-link btn-block dropdown-item px-2 py-1" data-toggle="modal" data-target="#payNowModal<%= hbx_enrollment.hbx_id %>" data-enrollment="<%= hbx_enrollment.hbx_id %>" href="#">
<%= render partial:"shared/glossary_hover", locals: {key: "make_payments_hover", title: "Make payments for my plan", term: sanitize(l10n("plans.issuer.pay_now.make_payments")) } %>
</a>
<% end %>

<% elsif show_generic_redirect?(hbx_enrollment) %>
<a role="menuitem" onfocus="handleGlossaryFocus('generic_make_payments_hover')" onblur="handleGlossaryBlur('generic_make_payments_hover')" class="btn-link btn-block px-2 py-1" data-toggle="modal" data-target="#payNowModal<%= hbx_enrollment.hbx_id %>" data-enrollment="<%= hbx_enrollment.hbx_id %>">
<a role="menuitem" onfocus="handleGlossaryFocus('generic_make_payments_hover')" onblur="handleGlossaryBlur('generic_make_payments_hover')" class="btn-link btn-block dropdown-item px-2 py-1" data-toggle="modal" data-target="#payNowModal<%= hbx_enrollment.hbx_id %>" data-enrollment="<%= hbx_enrollment.hbx_id %>" href="#">
<%= render partial:"shared/glossary_hover", locals: {key: "generic_make_payments_hover", title: "Make payments for my plan", term: sanitize(l10n("plans.issuer.pay_now.make_payments")) } %>
</a>
<% else %>
<a role="menuitem" onfocus="handleGlossaryFocus('generic_make_payments_hover')" onblur="handleGlossaryBlur('generic_make_payments_hover')" class="btn-link btn-block dropdown-item px-2 py-1" data-toggle="modal" data-target="#payNowModal<%= hbx_enrollment.hbx_id %>" data-enrollment="<%= hbx_enrollment.hbx_id %>" href="#">
<%= render partial:"shared/glossary_hover", locals: {key: "generic_make_payments_hover", title: "Make payments for my plan", term: sanitize(l10n("plans.issuer.pay_now.make_payments")) } %>
</a>
<% end %>
Expand Down

0 comments on commit 40cb986

Please sign in to comment.