
<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>

    <%= f.hidden_field :ingredient_id, class: 'ingredient_id' %>

  <% end %>

</div>


