Sha256: 50fcbf7075dc0913875d64c470949c5ea7effadacf37b8a046eb65312ff54f8e

Contents?: true

Size: 1.15 KB

Versions: 7

Compression:

Stored size: 1.15 KB

Contents

%table.table
  %tbody
    %tr
      %th Owner
      %td
        - url = (edit_polymorphic_path(stamp.owner) rescue "/admin/users/#{stamp.owner.to_param}/edit")
        = link_to(stamp.owner, url)

    %tr
      %th Purchased Order
      %td
        - if stamp.purchased_order.present?
          = link_to(stamp.purchased_order, effective_orders.admin_order_path(stamp.purchased_order))

    %tr
      %th Contact
      %td
        - owner = stamp.owner

        = owner.to_s

        - if owner.try(:email).present?
          %br
          = mail_to(owner.email)

        - if owner.try(:phone).present?
          %br
          = owner.phone

        - if owner.try(:membership).try(:number).present?
          %br
          Member Number #{owner.membership.number}

    %tr
      %th
      %td= stamp.physical? ? 'Physical' : 'Digital Only'

    - if stamp.shipping_address.present?
      %tr
        %th Address
        %td= stamp.shipping_address.to_html

    %tr
      %th Name on Stamp
      %td= stamp.name

    %tr
      %th Name Confirmation
      %td= stamp.name_confirmation

    %tr
      %th Issued At
      %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/admin/stamps/_stamp.html.haml
effective_products-0.1.1 app/views/admin/stamps/_stamp.html.haml
effective_products-0.1.0 app/views/admin/stamps/_stamp.html.haml
effective_products-0.0.9 app/views/admin/stamps/_stamp.html.haml
effective_products-0.0.8 app/views/admin/stamps/_stamp.html.haml
effective_products-0.0.7 app/views/admin/stamps/_stamp.html.haml
effective_products-0.0.6 app/views/admin/stamps/_stamp.html.haml