2009-01-06 11:49:19 +01:00
|
|
|
= error_messages_for "task"
|
|
|
|
%p
|
|
|
|
%label{:for => "task_name"}
|
|
|
|
%b=_ 'Subject'
|
|
|
|
%br/
|
|
|
|
= text_field :task, :name
|
|
|
|
%p
|
|
|
|
%label{:for => "task_description"}
|
|
|
|
%b=_ 'Description'
|
|
|
|
%br/
|
|
|
|
= text_area :task, :description, :cols => 50, :rows => 10
|
|
|
|
%p
|
|
|
|
%label{:for => "task_user"}
|
|
|
|
%b=_ 'Responsible people'
|
|
|
|
%small=_ 'tasks can have multiple assignments'
|
|
|
|
/%br/
|
|
|
|
/= render :partial => "assignments"
|
|
|
|
%p
|
|
|
|
%small=_ 'use commas to seperate the names'
|
|
|
|
%br/
|
|
|
|
/= text_field_with_auto_complete :user, :nick, {}, {:tokens => ","}
|
|
|
|
= text_field_with_auto_complete :task, :user_list, {}, {:tokens => ","}
|
|
|
|
%p
|
|
|
|
%label{:for => "task_required_users"}
|
|
|
|
%b= _("How many users are altogether required?")
|
|
|
|
%br/
|
|
|
|
= text_field :task, :required_users, :size => 3
|
|
|
|
%p
|
|
|
|
%label{:for => "task_group"}
|
|
|
|
%b=_ 'Group'
|
|
|
|
%br/
|
2009-01-14 12:46:01 +01:00
|
|
|
= select(:task, :group_id, Group.find(:all, :conditions => "type != 'Ordergroup'", :order => 'name').collect {|g| [ g.name, g.id ] }, { :include_blank => true })
|
2009-01-06 11:49:19 +01:00
|
|
|
%p
|
|
|
|
%label{:for => "task_due_date"}
|
|
|
|
%b=_ 'Due date'
|
|
|
|
%br/
|
|
|
|
= date_select :task, :due_date, :start_year => 2007, :include_blank => true
|