<%= render :partial => "spree/admin/variants/autocomplete", :formats => :js %>

<div id="add-line-item" data-hook>
  <fieldset>
    <legend><%= t(:add_product) %></legend>
    
    <div data-hook="add_product_name" class="field eight columns alpha">
      <%= label_tag :add_product_name, t(:name_or_sku) %>
      <%= hidden_field_tag :add_variant_id, "", :class => "variant_autocomplete" %>
    </div>
    
    <div data-hook="add_quantity" class="field two columns alpha">
      <%= label_tag :add_quantity, t(:qty) %>
      <%= number_field_tag :add_quantity,  1, :min => 0 %>
    </div>
    
    <div data-hook="add_button" class="actions two columns omega">
      <%= link_to_with_icon 'icon-plus', t(:add), admin_order_line_items_url(@order), 
                  :method => :post,
                  :id => 'add_line_item_to_order',
                  :class => 'button fullwidth',
                  'data-update' => 'order-form-wrapper' %>
    </div>

  </fieldset>
</div>

<%= render :partial => "spree/admin/variants/autocomplete", :formats => :js %>

<div id="add-line-item" data-hook>
  <fieldset>
    <legend><%= t(:add_product) %></legend>
    
    <div data-hook="add_product_name" class="field eight columns alpha">
      <%= label_tag :add_product_name, t(:name_or_sku) %>
      <%= hidden_field_tag :add_variant_id, "", :class => "variant_autocomplete fullwidth" %>
    </div>
    
    <div data-hook="add_quantity" class="field two columns alpha">
      <%= label_tag :add_quantity, t(:qty) %>
      <%= number_field_tag :add_quantity,  1, :min => 0 %>
    </div>
    
    <div data-hook="add_button" class="actions two columns omega">
      <%= link_to_with_icon 'icon-plus', t(:add), admin_order_line_items_url(@order), 
                  :method => :post,
                  :id => 'add_line_item_to_order',
                  :class => 'button fullwidth',
                  'data-update' => 'order-form-wrapper' %>
    </div>

  </fieldset>
</div>

Set fullwidth class on variant_autocomplete for orders/new
Set fullwidth class on variant_autocomplete for orders/new
