Moved User.address-info into Ordergroup.contact_... attributes. Updated model-fixtures for testing.
This commit is contained in:
parent
aa47a24fda
commit
0a2a79237a
60 changed files with 466 additions and 443 deletions
|
|
@ -13,14 +13,14 @@
|
|||
%thead
|
||||
%tr
|
||||
%th= sort_link_helper _("Name"), "name", @per_page
|
||||
%th= sort_link_helper _("Size of group"), "size", @per_page
|
||||
%th Kontakt
|
||||
%th= sort_link_helper _("Account balance"), "account_balance", @per_page
|
||||
%th
|
||||
%tbody
|
||||
- for group in @groups
|
||||
%tr{:class => cycle('even','odd', :name => 'groups')}
|
||||
%td= group.name
|
||||
%td= group.actual_size
|
||||
%td= group.contact
|
||||
%td{:class => "currency", :style => "width:5em"}= number_to_currency(group.account_balance)
|
||||
%td{:class => "actions"}
|
||||
= link_to image_tag("euro_new.png", :size => "16x16", :alt => _("New transaction"), :border => "0"), {:action => 'new', :id => group}, {:title => _("New transaction")}
|
||||
|
|
|
|||
|
|
@ -23,4 +23,4 @@
|
|||
= render :partial => "ordergroups"
|
||||
%br/
|
||||
- if @current_user.role_admin?
|
||||
= link_to _("New ordergroup"), :controller => 'admin', :action => 'newOrdergroup'
|
||||
= link_to "Neue Bestellgruppe anlegen", new_admin_ordergroup_path
|
||||
Loading…
Add table
Add a link
Reference in a new issue