<%= f.label :name, class: "control-label" %> <%= f.text_field :name, class: 'form-control' %>
<%= f.label :source, class: "control-label" %> <%= f.text_field :source, class: 'form-control' %>
<%= f.label :description, class: "control-label" %> <%= f.text_area :description, class: 'form-control' %>
<%= f.label :yields, class: "control-label" %> <%= f.text_field :yields, class: 'form-control', placeholder: 'Servings' %>
<%= f.label :total_time, class: "control-label" %> <%= f.number_field :total_time, class: 'form-control', placeholder: 'Minutes' %>
<%= f.label :active_time, class: "control-label" %> <%= f.number_field :active_time, class: 'form-control', placeholder: 'Minutes' %>

Ingredients

<%= f.fields_for :recipe_ingredients do |ri_form| %> <%= render partial: 'recipes/editor/ingredient', locals: { f: ri_form } %> <% end %>
<%= link_to_add_association 'Add Ingredient', f, :recipe_ingredients, partial: 'recipes/editor/ingredient', :'data-association-insertion-node' => '#ingredient-list', :'data-association-insertion-method' => 'append', class: 'btn btn-primary', id: 'addIngredientButton' %>

Steps

<%= f.fields_for :recipe_steps do |rs_form| %> <%= render partial: 'recipes/editor/step', locals: { f: rs_form } %> <% end %>
<%= link_to_add_association 'Add Step', f, :recipe_steps, partial: 'recipes/editor/step', :'data-association-insertion-node' => '#step-list', :'data-association-insertion-method' => 'append', class: 'btn btn-primary', id: 'addStepButton' %> <% content_for(:page_bottom) do %> <%= render partial: 'recipes/editor/bulk_ingredient_dialog' %> <%= render partial: 'recipes/editor/bulk_step_dialog' %> <% end %>