Sha256: fa6a62bb1ec7864b34910083d05e886e83d0959675fb6db681d16ae42196b4b8

Contents?: true

Size: 1.18 KB

Versions: 5

Compression:

Stored size: 1.18 KB

Contents

<div id="add-line-item">
  <fieldset>
    <legend><%= t('add_product') %></legend>
    <div style="float:left;width:65%;margin-right:5%;">
      <%= label_tag :add_product_name, t("name_or_sku") %>
      <%= text_field_tag :add_product_name,  {}, :class => 'fullwidth title'  %>
      <%= hidden_field_tag :add_variant_id %>
    </div>
    <div style="float:left;width:10%;margin-right:5%;">
      <%= label_tag :add_quantity, t("qty") %>
      <%= text_field_tag :add_quantity,  1 , :class => 'fullwidth title'  %>
    </div>
    <div style="float: left; width: 15%; padding-top: 17px;">
      <%= button_link_to_remote t("add"),
                         {:url => admin_order_line_items_url(@order),
                         :method => :post,
                         :with => "'line_item[variant_id]=' + $('#add_variant_id').val() + '&line_item[quantity]=' + $('#add_quantity').val()",
                         :before => "if($('#add_variant_id').val()==''){ return false; }",
                         :after => "$('#add_product_name').val('');$('#add_variant_id').val('');$('#add_quantity').val(1)",
                         :update => "order-form-wrapper"}, :icon => 'add' %>
    </div>

  </fieldset>
</div>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
spree-0.11.4 vendor/extensions/theme_default/app/views/admin/orders/_add_product.html.erb
spree-0.11.3 vendor/extensions/theme_default/app/views/admin/orders/_add_product.html.erb
spree-0.11.2 vendor/extensions/theme_default/app/views/admin/orders/_add_product.html.erb
spree-0.11.1 vendor/extensions/theme_default/app/views/admin/orders/_add_product.html.erb
spree-0.11.0 vendor/extensions/theme_default/app/views/admin/orders/_add_product.html.erb