Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

visuals of plan shopping and enrollment submitted into bs4 #4009

Merged
merged 13 commits into from
Jul 20, 2024
2 changes: 0 additions & 2 deletions app/assets/javascripts/plan_shopping.js.erb
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,6 @@ function maybeAddComparisonPlan(cb) {
}

function doPlanComparison(action_uri) {
console.log(plansToCompareArray);
console.log(uniqueValues(plansToCompareArray));
$.ajax({
type: "GET",
url: action_uri,
Expand Down
7 changes: 7 additions & 0 deletions app/javascript/css/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,7 @@ ul.list-right-section {
.navbar-brand img {
padding-left: $spacer / 2;
}

}

// large breakpoint
Expand Down Expand Up @@ -543,3 +544,9 @@ a.disabled {
color: var(--grey-130);
font-weight: 600;
}


.filter-input-block legend.bb, .sort-area legend {
padding-bottom: ($spacer / 2);
border-bottom: 1px solid var(--body-divider);
}
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@
<% end %>
</tr>
<% end %>
<tr class="gray-row">
<tr>
<td colspan="3" class="text-left capital"><strong><%= l10n("totals") %></strong></td>
<td class="text-right"><strong><%= number_to_currency(@plan.total_premium) %></strong></td>
<% if osse_eligible %>
Expand Down
2 changes: 0 additions & 2 deletions app/views/insured/plan_shoppings/_plan_details.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -315,8 +315,6 @@
}

function uniquePlans(ids) {
console.log(ids);
console.log(uniqueValues(ids));
uniqueValues(ids)
}

Expand Down
2 changes: 1 addition & 1 deletion app/views/insured/plan_shoppings/receipt.en.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<%= render partial: "insured/plan_shoppings/pay_now", locals: { source: "Plan Shopping", hbx_enrollment: @enrollment }%>
</div>
<!-- modal -->
<div id="how_to_pay" class="modal" role="dialog" style="display: none;" <% if @enrollment.employee_role.present? %>data-employee-role="true"<% else %>data-employee-role="false"<% end %>>
<div id="how_to_pay" class="modal" role="dialog" class="hidden" <% if @enrollment.employee_role.present? %>data-employee-role="true"<% else %>data-employee-role="false"<% end %>>
<div class="modal-dialog">
<div class="modal-content">
<div class="d-flex mb-4 align-items-center modal-header">
Expand Down
4 changes: 2 additions & 2 deletions app/views/insured/plan_shoppings/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
<hr />

<div class="d-flex justify-content-between">
<h2>Plan Results</h2>
<% if true #@market_kind == "individual" || @market_kind == 'coverall' %>
<h2><%= l10n("plans.plan_results") %></h2>
<% if @market_kind == "individual" || @market_kind == 'coverall' %>
<button class="button button-primary ivl-compare-selected-plans-link hidden" data-cuke="ivl-compare-selected-plans-link" id="compareBtn"
data-uri="<%= comparison_products_plans_path(market_kind: @market_kind, coverage_kind: @coverage_kind, bs4: @bs4) %>">
<%= l10n("compare_plans") %>
Expand Down
3 changes: 0 additions & 3 deletions app/views/layouts/single_column.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
<title><%= content_for?(:title) ? yield(:title) : "Welcome to #{site_short_name} | #{site_short_name}" %></title>
<%= stylesheet_link_tag "application", :media => "all" %>
<%= javascript_include_tag "application" %>
<%= stylesheet_pack_tag 'application', media: "all" %>

<%= stylesheet_link_tag "sponsored_benefits/application", :media => "all" %>
<%= javascript_include_tag "sponsored_benefits/application" %>
Expand Down Expand Up @@ -42,8 +41,6 @@
</head>
<body class="font" data-controller="<%= controller.controller_name %>" data-action="<%= action_name %>">

<body class="font">

<%= render partial: './ui-components/v1/navs/header' %>
<%= yield :horizontal_menu %>
<%= render_flash %>
Expand Down
166 changes: 83 additions & 83 deletions app/views/shared/_comparison.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -4,111 +4,111 @@
<p><%= l10n("plans.comparison_table.description") %></p>
<%= render "shared/plan_shoppings/more_plan_details" %>
<div class="table-responsive">
<table class="table compare-table">
<tr class="left-border-all">
<th class="row-title"><%= l10n("plans.plans") %></th>
<% qhps.each do |qhp|%>
<td colspan="2"><%= display_carrier_logo(Maybe.new(qhp.product_for(@market_kind)), {width: 80}) %></td>
<% end %>
</tr>
<tr class="left-border-all">
<th><%= l10n("plans.comparison_table.name") %></th>
<% qhps.each do |qhp|%>
<td colspan="2"><%= qhp.product_for(@market_kind).name %></td>
<% end %>
</tr>
<tr class="left-border-all">
<th><%= l10n("plans.comparison_table.metal_level_type") %></th>
<% qhps.each do |qhp|%>
<td colspan="2"><%= display_dental_metal_level qhp.product_for(@market_kind) %> / <%= qhp.product_for(@market_kind).product_type.upcase %></td>
<% end %>
</tr>
<tr class="left-border-all">
<th><%= l10n("plans.premium") %></th>
<% qhps.each do |qhp|%>
<td colspan="2"><%=number_to_currency(qhp[:total_employee_cost]) + " per month" %></td>
<% end %>
</tr>
<tr class="left-border-all">
<th><%= l10n("plans.provider_network") %></th>
<% qhps.each do |qhp|%>
<td colspan="2"><%= render partial: "shared/network_data", locals: {plan: qhp.product_for(@market_kind)} %></td>
<% end %>
</tr>
<tr class="left-border-all">
<th></th>
<% qhps.each do |qhp|%>
<td colspan="2" class="pb-5">
<%= render partial: "shared/plan_shoppings/select_plan_button", locals: { plan: qhp.product_for(@market_kind) } %>
</td>
<table class="table compare-table">
<tr class="left-border-all">
<th class="row-title"><%= l10n("plans.plans") %></th>
<% qhps.each do |qhp|%>
<td colspan="2"><%= display_carrier_logo(Maybe.new(qhp.product_for(@market_kind)), {width: 80}) %></td>
<% end %>
</tr>
<tr class="left-border-all">
<th><%= l10n("plans.comparison_table.name") %></th>
<% qhps.each do |qhp|%>
<td colspan="2"><%= qhp.product_for(@market_kind).name %></td>
<% end %>
</tr>
<tr class="left-border-all">
<th><%= l10n("plans.comparison_table.metal_level_type") %></th>
<% qhps.each do |qhp|%>
<td colspan="2"><%= display_dental_metal_level qhp.product_for(@market_kind) %> / <%= qhp.product_for(@market_kind).product_type.upcase %></td>
<% end %>
</tr>
<tr class="left-border-all">
<th><%= l10n("plans.premium") %></th>
<% qhps.each do |qhp|%>
<td colspan="2"><%=number_to_currency(qhp[:total_employee_cost]) + " per month" %></td>
<% end %>
</tr>
<tr class="left-border-all">
<th><%= l10n("plans.provider_network") %></th>
<% qhps.each do |qhp|%>
<td colspan="2"><%= render partial: "shared/network_data", locals: {plan: qhp.product_for(@market_kind)} %></td>
<% end %>
</tr>
<tr class="left-border-all">
<th></th>
<% qhps.each do |qhp|%>
<td colspan="2" class="pb-5">
<%= render partial: "shared/plan_shoppings/select_plan_button", locals: { plan: qhp.product_for(@market_kind) } %>
</td>
<% end %>
</tr>

<% if qhps.map(&:product).compact.map(&:benefit_market_kind) == :aca_individual %>
<% if qhps.map(&:product).compact.map(&:nationwide).compact.uniq.include?(true) %>
<tr class="left-border-all">
<th></th>
<% qhps.each do |qhp| %>
<td colspan="2">
<% if qhp.product_for(@market_kind).nationwide %>
<%= h(link_to l10n("plans.comparison_table.dd"), qhp.plan.provider_directory_url, target: '_blank', rel: "noopener noreferrer") %>
<% end %>
</td>
<% end %>
</tr>
<% end %>
<% else %>
<%= render partial: "shared/plan_shoppings/provider_directory_url", locals: {qhps: qhps} %>
<% end %>
</tr>

<% if qhps.map(&:product).compact.map(&:benefit_market_kind) == :aca_individual %>
<% if qhps.map(&:product).compact.map(&:nationwide).compact.uniq.include?(true) %>
<% if qhps.map(&:plan).compact.map(&:rx_formulary_url).compact.present? %>
<tr class="left-border-all">
<th></th>
<% qhps.each do |qhp| %>
<% qhps.each do |qhp|%>
<td colspan="2">
<% if qhp.product_for(@market_kind).nationwide %>
<%= h(link_to l10n("plans.comparison_table.dd"), qhp.plan.provider_directory_url, target: '_blank', rel: "noopener noreferrer") %>
<% if qhp.product_for(@market_kind).kind.to_s == "health" && qhp.product_for(@market_kind).rx_formulary_url.present? %>
<%= h(link_to l10n("plans.comparison_table.drug_list"), qhp.plan.rx_formulary_url, target: "_blank", rel: "noopener noreferrer") %>
<% end %>
</td>
<% end %>
</tr>
<% end %>
<% else %>
<%= render partial: "shared/plan_shoppings/provider_directory_url", locals: {qhps: qhps} %>
<% end %>

<% if qhps.map(&:plan).compact.map(&:rx_formulary_url).compact.present? %>
<tr class="left-border-all">
<th></th>
<% qhps.each do |qhp|%>
<td colspan="2">
<% if qhp.product_for(@market_kind).kind.to_s == "health" && qhp.product_for(@market_kind).rx_formulary_url.present? %>
<%= h(link_to l10n("plans.comparison_table.drug_list"), qhp.plan.rx_formulary_url, target: "_blank", rel: "noopener noreferrer") %>
<% end %>
</td>
<% end %>
</tr>
<% end %>

<% if @coverage_kind == "health" %>
<tr>
<th><%= l10n("plans.comparison_table.plan_benefits") %></th>
<% qhps.each do |qhp|%>
<td colspan="2" data-toggle="tooltip" data-container="body" title="<%= l10n("plans.comparison_table.plan_benefits_description")%>"><%= l10n("plans.comparison_table.copay") %></td>
<% end %>
</tr>
<%= render partial: "shared/plan_shoppings/plan_visit_types", locals: { qhps: qhps } %>
<% end %>
<tr>
<th></th>
<% qhps.each do |qhp|%>
<td colspan="2">
<div class="plan_comparison">
<%= render partial: "shared/plan_shoppings/sbc_link", locals: { plan: qhp.product_for(@market_kind) } %>
</div>
</td>
<% if @coverage_kind == "health" %>
<tr>
<th><%= l10n("plans.comparison_table.plan_benefits") %></th>
<% qhps.each do |qhp|%>
<td colspan="2" data-toggle="tooltip" data-container="body" title="<%= l10n("plans.comparison_table.plan_benefits_description")%>"><%= l10n("plans.comparison_table.copay") %></td>
<% end %>
</tr>
<%= render partial: "shared/plan_shoppings/plan_visit_types", locals: { qhps: qhps } %>
<% end %>
</tr>
<% if @coverage_kind == "health" %>
<tr>
<th></th>
<% qhps.each do |qhp|%>
<td colspan="2">
<%= render partial: "shared/plan_shoppings/select_plan_button", locals: { plan: qhp.product_for(@market_kind) } %>
<div class="plan_comparison">
<%= render partial: "shared/plan_shoppings/sbc_link", locals: { plan: qhp.product_for(@market_kind) } %>
</div>
</td>
<% end %>
</tr>
<% end %>
</table>
<% if @coverage_kind == "health" %>
<tr>
<th></th>
<% qhps.each do |qhp|%>
<td colspan="2">
<%= render partial: "shared/plan_shoppings/select_plan_button", locals: { plan: qhp.product_for(@market_kind) } %>
</td>
<% end %>
</tr>
<% end %>
</table>
</div>
</div>
</div>
<div class="modal-footer" style="border-top: none;">
<button type="button" class="btn btn-default btn-default" id='btnPrint'>Print</button>
<div class="modal-footer">
<button type="button" class="btn btn-default btn-default" id='btnPrint'><%= l10n("print") %></button>
<% if @coverage_kind == "health" %>
<%= link_to l10n("plans.download"), comparison_products_plans_path(market_kind: @market_kind, coverage_kind: @coverage_kind, standard_component_ids: @standard_component_ids, hbx_enrollment_id: @hbx_enrollment_id, active_year: @active_year, format: :csv), class: "btn btn-default" %>
<% end %>
Expand Down
1 change: 1 addition & 0 deletions db/seedfiles/translations/en/me/plan.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
PLAN_TRANSLATIONS = {
'en.plans.plan_results' => 'Plan Results',
'en.plans.csl' => 'Customer Service Line',
'en.plans.call' => 'Call:',
'en.plans.tty' => 'TTY:',
Expand Down
Loading