Sha256: 61c7d2d296623f69cac250c0b594f0d5af6b94a7d74256dac90811e19377520e
Contents?: true
Size: 1.29 KB
Versions: 4
Compression:
Stored size: 1.29 KB
Contents
- @page_title = t('tienda.orders.orders') = content_for :header do %p.buttons = link_to t('tienda.orders.new_order'), :new_order, :class => 'button green' = link_to t('tienda.orders.search_orders'), '#', :class => 'button', :rel => 'searchOrders' %h2.orders = t('tienda.orders.orders') %span= page_entries_info @orders = render 'search_form' .table %table.data %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
4 entries across 4 versions & 1 rubygems