Sha256: 75c73530ebc090b0a652c76246e40be9dbd5ca0593a973101eaf3cf66bb56a83

Contents?: true

Size: 1.83 KB

Versions: 34

Compression:

Stored size: 1.83 KB

Contents

.panel
  %h3= "Order ##{order.to_param} Details"
  .panel_contents
    .attributes_table
      %table
        %tbody
          %tr
            %th order
            %td= "##{order.to_param}"
          %tr
            %th buyer
            %td= link_to order.user, admin_user_path(order.user)
          %tr
            %th purchase state
            %td= order.purchase_state
          - if order.purchased?
            %tr
              %th purchased
              %td= order.purchased_at.strftime("%Y-%m-%d %H:%M")
          - if order.billing_address.present?
            %tr
              %th billing address
              %td= order.billing_address.to_html
          - if order.shipping_address.present?
            %tr
              %th shipping address
              %td= order.shipping_address.to_html

.panel
  %h3 Order Items
  .panel_contents
    .attributes_table
      - has_seller = order.purchased?(:stripe_connect)
      %table.table
        %thead
          %tr
            %th Items
            %th Price
            - if has_seller
              %th Seller
        %tbody
          - order.order_items.each do |item|
            %tr
              %td
                - if item.quantity > 1
                  = "#{item.quantity}x "
                = item.title
              %td= price_to_currency(item.subtotal)
              - if has_seller
                %td= link_to item.seller.user, admin_user_path(item.seller.user)
        %tfoot
          %tr
            %th Subtotal
            %td= price_to_currency(order.subtotal)
          %tr
            %th Tax
            %td= price_to_currency(order.tax)
          %tr
            %th Total
            %td= price_to_currency(order.total)

- if order.payment.present?
  .panel
    %h3 Payment
    .panel_contents
      .attributes_table
        = order_payment_to_html(order) rescue order.payment



Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
effective_orders-1.4.1 app/views/active_admin/effective_orders/orders/_show.html.haml
effective_orders-1.4.0 app/views/active_admin/effective_orders/orders/_show.html.haml
effective_orders-1.3.13 app/views/active_admin/effective_orders/orders/_show.html.haml
effective_orders-1.3.12 app/views/active_admin/effective_orders/orders/_show.html.haml
effective_orders-1.3.11 app/views/active_admin/effective_orders/orders/_show.html.haml
effective_orders-1.3.10 app/views/active_admin/effective_orders/orders/_show.html.haml
effective_orders-1.3.9 app/views/active_admin/effective_orders/orders/_show.html.haml
effective_orders-1.3.8 app/views/active_admin/effective_orders/orders/_show.html.haml
effective_orders-1.3.7 app/views/active_admin/effective_orders/orders/_show.html.haml
effective_orders-1.3.6 app/views/active_admin/effective_orders/orders/_show.html.haml
effective_orders-1.3.5 app/views/active_admin/effective_orders/orders/_show.html.haml
effective_orders-1.3.4 app/views/active_admin/effective_orders/orders/_show.html.haml
effective_orders-1.3.3 app/views/active_admin/effective_orders/orders/_show.html.haml
effective_orders-1.3.2 app/views/active_admin/effective_orders/orders/_show.html.haml
effective_orders-1.3.1 app/views/active_admin/effective_orders/orders/_show.html.haml
effective_orders-1.3.0 app/views/active_admin/effective_orders/orders/_show.html.haml
effective_orders-1.2.13 app/views/active_admin/effective_orders/orders/_show.html.haml
effective_orders-1.2.12 app/views/active_admin/effective_orders/orders/_show.html.haml
effective_orders-1.2.11 app/views/active_admin/effective_orders/orders/_show.html.haml
effective_orders-1.2.10 app/views/active_admin/effective_orders/orders/_show.html.haml