Sha256: 6c9b4194abc4634058a8f4861de5cc0961674ba78d460c23b5a831de774b3c0d

Contents?: true

Size: 905 Bytes

Versions: 3

Compression:

Stored size: 905 Bytes

Contents

= render 'shopping_cart/checkout/checkout_form' do |f|
  .col-md-8
    .well#payment_fields
      %h3= t('checkout.credit_card')
      = f.simple_fields_for :credit_card_attributes do |cc|
        .row
          - [:first_name, :last_name].each do |name|
            .col-md-6
              = cc.input name,
                input_html: { value: @order.try(:credit_card).try(name) }
        .row
          .col-md-6
            = cc.input :number,
              input_html: { value: @order.try(:credit_card).try(:number) }
          .col-md-2
            = cc.input :cvv,
              input_html: { value: @order.try(:credit_card).try(:cvv), placeholder: '3 digits' }
          .col-md-2
            = cc.input :month, collection: 1..12, selected: 1
          .col-md-2
            = cc.input :year,
              collection: credit_card_available_years,
              selected: credit_card_selected_year

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
shopping-cart-0.1.2 app/views/shopping_cart/checkout/payment.html.haml
shopping-cart-0.1.1 app/views/shopping_cart/checkout/payment.html.haml
shopping-cart-0.1.0 app/views/shopping_cart/checkout/payment.html.haml