<%= link_to employer_path(@employer.slug), class: "flex items-center h-14 space-x" do %>
<%= icon "arrow-big-left-dash", library: "lucide", class: "h-full w-20 text-center" %>
<%= "Back to Employer" %>
<% end %>

ID Card Setup:

(<%= @employer.name %>)

<%= form_with model: @setup, url: employer_id_card_setup_path(id: @employer.slug), local: true, multipart: true do |f| %>
<%= f.text_field :print_name, { label: { text: "Print Name" }, data: { font_validator_target: "textField", action: "input->font-validator#measure" }, class: "w-full" } %>
/100px
<%= f.hidden_field :print_name_pixel_width, data: { font_validator_target: "hiddenField" } %>
<%= f.text_field :rx_group_number, label: { text: "Rx Group Number" }, class: "w-full" %>
<%= f.select :network_provider, options_for_select(["Cigna", "MedCost", "Other"], @setup.network_provider), { label: { text: "Provider Network" }, include_blank: "Select", class: "w-full" }, data: { provider_update_target: "providerNetworkField", action: "change->provider-update#syncDefaults" } %>
<%= f.fields_for :employer_logo, @setup.employer_logo do |employer_logo_fields| %>
<%= employer_logo_fields.text_field :filename, label: { text: "Employer Logo" }, default: "No logo added", data: { logo_upload_target: "logoNameField" }, class: "w-full rounded-r-none", readonly: true %>
<%= employer_logo_fields.hidden_field :id, value: @setup&.employer_logo&.id, label: { text: "Employer Logo" }, data: { logo_upload_target: "logoIdField" } %> <%= f.file_field :employer_logo_file, class: "hidden", id: "employer_logo_file", data: { logo_upload_target: "previewContainer", action: "change->logo-upload#uploadLogo" }, direct_upload: true %>
<% end %>
<%= f.select :network_logo_id, options_for_select(IdCard::NetworkLogo.pluck(:filename, :id), @setup.network_logo_id), { include_blank: "Select/Add Network Logo", class: "rounded-r-none w-full" }, data: { provider_update_target: "networkLogoField", logo_upload_target: "logoIdField", action: "change->logo-upload#setSelectPreview" } %>
<%= f.file_field :network_logo_file, class: "hidden", id: "network_logo_file", data: { logo_upload_target: "previewContainer", action: "change->logo-upload#uploadLogo" }, direct_upload: true %>

Admin

<%= f.select :card_template, options_for_select([["FairosRx", "FairosRxIDCard"], ["Tandemloc", "TandemlocIDCard"], ["smART", "SmartIDCard"], ["QRCode (Healthbus)", "QRCodeIDCard"]], @setup.card_template || "FairosRxIDCard" ), { label: { text: "Card Template" }, include_blank: "Select", class: "w-full pointer-events-none opacity-65 cursor-not-allowed" } %>
<%= f.select :provider_section_id, options_for_select(@provider_options, @setup.provider_section_id || ""), { label: { text: "Claims Submission Section" }, include_blank: "Select/Add Claims Submission", class: "w-full pointer-events-none opacity-65 cursor-not-allowed" }, data: { provider_update_target: "providerSectionField", general_form_target: "selectField", action: "change->general-form#toggleNewFieldSection" } %>
<%= f.select :card_color, options_for_select([["White", "white"], ["Blue", "blue"]], @setup.card_color || "white" ), { label: { text: "Card Color" }, include_blank: "Select", class: "w-full pointer-events-none opacity-65 cursor-not-allowed" } %>
<%= f.submit "Save ID Card Setup" %>
<% end %>