2016-01-13 17:10:43 -06:00
|
|
|
<div class="nested-fields ingredient-editor">
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-xs-11">
|
|
|
|
<div class="form-group">
|
|
|
|
<%= f.label :custom_name, "Name" %>
|
|
|
|
<%= f.text_field :custom_name, class: 'form-control' %>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
<%= f.label :quantity %>
|
|
|
|
<%= f.text_field :quantity, class: 'form-control' %>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
<%= f.label :units %>
|
|
|
|
<%= f.text_field :units, class: 'form-control' %>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="col-xs-1">
|
|
|
|
<%= link_to_remove_association f, class: 'btn btn-danger' do %>
|
|
|
|
<span class="glyphicon glyphicon-remove"></span>
|
|
|
|
<% end %>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<%= f.text_field :sort_order, class: 'sort-order' %>
|
|
|
|
</div>
|