<div class="nested-fields row">

  <div class="form-group col-xs-5 col-sm-6">
    <%= f.label :name, class: 'control-label' %>
    <%= f.text_field :name, class: 'form-control' %>
  </div>

  <div class="form-group col-xs-4 col-sm-5">
    <%= f.label :gram_weight, 'Grams', class: 'control-label' %>
    <%= f.text_field :gram_weight, class: 'form-control' %>
  </div>

  <div class="form-group col-xs-3 col-sm-1">
    <label class="control-label"></label>
    <p class="form-control-static">
      <%= link_to_remove_association f, class: 'btn btn-danger btn-sm' do %>
        <span class="glyphicon glyphicon-remove"></span>
      <% end %>
    </p>
  </div>

</div>