Sha256: fd7e8bce5226584c0675799f561b8657338881da8032c18e7fcd1a0ed8e62e8a
Contents?: true
Size: 1.45 KB
Versions: 6
Compression:
Stored size: 1.45 KB
Contents
- @page_title = t('tienda.orders.orders') .row .col-md-12 %h1.page-header = t('tienda.orders.orders') %small= page_entries_info @orders / /. ROW .row .col-md-12 %p.pull-right = link_to t('tienda.orders.new_order'), :new_order, class: 'btn btn-primary' = link_to t('tienda.orders.search_orders'), '#', class: 'btn btn-default', rel: 'searchOrders' = render 'search_form' .panel.panel-default .panel-heading Listing orders .panel-body %table.table.table-hover %thead %tr %th= t('tienda.orders.number') %th= t('tienda.orders.customer') %th= t('tienda.orders.status') %th= t('tienda.orders.products') %th= t('tienda.orders.total') %th= t('tienda.orders.payment') %tbody - if @orders.empty? %tr.empty %td{colspan: 6}= t('tienda.orders.no_orders') - else - for order in @orders %tr %td= link_to order.number, order %td= order.customer_name %td= status_tag order.status %td %ul - for item in order.order_items %li #{item.quantity} x #{item.ordered_item.full_name} %td= number_to_currency order.total %td= boolean_tag order.paid_in_full?, nil, true_text: number_to_currency(order.amount_paid), false_text: number_to_currency(order.amount_paid) = paginate @orders
Version data entries
6 entries across 6 versions & 1 rubygems