2009-02-06 20:51:14 +01:00
|
|
|
- title "Aufgabe im Detail"
|
2009-01-06 11:49:19 +01:00
|
|
|
= render :partial => "nav"
|
|
|
|
|
|
|
|
#task{:style => 'width:70%'}
|
|
|
|
%table
|
|
|
|
%tr
|
2009-02-06 20:51:14 +01:00
|
|
|
%td{:style => "width: 10em"} Name
|
2009-01-06 11:49:19 +01:00
|
|
|
%td
|
|
|
|
%b= @task.name
|
|
|
|
%tr
|
2009-02-06 20:51:14 +01:00
|
|
|
%td{:style => "vertical-align:top;"} Beschreibung
|
2009-01-06 11:49:19 +01:00
|
|
|
%td= simple_format(@task.description)
|
|
|
|
%tr
|
2009-02-06 20:51:14 +01:00
|
|
|
%td Fälligkeitsdatum
|
2009-01-06 11:49:19 +01:00
|
|
|
%td= format_date(@task.due_date)
|
|
|
|
%tr
|
2009-02-06 20:51:14 +01:00
|
|
|
%td Verantwortliche Menschen
|
2009-01-06 11:49:19 +01:00
|
|
|
%td= render :partial => "assignments"
|
|
|
|
%tr
|
2009-02-06 20:51:14 +01:00
|
|
|
%td Arbeitsgruppe
|
2009-01-06 11:49:19 +01:00
|
|
|
%td
|
2009-01-15 12:14:01 +01:00
|
|
|
- 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"}
|
2009-02-06 20:51:14 +01:00
|
|
|
%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|
|
2009-02-06 20:51:14 +01:00
|
|
|
= 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?"
|