foodsoft/app/views/tasks/show.haml

36 lines
1 KiB
Text
Raw Normal View History

2009-01-06 11:49:19 +01:00
- title _('Task in detail')
= render :partial => "nav"
#task{:style => 'width:70%'}
%table
%tr
%td{:style => "width: 10em"}= _'Name'
%td
%b= @task.name
%tr
%td{:style => "vertical-align:top;"}=_ 'Description'
%td= simple_format(@task.description)
%tr
%td=_ 'Due date'
%td= format_date(@task.due_date)
%tr
%td=_ 'Responsible people'
%td= render :partial => "assignments"
%tr
%td=_ 'Group'
%td
- if @task.workgroup
= link_to @task.workgroup.name, :action => "workgroup", :id => @task.workgroup
2009-01-06 11:49:19 +01:00
%tr
%td{:colspan => "2"}
%div{:style => "float:left"}=_ 'Done'
- form_for :task, :url => {:action => "update_status", :id => @task} do |f|
= f.check_box :done, {:onchange => "submit()"}
%p
= link_to _('Edit'), :action => "edit", :id => @task
|
= link_to _('Delete'), {:action => "destroy", :id => @task}, :method => "post", :confirm => _('Delete the task?')