<%= f.text_field :name, label: t("protocols.steps.new.name"), placeholder: t("protocols.steps.new.name_placeholder") %>
<%= f.tiny_mce_editor(:description, id: :step_description_textarea, hide_label: false, value: sanitize_input(@step.tinymce_render(:description)), data: { object_type: 'step', object_id: @step.id, highlightjs_path: asset_path('highlightjs-github-theme.css') } ) %>
<%= f.nested_fields_for :checklists do |ff| %> <%= render "form_checklists.html.erb", ff: ff %> <% end %> <%= f.add_nested_fields_link :checklists do %> <%= t("protocols.steps.new.add_checklist") %> <% end %>
<%=t 'assets.drag_n_drop.label_html' %>
<%= f.nested_fields_for :assets do |ff| %> <%= render partial: 'steps/attachments/placeholder.html.erb', locals: { edit_page: true, asset: ff.object, ff: ff } %> <% end %>
<%= f.nested_fields_for :tables do |ff| %> <%= render "form_tables.html.erb", ff: ff %> <% end %> <%= f.add_nested_fields_link :tables, id: "add-table" do %> <%= t("protocols.steps.new.add_table") %> <% end %>
<%= f.nested_fields_for :marvin_js_assets do |ff| %> <% next unless ff.object.description %> <%= render partial: 'assets/marvinjs/marvin_sketch_card_placeholder.html.erb', locals: { sketch: ff.object, edit_page: true, ff: ff} %> <% end %>