foodsoft/app/views/tasks/show.haml

39 lines
1.1 KiB
Text
Raw Normal View History

- title "Aufgabe im Detail"
2009-01-06 11:49:19 +01:00
= render :partial => "nav"
#task{:style => 'width:70%'}
%table
%tr
%td{:style => "width: 10em"} Name
2009-01-06 11:49:19 +01:00
%td
%b= @task.name
%tr
%td{:style => "vertical-align:top;"} Beschreibung
2009-01-06 11:49:19 +01:00
%td= simple_format(@task.description)
%tr
%td Fälligkeitsdatum
2009-01-06 11:49:19 +01:00
%td= format_date(@task.due_date)
%tr
%td Dauer in Stunden
%td= @task.duration
2009-01-06 11:49:19 +01:00
%tr
%td Verantwortliche Menschen
2011-05-14 19:02:52 +02:00
%td= task_assignments(@task)
2009-01-06 11:49:19 +01:00
%tr
%td Arbeitsgruppe
2009-01-06 11:49:19 +01:00
%td
- if @task.workgroup
= link_to @task.workgroup.name, workgroup_tasks_path(workgroup_id: @task.workgroup_id)
2009-01-06 11:49:19 +01:00
%tr
%td{:colspan => "2"}
%div{:style => "float:left"} Als erledigt markieren
2009-01-06 11:49:19 +01:00
- form_for :task, :url => {:action => "update_status", :id => @task} do |f|
= f.check_box :done, {:onchange => "submit()", :title => "Die Aufgabe wandert in das Archiv"}
2009-01-06 11:49:19 +01:00
%p
2010-06-10 23:25:13 +02:00
= link_to "Bearbeiten", edit_task_path(@task)
2009-01-06 11:49:19 +01:00
|
2010-06-10 23:25:13 +02:00
= link_to "Löschen", task_path(@task), :method => :delete, :confirm => "Die Aufgabe wirklich löschen?"