Sha256: 5242fb11700f7cca2c6067dc01e70131529c4f2bffd36de35ae521ef5fb45f21

Contents?: true

Size: 1006 Bytes

Versions: 23

Compression:

Stored size: 1006 Bytes

Contents

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

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

    %tr
      %th Contact
      %td
        - owner = ring.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 Address
      %td= ring.shipping_address.to_html

    %tr
      %th Size
      %td= ring.size

    %tr
      %th Metal
      %td= ring.metal

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

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
effective_products-0.3.10 app/views/admin/rings/_ring.html.haml
effective_products-0.3.9 app/views/admin/rings/_ring.html.haml
effective_products-0.3.8 app/views/admin/rings/_ring.html.haml
effective_products-0.3.7 app/views/admin/rings/_ring.html.haml
effective_products-0.3.6 app/views/admin/rings/_ring.html.haml
effective_products-0.3.5 app/views/admin/rings/_ring.html.haml
effective_products-0.3.4 app/views/admin/rings/_ring.html.haml
effective_products-0.3.3 app/views/admin/rings/_ring.html.haml
effective_products-0.3.2 app/views/admin/rings/_ring.html.haml
effective_products-0.3.1 app/views/admin/rings/_ring.html.haml
effective_products-0.3.0 app/views/admin/rings/_ring.html.haml
effective_products-0.2.1 app/views/admin/rings/_ring.html.haml
effective_products-0.2.0 app/views/admin/rings/_ring.html.haml
effective_products-0.1.2 app/views/admin/rings/_ring.html.haml
effective_products-0.1.1 app/views/admin/rings/_ring.html.haml
effective_products-0.1.0 app/views/admin/rings/_ring.html.haml
effective_products-0.0.9 app/views/admin/rings/_ring.html.haml
effective_products-0.0.8 app/views/admin/rings/_ring.html.haml
effective_products-0.0.7 app/views/admin/rings/_ring.html.haml
effective_products-0.0.6 app/views/admin/rings/_ring.html.haml