Sha256: 6ade5c9a36120da6f4897c545b582d69c4f36693ab9d863e0d89ca7d714930a6

Contents?: true

Size: 868 Bytes

Versions: 7

Compression:

Stored size: 868 Bytes

Contents

= card('Stamp Payment') do
  - stamp = stamp_wizard.stamp

  %table.table.table-sm
    %tbody
      - if request.path.start_with?('/admin')
        %tr
          %th Owner
          %td
            - url = (polymorphic_admin_path(stamp_wizard.owner) rescue "/admin/users/#{stamp_wizard.owner.to_param}/edit")
            = link_to(stamp_wizard.owner, url)
      - else
        %tr
          %th Owner
          %td= stamp_wizard.owner

      - if stamp_wizard.orders.present?
        %tr
          %th Order
          %td
            - stamp_wizard.orders.each do |order|
              = link_to(order, effective_orders.order_path(order))

      - if stamp_wizard.was_submitted?
        %tr
          %th Submitted
          %td= stamp_wizard.submitted_at.strftime('%F')

        %tr
          %th Issued
          %td= stamp.issued_at&.strftime('%F') || 'Not Issued'

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
effective_products-0.1.2 app/views/effective/stamp_wizards/_summary.html.haml
effective_products-0.1.1 app/views/effective/stamp_wizards/_summary.html.haml
effective_products-0.1.0 app/views/effective/stamp_wizards/_summary.html.haml
effective_products-0.0.9 app/views/effective/stamp_wizards/_summary.html.haml
effective_products-0.0.8 app/views/effective/stamp_wizards/_summary.html.haml
effective_products-0.0.7 app/views/effective/stamp_wizards/_summary.html.haml
effective_products-0.0.6 app/views/effective/stamp_wizards/_summary.html.haml