Sha256: 04bc73ba6b6f1fc0451cc2f4bd6277d42dc66bab2bd6522b57a2f949591efc0a

Contents?: true

Size: 1.37 KB

Versions: 9

Compression:

Stored size: 1.37 KB

Contents

section.row
  .col-sm-2
    .comable-flow-label
      .comable-flow-label-container
        label
          | #{payment.order.class.human_attribute_name(:payment_state)}:
        p
          = payment.human_state_name

  .col-sm-10
    ul.comable-flow
      li
        = content_tag :div, options_of_payment_badge_for(payment, state: :pending) do
          i.fa.fa-circle

      li
        = content_tag :div, options_of_payment_badge_for(payment, state: :ready) do
          i.fa.fa-check-circle

      li
        = content_tag :div, options_of_payment_badge_for(payment, state: :completed) do
          i.fa.fa-money

      - if payment.state?(:resumed)
        li
          = content_tag :div, options_of_payment_badge_for(payment, state: :resumed) do
            i.fa.fa-refresh

      - if payment.state?(:completed) || payment.state?(:resumed)
        li
          = link_to comable.cancel_payment_admin_order_path(payment.order), options_of_payment_badge_for(payment, state: :canceled).merge(method: :post) do
            i.fa.fa-close

      - if payment.state?(:canceled)
        li
          = content_tag :div, options_of_payment_badge_for(payment, state: :canceled) do
            i.fa.fa-close
        li
          = link_to comable.resume_payment_admin_order_path(payment.order), options_of_payment_badge_for(payment, state: :resumed).merge(method: :post) do
            i.fa.fa-refresh

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
comable-backend-0.7.1 app/views/comable/admin/orders/_payment_state.slim
comable-backend-0.7.0 app/views/comable/admin/orders/_payment_state.slim
comable-backend-0.7.0.beta2 app/views/comable/admin/orders/_payment_state.slim
comable-backend-0.7.0.beta1 app/views/comable/admin/orders/_payment_state.slim
comable-backend-0.6.0 app/views/comable/admin/orders/_payment_state.slim
comable_backend-0.5.0 app/views/comable/admin/orders/_payment_state.slim
comable_backend-0.4.2 app/views/comable/admin/orders/_payment_state.slim
comable_backend-0.4.1 app/views/comable/admin/orders/_payment_state.slim
comable_backend-0.4.0 app/views/comable/admin/orders/_payment_state.slim