Some fixes for task module.
This commit is contained in:
parent
a4f71bd672
commit
6c98c7c755
6 changed files with 24 additions and 15 deletions
|
|
@ -1,6 +1,6 @@
|
|||
- for group in Group.find :all, :conditions => "type != 'Ordergroup'"
|
||||
%h4= link_to_function group.name, "Element.toggle('workgroup_#{group.id}')"
|
||||
%ul{:style => "display:none"}[group]
|
||||
- for user in group.users.find :all, :order => "nick"
|
||||
%li= user.nick + " (#{user.ordergroup.name if user.ordergroup})"
|
||||
- for workgroup in Workgroup.all
|
||||
%h4= link_to workgroup.name, "#", 'data-toggle_this' => "#workgroup_#{workgroup.id}"
|
||||
%ul{:style => "display:none"}[workgroup]
|
||||
- for user in workgroup.users.order("nick")
|
||||
%li= "#{user.nick} (#{user.ordergroup.try(:name)})"
|
||||
|
||||
|
|
@ -11,7 +11,7 @@
|
|||
= f.input :name
|
||||
= f.input :description
|
||||
= f.input :duration, :as => :select, :collection => 1..3
|
||||
= f.input :user_list, :as => :string, :input_html => { 'data-pre' => @task.users.map { |u| {:id => u.id, :name => u.nick} }.to_json }
|
||||
= f.input :user_list, :as => :string, :input_html => { 'data-pre' => @task.users.map { |u| u.token_attributes }.to_json }
|
||||
= f.input :required_users
|
||||
= f.association :workgroup
|
||||
= f.input :due_date, :include_blank => true
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue