finish ordergroups and orders i18n + controller

This commit is contained in:
wvengen 2013-02-08 01:52:20 +01:00
parent d818ea5d53
commit e06524ca37
14 changed files with 185 additions and 84 deletions

View file

@ -2,10 +2,10 @@
%table.table.table-striped
%thead
%tr
%th= sort_link_helper "Lieferantin", "supplier"
%th Start
%th= sort_link_helper "Ende", "ends"
%th Status
%th= sort_link_helper t('.supplier'), "supplier"
%th= t '.start'
%th= sort_link_helper t('.ending'), "ends"
%th= t '.status'
%th{:colspan => "2"}
%tbody
- @orders.each do |order|
@ -14,4 +14,4 @@
%td= format_time(order.starts)
%td= format_time(order.ends)
%td= t(order.state, scope: 'orders.state')
%td= link_to "Anzeigen", order, class: 'btn btn-small'
%td= link_to t('ui.show'), order, class: 'btn btn-small'