Before a few renames

This commit is contained in:
Jason Jordan
2026-03-19 00:42:27 -04:00
parent 011ee91707
commit 3300819ed5
46 changed files with 994 additions and 467 deletions
@@ -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">
+67
View File
@@ -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>
-34
View File
@@ -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>