Sha256: 08e3af9763ac5af7ba374ee07df1e81d06b83f4916e2e92e3dc30bf0f73a47b4

Contents?: true

Size: 1.46 KB

Versions: 8

Compression:

Stored size: 1.46 KB

Contents

.comable-page
  .comable-page-heading
    ul.pull-right.list-inline
      li
        = link_to Comable.t('admin.actions.new'), comable.new_admin_payment_method_path, class: 'btn btn-default'

    h1.page-header
      = Comable.t('admin.nav.payment_method')
      small<
        | #{@payment_methods.total_count} #{Comable.t('admin.results')}

  .comable-page-body
    - if @payment_methods.empty?
      = Comable.t('admin.not_found')
    - else
      table.table.table-striped
        thead
          th
            = @payment_methods.klass.human_attribute_name(:name)
          th
            = @payment_methods.klass.human_attribute_name(:payment_provider)
          th
            = @payment_methods.klass.human_attribute_name(:enable_price)
        tbody
          - @payment_methods.each do |payment_method|
            tr
              td
                = link_to payment_method.name, comable.admin_payment_method_path(payment_method)
                /- unless payment_method.activated_flag
                /  span.fa.fa-eye-slash.text-muted<
              td
                = payment_method.payment_provider.display_name
              td
                - if payment_method.enable_price_from || payment_method.enable_price_to
                  span = number_to_currency payment_method.enable_price_from
                  span>< ~
                  span = number_to_currency payment_method.enable_price_to

      .text-center
        = paginate @payment_methods, theme: :comable_backend

Version data entries

8 entries across 8 versions & 2 rubygems

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