foodsoft/app/views/tasks/_form.html.haml

37 lines
1.1 KiB
Text
Raw Normal View History

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/
= select(:task, :group_id, Group.find(:all, :conditions => "type != 'OrderGroup'", :order => 'name').collect {|g| [ g.name, g.id ] }, { :include_blank => true })
%p
%label{:for => "task_due_date"}
%b=_ 'Due date'
%br/
= date_select :task, :due_date, :start_year => 2007, :include_blank => true