Files
baclight/app/views/id_card/setup/_plan_fields.html.erb
T
2026-05-06 13:28:16 -04:00

15 lines
740 B
Plaintext

<div class="pl-1 w-full">
<%= plan_fields.text_field :title, label: { text: "Plan Title" }, class: "w-full", data: { add_plan_target: "plan", benefits_template_picker_target: "title" } %>
</div>
<div class="pl-1 w-full">
<%= plan_fields.text_field :pb_product_key, label: { text: "Plan Product Key" }, class: "w-full pointer-events-none opacity-65 cursor-not-allowed" %>
</div>
<%= plan_fields.hidden_field :id %>
<% unless plan_fields.object.setup.active %>
<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 %>