Sha256: d92a4922e799e9f5b31c3dbf54e8a361b2ec1a5dba33a7a627c7159457b0cd45

Contents?: true

Size: 718 Bytes

Versions: 9

Compression:

Stored size: 718 Bytes

Contents

#comable-order
  .comable-payment
    h1
      = @order.class.human_state_name(:payment)

    = form_for @order, as: :order, url: update_order_path, method: :put do |f|
      - payment = @order.payment || @order.build_payment
      = f.fields_for :payment, payment do |ff|
        ul
          - Comable::PaymentMethod.all.each.with_index do |payment_method, index|
            li
              - checked_flag = payment.payment_method ? (payment.payment_method == payment_method) : index.zero?
              = ff.radio_button :payment_method_id, payment_method.id, checked: checked_flag
              = ff.label :payment_method_id, payment_method.name, value: payment_method.id
      = f.submit Comable.t('next_step')

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
comable-frontend-0.7.1 app/views/comable/orders/payment.slim
comable-frontend-0.7.0 app/views/comable/orders/payment.slim
comable-frontend-0.7.0.beta2 app/views/comable/orders/payment.slim
comable-frontend-0.7.0.beta1 app/views/comable/orders/payment.slim
comable-frontend-0.6.0 app/views/comable/orders/payment.slim
comable_frontend-0.5.0 app/views/comable/orders/payment.slim
comable_frontend-0.4.2 app/views/comable/orders/payment.slim
comable_frontend-0.4.1 app/views/comable/orders/payment.slim
comable_frontend-0.4.0 app/views/comable/orders/payment.slim