2026-03-13 08:47:13 -04:00
|
|
|
<div class="pl-1 w-full">
|
|
|
|
|
<%= plan_fields.text_field :title, label: { text: "Plan Title" }, class: "w-full", data: { add_plan_target: "plan" } %>
|
|
|
|
|
</div>
|
|
|
|
|
<% if plan_fields.object.persisted? %>
|
|
|
|
|
<div class="pl-1 w-full">
|
|
|
|
|
<%= plan_fields.text_field :pb_product_key, label: { text: "Plan Product Key" }, class: "w-full" %>
|
|
|
|
|
</div>
|
2026-03-19 00:42:27 -04:00
|
|
|
<%= 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>
|
2026-03-13 08:47:13 -04:00
|
|
|
<% end %>
|
|
|
|
|
|
|
|
|
|
|