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.6.0 app/views/auth/shopping/discounts/_form_for_create_multiple_cart_items.html.erb
wordjelly-auth-1.5.9 app/views/auth/shopping/discounts/_form_for_create_multiple_cart_items.html.erb
wordjelly-auth-1.5.8 app/views/auth/shopping/discounts/_form_for_create_multiple_cart_items.html.erb
wordjelly-auth-1.5.7 app/views/auth/shopping/discounts/_form_for_create_multiple_cart_items.html.erb
wordjelly-auth-1.5.6 app/views/auth/shopping/discounts/_form_for_create_multiple_cart_items.html.erb
wordjelly-auth-1.5.5 app/views/auth/shopping/discounts/_form_for_create_multiple_cart_items.html.erb
wordjelly-auth-1.5.4 app/views/auth/shopping/discounts/_form_for_create_multiple_cart_items.html.erb
wordjelly-auth-1.5.3 app/views/auth/shopping/discounts/_form_for_create_multiple_cart_items.html.erb
wordjelly-auth-1.5.2 app/views/auth/shopping/discounts/_form_for_create_multiple_cart_items.html.erb
wordjelly-auth-1.5.1 app/views/auth/shopping/discounts/_form_for_create_multiple_cart_items.html.erb
wordjelly-auth-1.5.0 app/views/auth/shopping/discounts/_form_for_create_multiple_cart_items.html.erb
wordjelly-auth-1.4.9 app/views/auth/shopping/discounts/_form_for_create_multiple_cart_items.html.erb
wordjelly-auth-1.4.8 app/views/auth/shopping/discounts/_form_for_create_multiple_cart_items.html.erb
wordjelly-auth-1.4.7 app/views/auth/shopping/discounts/_form_for_create_multiple_cart_items.html.erb
wordjelly-auth-1.4.6 app/views/auth/shopping/discounts/_form_for_create_multiple_cart_items.html.erb
wordjelly-auth-1.4.5 app/views/auth/shopping/discounts/_form_for_create_multiple_cart_items.html.erb
wordjelly-auth-1.4.4 app/views/auth/shopping/discounts/_form_for_create_multiple_cart_items.html.erb
wordjelly-auth-1.4.3 app/views/auth/shopping/discounts/_form_for_create_multiple_cart_items.html.erb
wordjelly-auth-1.4.2 app/views/auth/shopping/discounts/_form_for_create_multiple_cart_items.html.erb
wordjelly-auth-1.4.0 app/views/auth/shopping/discounts/_form_for_create_multiple_cart_items.html.erb