ID Card Plans:

(<%= @employer.name %>)

<%= form_with model: @configuration, url: update_plans_employer_id_card_configuration_index_path(@employer.slug), local: true, multipart: true do |f| %>
<% @configuration.plans.each_with_index do |plan, index| %> <%= f.fields_for :plans, plan do |plan_fields| %>
">
-ml-[6px] z-2 w-full"> <%= "Plan #{index + 1}" %>
<%= render 'plan_fields', plan_fields: plan_fields, f: f, index: index %>
"> Benefit Values
ml-[3px]">
<%= plan_fields.fields_for :plan_benefits do |plan_benefits_fields| %> <%= render 'plan_benefits_fields', plan_benefits_fields: plan_benefits_fields %> <% end %>
<%= plan_fields.hidden_field :_destroy %> <%= button_tag "Remove Plan #{index + 1}", class: "cursor-pointer bg-deepcove hover:bg-brightlava text-xl font-bold text-copper hover:text-platinum py-2 px-4 font-semibold leading-tight rounded-lg border-3 border-copper w-full", data: { action: "add-plan#remove" } %>
<% end %> <% end %> <%= button_tag "Add a Plan", class: "cursor-pointer text-2xl font-bold py-2 pr-6 mt-10 w-[calc(24%-1rem)] w-1/4 min-h-[940px] text-[#E0E0E0] rounded-lg font-medium border border-[#E0E0E0] bg-[#173057] hover:bg-transparent hover:shadow-[0_0_10px_3px_#93c5fd] transition-colors duration-150", data: { action: "add-plan#add", add_plan_target: "button" } %>
<%= f.submit "Submit Plans" %>
<% end %>