Before a few renames
This commit is contained in:
@@ -23,7 +23,7 @@
|
||||
<% @employers.active.each_with_index do |emp, index| %>
|
||||
<% item_color_index = @color_index == 0 ? 0 : @color_index % plan_colors.length %>
|
||||
<div class="w-1/2 flex text-2xl text-platinum font-bold px-4 py-4 ml-10 space-x-4 rounded-lg border-l-5 border-b-2 <%= "border-#{plan_colors[item_color_index]}" %>">
|
||||
<%= link_to emp.name, employer_path(emp.slug), class: "hover:text-#{plan_colors[item_color_index]}" %>
|
||||
<%= link_to "(#{emp.pl_plan_key}) - #{emp.name}", employer_path(emp.slug), class: "hover:text-#{plan_colors[item_color_index]}" %>
|
||||
<div>
|
||||
<%= "(#{emp.members.count} Members)" %>
|
||||
</div>
|
||||
|
||||
@@ -53,7 +53,7 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="flex flex-col space-y w-[23%]">
|
||||
<div class="flex flex-col space-y w-[23%] mb-5">
|
||||
<% module_color = IdCard::Configuration::MODULE_COLOR %>
|
||||
<div class="w-full flex flex-none items-center justify-between">
|
||||
<h3 class="flex-none font-bold text-2xl text-<%= module_color %>">ID Card Module</h3>
|
||||
@@ -61,39 +61,51 @@
|
||||
</div>
|
||||
<div class="grow flex flex-col w-full border-l-4 border-b-4 border-<%= module_color %> rounded-xl pl-2 pb-2">
|
||||
<% if @employer.id_card_enabled? %>
|
||||
<div class="grow-1 flex flex-col items-center w-full">
|
||||
<div class="w-full flex flex-col items-center my-3">
|
||||
<div class="font-bold text-lg text-bronze">
|
||||
Setup
|
||||
</div>
|
||||
<span class="block w-full h-0.5 bg-copper mt-[-4]"></span>
|
||||
</div>
|
||||
<div class="flex flex-col items-center space-y-6 w-full">
|
||||
<%= link_to "General", general_employer_id_card_configuration_index_path(employer_id: @employer.slug), data: { turbo: false }, class: "flex justify-center items-center w-full cursor-pointer bg-#{module_color} hover:bg-deepcove border-2 border-#{module_color} text-platinum font-bold px-3 rounded-lg h-10 transition duration-100" %>
|
||||
<%= link_to "Plans", plans_employer_id_card_configuration_index_path(employer_id: @employer.slug), data: { turbo: false }, class: "flex justify-center items-center w-full cursor-pointer bg-#{module_color} hover:bg-deepcove border-2 border-#{module_color} text-platinum font-bold px-3 rounded-lg h-10 transition duration-100" %>
|
||||
<%= link_to 'Exceptions (Optional)', field_exceptions_employer_id_card_configuration_index_path(employer_id: @employer.slug ), data: { turbo: false }, class: "flex justify-center items-center w-full cursor-pointer bg-#{module_color} hover:bg-deepcove border-2 border-#{module_color} text-platinum font-bold px-3 rounded-lg h-10 transition duration-100" %>
|
||||
<div class="grow-1 flex flex-col items-center w-full">
|
||||
<div class="w-full flex flex-col items-center my-3">
|
||||
<div class="font-bold text-lg text-bronze">
|
||||
Setup
|
||||
</div>
|
||||
<span class="block w-full h-0.5 bg-copper mt-[-4]"></span>
|
||||
</div>
|
||||
<div class="grow-1 flex flex-col items-center w-full">
|
||||
<div class="w-full flex flex-col items-center my-3">
|
||||
<div class="font-bold text-lg text-bronze">
|
||||
Actions
|
||||
</div>
|
||||
<span class="block w-full h-0.5 bg-copper mt-[-4]"></span>
|
||||
</div>
|
||||
<div class="flex flex-col items-center space-y-6 w-full">
|
||||
<%= link_to 'Generate Sample Cards', generate_sample_id_card_print_data_path(employer_slug: @employer.slug ), data: { turbo: false }, class: "flex justify-center items-center w-full cursor-pointer bg-#{module_color} hover:bg-deepcove border-2 border-#{module_color} text-platinum font-bold px-3 rounded-lg h-10 transition duration-100" %>
|
||||
<%= link_to 'Generate Group Cards (for print)', generate_print_id_card_print_data_path(employer_slug: @employer.slug ),data: { turbo: false }, class: "flex justify-center items-center w-full #{@employer.active ? "" : "pointer-events-none opacity-50 cursor-not-allowed"} bg-#{module_color} hover:bg-deepcove border-2 border-#{module_color} text-platinum font-bold px-3 rounded-lg h-10 transition duration-100" %>
|
||||
<%= link_to 'Generate Group Cards (for display)', generate_mobile_display_id_card_print_data_path(employer_slug: @employer.slug ), data: { turbo: false }, class: "flex justify-center items-center w-full #{@employer.active ? "" : "pointer-events-none opacity-50 cursor-not-allowed"} bg-#{module_color} hover:bg-deepcove border-2 border-#{module_color} text-platinum font-bold px-3 rounded-lg h-10 transition duration-100" %>
|
||||
<%= link_to 'Generate Group Cards (for download)', generate_full_page_id_card_print_data_path(employer_slug: @employer.slug ), data: { turbo: false }, class: "flex justify-center items-center w-full #{@employer.active ? "" : "pointer-events-none opacity-50 cursor-not-allowed"} bg-#{module_color} hover:bg-deepcove border-2 border-#{module_color} text-platinum font-bold px-3 rounded-lg h-10 transition duration-100" %>
|
||||
</div>
|
||||
<div class="flex flex-col items-center space-y-6 w-full">
|
||||
<%= link_to "General", general_employer_id_card_configuration_index_path(employer_id: @employer.slug), data: { turbo: false }, class: "flex justify-center items-center w-full cursor-pointer bg-#{module_color} hover:bg-deepcove border-2 border-#{module_color} text-platinum font-bold px-3 rounded-lg h-10 transition duration-100" %>
|
||||
<%= link_to "Plans", plans_employer_id_card_configuration_index_path(employer_id: @employer.slug), data: { turbo: false }, class: "flex justify-center items-center w-full cursor-pointer bg-#{module_color} hover:bg-deepcove border-2 border-#{module_color} text-platinum font-bold px-3 rounded-lg h-10 transition duration-100" %>
|
||||
<%= link_to 'Exceptions (Optional)', field_exceptions_employer_id_card_configuration_index_path(employer_id: @employer.slug ), data: { turbo: false }, class: "flex justify-center items-center w-full cursor-pointer bg-#{module_color} hover:bg-deepcove border-2 border-#{module_color} text-platinum font-bold px-3 rounded-lg h-10 transition duration-100" %>
|
||||
</div>
|
||||
</div>
|
||||
<div class="grow-1 flex flex-col items-center w-full">
|
||||
<div class="w-full flex flex-col items-center my-3">
|
||||
<div class="font-bold text-lg text-bronze">
|
||||
Actions
|
||||
</div>
|
||||
<span class="block w-full h-0.5 bg-copper mt-[-4]"></span>
|
||||
</div>
|
||||
<div class="flex flex-col items-center space-y-6 w-full">
|
||||
<%= link_to 'Generate Sample Cards', generate_sample_id_card_print_path(@employer.pl_plan_key), data: { turbo: false }, class: "flex justify-center items-center w-full cursor-pointer bg-#{module_color} hover:bg-deepcove border-2 border-#{module_color} text-platinum font-bold px-3 rounded-lg h-10 transition duration-100" %>
|
||||
<%= link_to 'Generate Group Cards (for print)', generate_print_id_card_print_path(@employer.pl_plan_key),data: { turbo: false }, class: "flex justify-center items-center w-full #{@employer.active ? "" : "pointer-events-none opacity-50 cursor-not-allowed"} bg-#{module_color} hover:bg-deepcove border-2 border-#{module_color} text-platinum font-bold px-3 rounded-lg h-10 transition duration-100" %>
|
||||
<%= link_to 'Generate Group Cards (for display)', generate_mobile_display_id_card_print_path(@employer.pl_plan_key), data: { turbo: false }, class: "flex justify-center items-center w-full #{@employer.active ? "" : "pointer-events-none opacity-50 cursor-not-allowed"} bg-#{module_color} hover:bg-deepcove border-2 border-#{module_color} text-platinum font-bold px-3 rounded-lg h-10 transition duration-100" %>
|
||||
<%= link_to 'Generate Group Cards (for download)', generate_full_page_id_card_print_path(@employer.pl_plan_key), data: { turbo: false }, class: "flex justify-center items-center w-full #{@employer.active ? "" : "pointer-events-none opacity-50 cursor-not-allowed"} bg-#{module_color} hover:bg-deepcove border-2 border-#{module_color} text-platinum font-bold px-3 rounded-lg h-10 transition duration-100" %>
|
||||
</div>
|
||||
</div>
|
||||
<div class="grow-1 flex flex-col items-center w-full">
|
||||
<div class="w-full flex flex-col items-center my-3">
|
||||
<div class="font-bold text-lg text-bronze">
|
||||
Admin
|
||||
</div>
|
||||
<span class="block w-full h-0.5 bg-copper mt-[-4]"></span>
|
||||
</div>
|
||||
<div class="flex flex-col items-center space-y-6 w-full">
|
||||
<%= link_to 'Sync Employer with VHCS', generate_sample_id_card_print_path(@employer.pl_plan_key), data: { turbo: false }, class: "flex justify-center items-center w-full cursor-pointer bg-#{module_color} hover:bg-deepcove border-2 border-#{module_color} text-platinum font-bold px-3 rounded-lg h-10 transition duration-100" %>
|
||||
<%= link_to 'Sync Members with VHCS', generate_print_id_card_print_path(@employer.pl_plan_key),data: { turbo: false }, class: "flex justify-center items-center w-full #{@employer.active ? "" : "pointer-events-none opacity-50 cursor-not-allowed"} bg-#{module_color} hover:bg-deepcove border-2 border-#{module_color} text-platinum font-bold px-3 rounded-lg h-10 transition duration-100" %>
|
||||
</div>
|
||||
</div>
|
||||
<% else %>
|
||||
<%= link_to "Enable ID Card", general_employer_id_card_configuration_index_path(employer_id: @employer.slug), data: { turbo: false }, class: "flex justify-center items-center w-full h-full cursor-pointer bg-#{module_color} hover:bg-deepcove border-4 border-atmosphere text-platinum text-xl font-bold px-3 rounded-md mt-3 transition duration-100" %>
|
||||
<% end %>
|
||||
</div>
|
||||
</div>
|
||||
<div class="flex flex-col space-y w-[23%]">
|
||||
<div class="flex flex-col space-y w-[23%] mb-5">
|
||||
<div class="w-full flex items-center">
|
||||
<h3 class="flex-none font-bold text-2xl text-cobalt-vivid">Claims Check Module</h3>
|
||||
<div class="grow h-[1px] mt-2 ml-1 bg-bronze"></div>
|
||||
@@ -106,7 +118,7 @@
|
||||
<% end %>
|
||||
</div>
|
||||
</div>
|
||||
<div class="flex flex-col space-y w-[23%]">
|
||||
<div class="flex flex-col space-y w-[23%] mb-5">
|
||||
<div class="w-full flex items-center">
|
||||
<h3 class="flex-none font-bold text-2xl text-verdigris-vivid">FairosRx Eligibility Module</h3>
|
||||
<div class="grow h-[1px] mt-2 ml-1 bg-bronze"></div>
|
||||
|
||||
@@ -5,9 +5,11 @@
|
||||
<div class="pl-1 w-full">
|
||||
<%= plan_fields.text_field :pb_product_key, label: { text: "Plan Product Key" }, class: "w-full" %>
|
||||
</div>
|
||||
<%= plan_fields.hidden_field :id %>
|
||||
<% else %>
|
||||
<div class="pl-1 pb-2 w-full">
|
||||
<%= f.select :template_id, options_from_collection_for_select(@plan_templates, :id, :title), { prompt: "Select Plan Template", class: "w-full" }, { data: { action: "benefits-template-picker#fetchData" }} %>
|
||||
</div>
|
||||
<% end %>
|
||||
<div class="pl-1 pb-2 w-full">
|
||||
<%= f.select :template_id, options_from_collection_for_select(@plan_templates, :id, :title), { prompt: "Select Plan Template", class: "w-full" }, { data: { action: "benefits-template-picker#fetchData" }} %>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
</div>
|
||||
<div class="flex space-x-10">
|
||||
<div class="w-full">
|
||||
<%= f.select :network_provider, options_for_select(["Cigna", "Medcost", "Other"], @configuration.network_provider), { label: { text: "Provider Network" }, include_blank: "Select", class: "w-full" }, data: { provider_update_target: "providerNetworkField", action: "change->provider-update#syncDefaults" } %>
|
||||
<%= f.select :network_provider, options_for_select(["Cigna", "MedCost", "Other"], @configuration.network_provider), { label: { text: "Provider Network" }, include_blank: "Select", class: "w-full" }, data: { provider_update_target: "providerNetworkField", action: "change->provider-update#syncDefaults" } %>
|
||||
</div>
|
||||
<div class="w-full">
|
||||
<%= f.select :card_template, options_for_select([["FairosRx", "FairosRxIDCard"], ["Tandemloc", "TandemlocIDCard"], ["smART", "SmartIDCard"], ["QRCode (Healthbus)", "QRCodeIDCard"]], @configuration.card_template || "FairosRxIDCard" ), { label: { text: "Card Template" }, include_blank: "Select", class: "w-full" } %>
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
<div class="w-full flex my-8" data-controller="add-plan" data-add-plan-form-color-value="<%= IdCard::Configuration::FORM_COLORS.to_json %>" >
|
||||
<div class="flex flex-wrap w-full" data-add-plan-target="container">
|
||||
<% @configuration.plans.each_with_index do |plan, index| %>
|
||||
<%= f.fields_for :plans, plan, child_index: index do |plan_fields| %>
|
||||
<%= f.fields_for :plans, plan do |plan_fields| %>
|
||||
<div class="inline-flex flex-col justify-end pr-6 w-1/4 relative pl-1 plan-item" data-controller="benefits-template-picker">
|
||||
<div class="absolute left-0 top-[2%] h-[98%] border-l-4 <%= "border-#{IdCard::Configuration::FORM_COLORS[index]}" %> "></div>
|
||||
<div class="font-bold text-2xl <%= "text-#{IdCard::Configuration::FORM_COLORS[index]}" %> -ml-[6px] z-2 w-full">
|
||||
|
||||
@@ -0,0 +1,67 @@
|
||||
<div class="bg-deepcove h-full w-full flex flex-col justify-start font-bold">
|
||||
<div class="w-full flex flex-col items-center mb-3">
|
||||
<div class="text-5xl text-platinum">
|
||||
ID Card Printer
|
||||
</div>
|
||||
<span class="block w-full h-0.5 bg-copper"></span>
|
||||
</div>
|
||||
<div class="w-full items-start flex">
|
||||
<div class="w-1/2 flex flex-col">
|
||||
<% @queued.each do |qu| %>
|
||||
<div class="w-full flex items-center justify-between text-lg text-platinum my-1">
|
||||
<div class="flex flex-none">
|
||||
<%= qu.pl_plan_key %> -
|
||||
<%= qu.employer.name %>
|
||||
(
|
||||
<div class="mx-1 text-bronze">
|
||||
<%= qu.queued_card_count %>
|
||||
</div>
|
||||
)
|
||||
</div>
|
||||
<div class="grow h-[1px] mx-1 bg-cobalt-vivid"></div>
|
||||
<div class="flex flex-none items-center text-xs">
|
||||
<%= link_to print_queued_by_employer_id_card_print_path(qu.pl_plan_key), data: { turbo: false }, class: "flex h-7 w-14 transition duration-100" do %>
|
||||
<%= icon "printer", library: "lucide", class: "h-full w-full text-center text-platinum bg-atmosphere hover:bg-deepcove border-2 border-atmosphere rounded-md p-0.5" %>
|
||||
<% end %>
|
||||
</div>
|
||||
</div>
|
||||
<% end %>
|
||||
<% @not_queued.each_with_index do |nq, i| %>
|
||||
<% if i == 0 %>
|
||||
<div class="w-full h-[2px] mx-1 bg-verdigris-vivid my-5"></div>
|
||||
<% end %>
|
||||
<div class="w-full flex items-center justify-between text-lg text-platinum my-1">
|
||||
<div class="flex flex-none">
|
||||
<%= nq.pl_plan_key %> -
|
||||
<%= nq.employer.name %>
|
||||
(
|
||||
<div class="mx-1 text-bluetang">
|
||||
<%= nq.queued_card_count %>
|
||||
</div>
|
||||
)
|
||||
</div>
|
||||
<div class="grow h-[1px] mx-1 bg-cobalt-vivid"></div>
|
||||
<div class="flex flex-none items-center text-xs">
|
||||
<%= link_to print_queued_by_employer_id_card_print_path(nq.pl_plan_key), data: { turbo: false }, class: "flex h-7 w-14 transition duration-100 pointer-events-none opacity-50 cursor-not-allowed" do %>
|
||||
<%= icon "printer", library: "lucide", class: "h-full w-full text-center text-platinum bg-atmosphere hover:bg-deepcove border-2 border-atmosphere rounded-md p-0.5" %>
|
||||
<% end %>
|
||||
</div>
|
||||
</div>
|
||||
<% end %>
|
||||
</div>
|
||||
<div class="w-1/2 flex flex-col">
|
||||
<div class="w-full flex justify-center items-center text-center text-2xl">
|
||||
<%= link_to "Print All Queued", print_all_queued_id_card_print_index_path, data: { turbo: false }, class: "flex justify-center items-center w-1/2 h-15 text-platinum bg-cobalt-vivid hover:bg-deepcove border-2 border-cobalt-vivid rounded-lg p-2" %>
|
||||
</div>
|
||||
<div class="w-full flex flex-col justify-center items-center text-center mt-15 text-2xl" data-controller="link-updater" data-link-updater-url-template-value="<%= generate_print_id_card_print_path(':id') %>">
|
||||
<div class="w-full flex justify-center text-platinum">Print ALL Cards for Group</div>
|
||||
<div class="w-1/2 flex justify-center text-lg font-medium">
|
||||
<%= select_tag "employer_select", options_for_select(Employer.all.pluck(:name, :pl_plan_key)), include_blank: "Select Group", data: { action: "change->link-updater#update", link_updater_target: "selector" }, class: "w-full rounded-lg rounded-r-none #{TailwindFormBuilder::SELECT_FIELD_STYLE}" %>
|
||||
<%= link_to "#", class: 'w-1/4 h-11 bg-cobalt-vivid hover:bg-deepcove border-2 border-cobalt-vivid text-platinum font-bold px-3 rounded-r-lg h-10 transition duration-100', data: { turbo: false, link_updater_target: "link" } do %>
|
||||
<%= icon "printer", library: "lucide", class: "h-full w-full text-center text-platinum rounded-md p-0.5" %>
|
||||
<% end %>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -1,34 +0,0 @@
|
||||
<div class="bg-deepcove h-full w-full flex flex-col justify-start font-bold">
|
||||
<div class="w-full flex flex-col items-center mb-3">
|
||||
<div class="text-5xl text-platinum">
|
||||
ID Card Printer
|
||||
</div>
|
||||
<span class="block w-full h-0.5 bg-copper"></span>
|
||||
</div>
|
||||
<div class="w-full items-start flex">
|
||||
<div class="w-1/2 flex flex-col">
|
||||
<% @employer_configurations.each do |es| %>
|
||||
<div class="w-full flex items-center justify-between text-lg text-platinum my-1">
|
||||
<div class="flex flex-none">
|
||||
<%= es.pl_plan_key %> -
|
||||
<%= es.employer.name %>
|
||||
(
|
||||
<div class="mx-1 text-<%= es.queued_card_count > 0 ? "bronze" : "bluetang" %>">
|
||||
<%= es.queued_card_count %>
|
||||
</div>
|
||||
)
|
||||
</div>
|
||||
<div class="grow h-[1px] mx-1 bg-cobalt-vivid"></div>
|
||||
<div class="flex flex-none items-center text-xs">
|
||||
<%= link_to general_employer_id_card_configuration_index_path(employer_id: es.employer.slug), class: "flex h-7 w-14 transition duration-100 #{es.queued_card_count > 0 ? "" : "pointer-events-none opacity-50 cursor-not-allowed" }" do %>
|
||||
<%= icon "printer", library: "lucide", class: "h-full w-full text-center text-platinum bg-atmosphere hover:bg-deepcove border-2 border-atmosphere rounded-md p-0.5" %>
|
||||
<% end %>
|
||||
</div>
|
||||
</div>
|
||||
<% end %>
|
||||
</div>
|
||||
<div class="w-1/2 flex justify-center items-center text-center text-2xl">
|
||||
<%= link_to "Print All Queued", id_card_printer_index_path, class: "flex justify-center items-center w-1/2 h-15 text-platinum bg-cobalt-vivid hover:bg-deepcove border-2 border-cobalt-vivid rounded-lg p-2" %>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user