<%= t("protocols.steps.new.checklist_panel_title") %>
<%= ff.remove_nested_fields_link do %>
<% end %>
<%= ff.smart_text_area :name, label: t("protocols.steps.new.checklist_name"), class: "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.smart_text_area :text, autofocus: true, placeholder: t("protocols.steps.new.checklist_item_placeholder"), hide_label: true, class: "checklist-item-text form-control", single_line: true %>
<%= 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 %>