Moved foodcoop/workgroups into new namespace foodcoop. Closes #20

This commit is contained in:
Benjamin Meichsner 2009-08-02 18:42:52 +02:00
parent 1a8026c5a7
commit 0d910dfbbd
13 changed files with 196 additions and 38 deletions

View file

@ -1,14 +0,0 @@
.single_column{:style => "width:55em"}
.box_title
%h2= workgroup.name
.column_content
= render :partial => 'shared/group', :locals => { :group => workgroup }
%p
= link_to "Alle Aufgaben zeigen", :controller => "tasks", :action => "workgroup", :id => workgroup
|
= link_to "Mitgliedern eine Nachricht schicken", :controller => 'messages', :action => 'group', :id => workgroup
- if workgroup.member?(@current_user)
|
= link_to "Gruppe bearbeiten", :action => "edit_group", :id => workgroup
|
= link_to "Mitglieder bearbeiten", :action => "memberships", :id => workgroup

View file

@ -1 +0,0 @@
<%= render :partial => 'shared/memberships/members' %>

View file

@ -0,0 +1,14 @@
.single_column{:style => "width:55em"}
.box_title
%h2= workgroup.name
.column_content
= render :partial => 'shared/group', :locals => { :group => workgroup }
%p
= link_to "Alle Aufgaben zeigen", :controller => "/tasks", :action => "workgroup", :id => workgroup
|
= link_to "Mitgliedern eine Nachricht schicken", :controller => '/messages', :action => 'group', :id => workgroup
- if workgroup.member?(@current_user)
|
= link_to "Gruppe bearbeiten", edit_foodcoop_workgroup_path(workgroup)
|
= link_to "Mitglieder bearbeiten", memberships_foodcoop_workgroup_path(workgroup)

View file

@ -3,13 +3,14 @@
%p
%i
Mitglieder kannst du
= link_to "hier", :action => "memberships", :id => @group
= link_to "hier", :action => "memberships", :id => @workgroup
hinzufügen.
.edit_form{:style => "width:35em"}
- form_for(@group, :url => {:action => 'update_group', :id => @group}) do |@form|
- form_for [:foodcoop, @workgroup] do |@form|
= render :partial => "shared/group_form"
%p{:style => "clear:both"}
= submit_tag 'Speichern'
|
= link_to "Abbrechen", :action => "workgroups"
= link_to "Abbrechen", foodcoop_workgroups_path

View file

@ -6,7 +6,7 @@
%br/
Wenn du einer Gruppe beitreten willst, dann schreib doch den Mitgliedern eine Nachricht.
= render :partial => "workgroup", :collection => @groups
= render :partial => "workgroup", :collection => @workgroups

View file

@ -0,0 +1 @@
= render "shared/memberships/members"