Sha256: 467b55ee87a8dddbe3af65ed1109c5ea5c617e70bbec3b7b46be0185bdf0c498

Contents?: true

Size: 886 Bytes

Versions: 59

Compression:

Stored size: 886 Bytes

Contents

<%= form_for(@auth_shopping_discount, url: @auth_shopping_discount.new_record? ? discounts_path : discount_path(@auth_shopping_discount), method: @auth_shopping_discount.new_record? ? :post : :put, as: :discount) do |f| %>
  <%= render :partial => "auth/shared/object_errors.html.erb", locals: {active_model_object: @auth_shopping_discount} %>
  
  <div class="form_fields">

    <%= f.text_field :discount_amount %>
    <%= f.label :discount_amount %>
    
    <%= f.hidden_field :cart_id, :value => @auth_shopping_discount.cart_id %>

    <!-- add a selection to decide whether this discount option needs a verification or not -->
    <%= f.select(:requires_verification,  [["Verify those who claim this discount", true], ['This discount doesnt need verification', false]],{}, {:class => "browser-default"}) %>

  </div>
  <div class="actions">
    <%= f.submit %>
  </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.html.erb
wordjelly-auth-1.5.9 app/views/auth/shopping/discounts/_form.html.erb
wordjelly-auth-1.5.8 app/views/auth/shopping/discounts/_form.html.erb
wordjelly-auth-1.5.7 app/views/auth/shopping/discounts/_form.html.erb
wordjelly-auth-1.5.6 app/views/auth/shopping/discounts/_form.html.erb
wordjelly-auth-1.5.5 app/views/auth/shopping/discounts/_form.html.erb
wordjelly-auth-1.5.4 app/views/auth/shopping/discounts/_form.html.erb
wordjelly-auth-1.5.3 app/views/auth/shopping/discounts/_form.html.erb
wordjelly-auth-1.5.2 app/views/auth/shopping/discounts/_form.html.erb
wordjelly-auth-1.5.1 app/views/auth/shopping/discounts/_form.html.erb
wordjelly-auth-1.5.0 app/views/auth/shopping/discounts/_form.html.erb
wordjelly-auth-1.4.9 app/views/auth/shopping/discounts/_form.html.erb
wordjelly-auth-1.4.8 app/views/auth/shopping/discounts/_form.html.erb
wordjelly-auth-1.4.7 app/views/auth/shopping/discounts/_form.html.erb
wordjelly-auth-1.4.6 app/views/auth/shopping/discounts/_form.html.erb
wordjelly-auth-1.4.5 app/views/auth/shopping/discounts/_form.html.erb
wordjelly-auth-1.4.4 app/views/auth/shopping/discounts/_form.html.erb
wordjelly-auth-1.4.3 app/views/auth/shopping/discounts/_form.html.erb
wordjelly-auth-1.4.2 app/views/auth/shopping/discounts/_form.html.erb
wordjelly-auth-1.4.0 app/views/auth/shopping/discounts/_form.html.erb