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

30 lines
837 B
Text
Raw Normal View History

= form.error_messages
2009-01-06 11:49:19 +01:00
%p
%b= form.label :name
2009-01-06 11:49:19 +01:00
%br/
= form.text_field :name
2009-01-06 11:49:19 +01:00
%p
%b= form.label :description
2009-01-06 11:49:19 +01:00
%br/
= form.text_area :description, :cols => 50, :rows => 10
2009-01-06 11:49:19 +01:00
%p
%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
%b= form.label :required_users, "How many users are altogether required?"
2009-01-06 11:49:19 +01:00
%br/
= form.text_field :required_users, :size => 3
2009-01-06 11:49:19 +01:00
%p
%b= form.label :workgroup
2009-01-06 11:49:19 +01:00
%br/
= 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
%b= form.label :due_date
2009-01-06 11:49:19 +01:00
%br/
= form.date_select :due_date, :start_year => 2007, :include_blank => true