Fixed admin, orders, wiki views. Converted all erb to haml.

This commit is contained in:
benni 2012-10-15 21:19:17 +02:00
parent 699fb9b233
commit 552c553b77
169 changed files with 1158 additions and 1307 deletions

View file

@ -1,5 +1,5 @@
.legend
%table.legend{:style => "margin-bottom:1em"}
%table.table.table-hover
%thead
%tr
%th{:style => "width:40%"} Name
%th
@ -11,11 +11,11 @@
%th Einheit
%th Gesamtpreis
- for group_order in order.group_orders.all
%table{:style => "margin-bottom:1em"}
- for group_order in order.group_orders.all
%thead
%tr
%th{:colspan => "6"}=h group_order.ordergroup.name
%th{:colspan => "6"}
%h4= group_order.ordergroup.name
%tbody
- total = 0
- for goa in group_order.group_order_articles.ordered.all(:include => :order_article)
@ -33,4 +33,6 @@
%tr{:class => cycle('even', 'odd', :name => 'articles')}
%th{:colspan => "5"} Summe
%th= number_to_currency(total)
%tr
%th(colspan="6")
- reset_cycle("articles")