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
|
|
@ -2,16 +2,16 @@
|
|||
%tr
|
||||
%td Beschreibung:
|
||||
%td=h group.description
|
||||
- if @current_user.role_admin? or @current_user.role_finance?
|
||||
%tr
|
||||
%td Kontakt:
|
||||
%td=h group.contact
|
||||
%tr
|
||||
%td Adresse:
|
||||
%td= link_to_gmaps group.contact_address
|
||||
%tr
|
||||
%td Gruppe hat Zugriff auf:
|
||||
%td
|
||||
- roles = Array.new
|
||||
- roles << 'Administration' if group.role_admin?
|
||||
- roles << 'Finanzen' if group.role_finance?
|
||||
- roles << 'Lieferanten' if group.role_suppliers?
|
||||
- roles << 'Artikel' if group.role_article_meta?
|
||||
- roles << 'Bestellungsverwaltung' if group.role_orders?
|
||||
= roles.join(', ')
|
||||
%td= format_roles(group)
|
||||
%tr
|
||||
%td Mitglieder:
|
||||
%td
|
||||
|
|
|
|||
|
|
@ -21,10 +21,6 @@
|
|||
<td><%= @form.label :phone %></td>
|
||||
<td><%= @form.text_field :phone %></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><%= @form.label :address %></td>
|
||||
<td><%= @form.text_field :address %></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td/>
|
||||
</tr>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue