Sha256: f30cdc8a6c02953b76cd43ac65cab7bc85cc9c92e3218a6e4e02bd7266ac56dd

Contents?: true

Size: 1.12 KB

Versions: 21

Compression:

Stored size: 1.12 KB

Contents

<% if promotion.nil? %>
  <div class='shopping-cart-coupon-code <%= classes %>' data-hook='coupon_code'>
    <div class="input-group">
      <%= order_form.text_field :coupon_code, size: '30', class: 'form-control border-right-0', placeholder: Spree.t('cart_page.add_promo_code'), aria: { label: Spree.t('cart_page.add_promo_code') } %>
      <div class="input-group-append">
        <%= button_tag '+', name: '', id: 'shopping-cart-coupon-code-button', class: 'btn border-left-0' %>
      </div>
    </div>
  </div>
<% else %>
  <div class='shopping-cart-coupon-code <%= classes %>' data-hook='coupon_code'>
    <div class="input-group">
      <%= order_form.text_field :applied_coupon_code, name: '', size: '30', class: 'form-control border-right-0 disabled',
        value: Spree.t(:promotion_label, name: promotion.name),
        data: { code: promotion.code } %>
      <div class="input-group-append">
        <%= button_tag name: '', id: 'shopping-cart-remove-coupon-code-button', class: 'btn border-left-0 remove' do %>
          <%= icon(name: 'close', width: 15, height: 14) %>
        <% end %>
      </div>
    </div>
  </div>
<% end %>

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
spree_frontend-4.2.7 app/views/spree/orders/_coupon_code.html.erb
spree_frontend-4.3.3 app/views/spree/orders/_coupon_code.html.erb
spree_frontend-4.7.0 app/views/spree/orders/_coupon_code.html.erb
spree_frontend-4.6.0 app/views/spree/orders/_coupon_code.html.erb
spree_frontend-4.5.0 app/views/spree/orders/_coupon_code.html.erb
spree_frontend-4.2.6 app/views/spree/orders/_coupon_code.html.erb
spree_frontend-4.3.2 app/views/spree/orders/_coupon_code.html.erb
spree_frontend-4.4.0 app/views/spree/orders/_coupon_code.html.erb
spree_frontend-4.3.1 app/views/spree/orders/_coupon_code.html.erb
spree_frontend-4.3.0 app/views/spree/orders/_coupon_code.html.erb
spree_frontend-4.3.0.rc3 app/views/spree/orders/_coupon_code.html.erb
spree_frontend-4.3.0.rc2 app/views/spree/orders/_coupon_code.html.erb
spree_frontend-4.3.0.rc1 app/views/spree/orders/_coupon_code.html.erb
spree_frontend-4.2.5 app/views/spree/orders/_coupon_code.html.erb
spree_frontend-4.2.4 app/views/spree/orders/_coupon_code.html.erb
spree_frontend-4.2.3.1 app/views/spree/orders/_coupon_code.html.erb
spree_frontend-4.2.3 app/views/spree/orders/_coupon_code.html.erb
spree_frontend-4.2.2 app/views/spree/orders/_coupon_code.html.erb
spree_frontend-4.2.1 app/views/spree/orders/_coupon_code.html.erb
spree_frontend-4.2.0 app/views/spree/orders/_coupon_code.html.erb