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