<%= 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 %>

Alternate ID Cards:

(<%= @employer.name %>)

<%= form_with model: @setup, url: update_field_exceptions_employer_id_card_setup_index_path(@employer.slug), local: true, multipart: true do |f| %>
<% @setup.field_exceptions.each_with_index do |exc, index| %> <%= f.fields_for :field_exceptions, exc, child_index: index do |exception_fields| %>
<%= exception_fields.select :exception_type, options_for_select(IdCard::FieldException::VALID_TYPES.map { |type| [type.titleize(keep_id_suffix: true), type]}, exc.exception_type), { label: { text: "Alternate ID Card Determined By" }, prompt: "Select Type", class: "w-full" }, data: { add_exception_target: "exception" } %>
<%= exception_fields.text_field :exception_values, value: exc.exception_values.join(', '), label: { text: "Alternate ID Card Determination Value(s)" }, class: "w-full" %>
"> Alternate ID Card Change Items
">
(Changes to Employer Default Card)
">
<%= exception_fields.fields_for :field_exception_items do |exception_item_fields| %>
<%= exception_item_fields.select :field_name, options_for_select(IdCard::FieldExceptionItem::VALID_FIELD_NAMES.map { |field_name| [field_name.titleize, field_name] }, exception_item_fields.object.field_name ), { label: { text: "Card Field" }, prompt: "Select Card Field", class: "w-full" }, { data: { action: "change->exceptions-toggle#toggleFields", add_exception_item_target: "exceptionItem", exceptions_toggle_target: "selectField" } } %>
<%= render 'alt_network_logo_fields', exception_item_fields: exception_item_fields %>
<%= exception_item_fields.hidden_field :_destroy %> <%= button_tag "Remove", class: "cursor-pointer flex items-center justify-center bg-brightlava font-bold text-lg text-platinum py-[6px] px-1 font-semibold leading-tight rounded-lg border-3 border-brightlava w-full", data: { action: "add-exception-item#removeExemptionItem" } %>
<% end %> <%= button_tag "Add Another Alternate ID Card Change Item", class: "cursor-pointer bg-#{IdCard::Setup::FORM_COLORS[index]} hover:bg-deepcove text-xl font-bold text-platinum my-3 py-1 font-semibold leading-tight rounded border-3 border-#{IdCard::Setup::FORM_COLORS[index]} w-full", data: { action: "add-exception-item#addExemptionItem", add_exception_item_target: "exceptionItemButton" } %>
<% end %> <% end %> <%= button_tag "Add an Alternate ID Card", class: "cursor-pointer text-lg font-medium py-2 px-4 rounded w-1/2 min-h-[340px] mt-3 text-[#E0E0E0] rounded-lg border border-[#C2C2C2] hover:shadow-[0_0_10px_3px_#93c5fd]", data: { action: "add-exception#addExemption", add_exception_target: "exceptionButton" } %>
<%= f.submit "Save Alternate ID Cards" %>
<% end %>