2016-01-18 12:58:54 -06:00
|
|
|
|
|
|
|
<div id="modal_form_container">
|
|
|
|
|
|
|
|
<%= form_for :conversion, url: convert_ingredients_path, remote: true, method: :get, html: { id: 'conversion_form' } do |f| %>
|
|
|
|
|
|
|
|
<% if @conversion %>
|
|
|
|
<%= render partial: 'shared/error_list', locals: {model: @conversion} %>
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-xs-6">
|
|
|
|
<div class="form-group form-group-sm">
|
|
|
|
<%= f.label :input_quantity, "Quantity", class: 'control-label' %>
|
|
|
|
<%= f.text_field :input_quantity, class: 'form-control quantity' %>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="col-xs-6">
|
|
|
|
<div class="form-group form-group-sm">
|
|
|
|
<%= f.label :input_units, "Units", class: 'control-label' %>
|
|
|
|
<%= f.text_field :input_units, class: 'form-control units' %>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-xs-6">
|
|
|
|
<div class="form-group form-group-sm">
|
|
|
|
<%= f.label :scale, class: 'control-label' %>
|
|
|
|
<%= f.text_field :scale, class: 'form-control scale' %>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="col-xs-6">
|
|
|
|
<div class="form-group form-group-sm">
|
|
|
|
<%= f.label :output_units, class: 'control-label' %>
|
|
|
|
<%= f.text_field :output_units, class: 'form-control output_units' %>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2016-01-18 15:10:25 -06:00
|
|
|
<%= f.hidden_field :ingredient_id, class: 'ingredient_id' %>
|
2016-01-18 12:58:54 -06:00
|
|
|
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|