<%= t("protocols.steps.new.checklist_panel_title") %>
<%= ff.remove_nested_fields_link do %>
<% end %>
<%= ff.text_field :name, label: t("protocols.steps.new.checklist_name"), autofocus: true, placeholder: t("protocols.steps.new.checklist_name_placeholder") %>
<%= ff.label t("protocols.steps.new.checklist_items") %>
<%= ff.nested_fields_for :checklist_items, ordered_checklist_items(ff.object) do |chkItems| %>
-
<%= chkItems.text_field :text, autofocus: true, placeholder: t("protocols.steps.new.checklist_item_placeholder"), hide_label: true, class: "checklist-item-text form-control" %>
<%= chkItems.hidden_field :position, class: "checklist-item-pos" %>
<%= chkItems.remove_nested_fields_link do %>
<% end %>
<% end %>
<%= ff.add_nested_fields_link :checklist_items do %>
<%= t("protocols.steps.new.checklist_add_item") %>
<% end %>