Sha256: 55e89e0a859b13fa2c72f90385315f6c6492a7ae71226514e9d721ceb3c9646f

Contents?: true

Size: 1.49 KB

Versions: 1

Compression:

Stored size: 1.49 KB

Contents

= form_for @payment, as: :payment, url: payments_transaction_path(:id => @payment.payment_token), html: {class: "form-horizontal payment_form", id: "payment_form" } do |f|
  input name="payment[payment_type_id]" ng-model="payment.payment_type_id" type="hidden" value="{{payment.payment_type_id}}"

  .payment_item
    label Select currency:
    .radio_currency
      .radio_buttons.radio_paper.radio_price buttonset="exchange_rates"
        input[
          ng-repeat-start="rate in exchange_rates"
          id="currency_{{rate.currency}}" 
          value="{{rate.currency}}"
          ng-value="rate"
          name="payment[currency]"
          type="radio"
          ng-model="payment.exchange_rate"] 

        label for="currency_{{rate.currency}}" ng-repeat-end=""
          | {{rate.currency}}

  .payment_item
    label Select method:
    .radio_method
      .radio_buttons.radio_money.radio_payment buttonset="payment_types"
        input[
          ng-repeat-start="item in payment_types"
          id="payment_type_{{item.id}}" 
          value="{{item.id}}"
          ng-value="item"
          name="payment[payment_type]"
          type="radio"
          ng-model="payment.payment_type"] 

        label for="payment_type_{{item.id}}" class="{{item.code}}" ng-repeat-end=""
          | {{item.title}}

  .payment_view
    span 
      | {{formatValue(payment.total)}}

    = f.submit "Proceed to safe payment", class: "button yellow small", ng_click: "submit($event)", ng_class: "{pp_express: paypalExpress}"

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
translation_cms-0.1.5 app/views/payments/transactions/_form.html.slim