2009-02-06 20:51:14 +01:00
|
|
|
= form.error_messages
|
2009-01-06 11:49:19 +01:00
|
|
|
%p
|
2009-02-06 20:51:14 +01:00
|
|
|
%b= form.label :name
|
2009-01-06 11:49:19 +01:00
|
|
|
%br/
|
2009-02-06 20:51:14 +01:00
|
|
|
= form.text_field :name
|
2009-01-06 11:49:19 +01:00
|
|
|
%p
|
2009-02-06 20:51:14 +01:00
|
|
|
%b= form.label :description
|
2009-01-06 11:49:19 +01:00
|
|
|
%br/
|
2009-02-06 20:51:14 +01:00
|
|
|
= form.text_area :description, :cols => 50, :rows => 10
|
2009-01-06 11:49:19 +01:00
|
|
|
%p
|
2009-02-06 20:51:14 +01:00
|
|
|
%b= form.label :user
|
2009-01-06 11:49:19 +01:00
|
|
|
%small=_ 'tasks can have multiple assignments'
|
|
|
|
/%br/
|
|
|
|
/= render :partial => "assignments"
|
|
|
|
%p
|
|
|
|
%small=_ 'use commas to seperate the names'
|
|
|
|
%br/
|
|
|
|
= text_field_with_auto_complete :task, :user_list, {}, {:tokens => ","}
|
|
|
|
%p
|
2009-02-06 20:51:14 +01:00
|
|
|
%b= form.label :required_users, "How many users are altogether required?"
|
2009-01-06 11:49:19 +01:00
|
|
|
%br/
|
2009-02-06 20:51:14 +01:00
|
|
|
= form.text_field :required_users, :size => 3
|
2009-01-06 11:49:19 +01:00
|
|
|
%p
|
2009-02-06 20:51:14 +01:00
|
|
|
%b= form.label :workgroup
|
2009-01-06 11:49:19 +01:00
|
|
|
%br/
|
2009-02-06 20:51:14 +01:00
|
|
|
= form.select :workgroup_id, Workgroup.all(:order => 'name').collect {|g| [ g.name, g.id ] }, { :include_blank => true }
|
2009-01-06 11:49:19 +01:00
|
|
|
%p
|
2009-02-06 20:51:14 +01:00
|
|
|
%b= form.label :due_date
|
2009-01-06 11:49:19 +01:00
|
|
|
%br/
|
2009-02-06 20:51:14 +01:00
|
|
|
= form.date_select :due_date, :start_year => 2007, :include_blank => true
|