Sha256: 4f831b47cd92e9175b6730097cd6524acf633033bd0ea6c132426a45e45eb420

Contents?: true

Size: 745 Bytes

Versions: 59

Compression:

Stored size: 745 Bytes

Contents

<%= form_for(@auth_shopping_discount, url: create_multiple_cart_items_path({:id => @auth_shopping_discount.id}), method: :post, as: :discount) do |f| %>
  <%= render :partial => "auth/shared/object_errors.html.erb", locals: {active_model_object: @auth_shopping_discount} %>
  
  <div class="form_fields">
  	<div>Add these items to your cart,and get a <%= @auth_shopping_discount.discount_amount %> discount!</div>
    <% @auth_shopping_discount.product_ids.each do |pr_id| %>

    
      <%= hidden_field_tag("discount[product_ids][]",pr_id.to_s, :id => "#{@auth_shopping_discount.id.to_s}_product_id_#{pr_id.to_s}", :multiple => true) %>

    <% end %>

  </div>
  <div class="actions">
    <%= f.submit "Use this coupon" %>
  </div>
<% end %>

Version data entries

59 entries across 59 versions & 1 rubygems

Version Path
wordjelly-auth-1.1.7 app/views/auth/shopping/discounts/_form_for_create_multiple_cart_items.html.erb
wordjelly-auth-1.1.6 app/views/auth/shopping/discounts/_form_for_create_multiple_cart_items.html.erb
wordjelly-auth-1.1.5 app/views/auth/shopping/discounts/_form_for_create_multiple_cart_items.html.erb
wordjelly-auth-1.1.4 app/views/auth/shopping/discounts/_form_for_create_multiple_cart_items.html.erb
wordjelly-auth-1.1.3 app/views/auth/shopping/discounts/_form_for_create_multiple_cart_items.html.erb
wordjelly-auth-1.1.2 app/views/auth/shopping/discounts/_form_for_create_multiple_cart_items.html.erb
wordjelly-auth-1.1.1 app/views/auth/shopping/discounts/_form_for_create_multiple_cart_items.html.erb
wordjelly-auth-1.1.0 app/views/auth/shopping/discounts/_form_for_create_multiple_cart_items.html.erb
wordjelly-auth-1.0.9 app/views/auth/shopping/discounts/_form_for_create_multiple_cart_items.html.erb
wordjelly-auth-1.0.8 app/views/auth/shopping/discounts/_form_for_create_multiple_cart_items.html.erb
wordjelly-auth-1.0.5 app/views/auth/shopping/discounts/_form_for_create_multiple_cart_items.html.erb
wordjelly-auth-1.0.4 app/views/auth/shopping/discounts/_form_for_create_multiple_cart_items.html.erb
wordjelly-auth-1.0.3 app/views/auth/shopping/discounts/_form_for_create_multiple_cart_items.html.erb
wordjelly-auth-1.0.2 app/views/auth/shopping/discounts/_form_for_create_multiple_cart_items.html.erb
wordjelly-auth-0.0.8 app/views/auth/shopping/discounts/_form_for_create_multiple_cart_items.html.erb
wordjelly-auth-0.0.5 app/views/auth/shopping/discounts/_form_for_create_multiple_cart_items.html.erb
wordjelly-auth-0.0.4 app/views/auth/shopping/discounts/_form_for_create_multiple_cart_items.html.erb
wordjelly-auth-0.0.3 app/views/auth/shopping/discounts/_form_for_create_multiple_cart_items.html.erb
wordjelly-auth-0.0.1 app/views/auth/shopping/discounts/_form_for_create_multiple_cart_items.html.erb