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
|
|
@ -1,11 +1,18 @@
|
|||
- form_for [:admin, @ordergroup] do |@form|
|
||||
= render :partial => 'shared/group_form'
|
||||
|
||||
%div{:style => "float:left;width:55%;"}
|
||||
%p
|
||||
= @form.label :actual_size, "Aktuelle Gruppengröße"
|
||||
%br/
|
||||
= @form.text_field :actual_size, :size => 3
|
||||
- render :layout => 'shared/group_form' do
|
||||
%div{:style => "float:right;width:40%"}
|
||||
%p
|
||||
= @form.label :contact_person
|
||||
%br/
|
||||
= @form.text_field :contact_person, :size => 20
|
||||
%p
|
||||
= @form.label :contact_phone
|
||||
%br/
|
||||
= @form.text_field :contact_phone, :size => 20
|
||||
%p
|
||||
= @form.label :contact_address
|
||||
%br/
|
||||
= @form.text_field :contact_address
|
||||
|
||||
%br{ :style => "clear:both" }
|
||||
= submit_tag "Speichern"
|
||||
|
|
|
|||
|
|
@ -10,12 +10,16 @@
|
|||
%thead
|
||||
%tr
|
||||
%th Name
|
||||
%th Kontakt
|
||||
%th Adresse
|
||||
%th Mitglieder
|
||||
%th
|
||||
%tbody
|
||||
- for ordergroup in @ordergroups
|
||||
%tr{:class => cycle('even','odd', :name => 'groups')}
|
||||
%td= link_to ordergroup.name, [:admin, ordergroup]
|
||||
%td= ordergroup.contact
|
||||
%td= link_to_gmaps ordergroup.contact_address
|
||||
%td= ordergroup.users.size
|
||||
%td
|
||||
= link_to image_tag('b_users.png', :size => '16x16', :border => "0", :alt => 'Mitlglieder bearbeiten'), memberships_admin_ordergroup_path(ordergroup)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue