foodsoft/app/views/tasks/show.haml

36 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 Verantwortliche Menschen
2009-01-06 11:49:19 +01:00
%td= render :partial => "assignments"
%tr
%td Arbeitsgruppe
2009-01-06 11:49:19 +01:00
%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"} 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
= link_to "Bearbeiten", :action => "edit", :id => @task
2009-01-06 11:49:19 +01:00
|
= link_to "Löschen", {:action => "destroy", :id => @task}, :method => "post", :confirm => "Die Aufgabe wirklich löschen?"