Sha256: 6ba52273158e952ebb9bbfed5b4838b77cf3f3ddedca07caa68d5351bd117ebf

Contents?: true

Size: 884 Bytes

Versions: 1

Compression:

Stored size: 884 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 First Name
      %td= ring.first_name
    %tr
      %th Last Name
      %td= ring.last_name
    %tr
      %th Phone
      %td= ring.phone
    %tr
      %th Email
      %td= ring.email
    %tr
      %th Member Number
      %td= ring.owner.try(:membership).try(: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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
effective_products-0.0.2 app/views/admin/rings/_ring.html.haml