Sha256: cb7539dbffa8f68d105a8709728a1f35594241774af68e00a00517359dc814c1
Contents?: true
Size: 1.33 KB
Versions: 9
Compression:
Stored size: 1.33 KB
Contents
- @page_title = t('kkt_shoppe.orders.orders') = content_for :header do %p.buttons = link_to t('kkt_shoppe.orders.new_order'), :new_order, :class => 'button green' = link_to t('kkt_shoppe.orders.search_orders'), '#', :class => 'button', :rel => 'searchOrders' %h2.orders = t('kkt_shoppe.orders.orders') %span= page_entries_info @orders = render 'search_form' .table %table.data %thead %tr %th= t('kkt_shoppe.orders.number') %th= t('kkt_shoppe.orders.customer') %th= t('kkt_shoppe.orders.status') %th= t('kkt_shoppe.orders.products') %th= t('kkt_shoppe.orders.total') %th= t('kkt_shoppe.orders.payment') %tbody - if @orders.empty? %tr.empty %td{:colspan => 6}= t('kkt_shoppe.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
9 entries across 9 versions & 1 rubygems