2009-02-06 20:51:14 +01:00
|
|
|
- title "Aufgabe im Detail"
|
2012-10-08 21:52:03 +02:00
|
|
|
- content_for :sidebar do
|
|
|
|
= render 'nav'
|
|
|
|
|
|
|
|
%section
|
|
|
|
%dl.dl-horizontal
|
|
|
|
%dt Name
|
|
|
|
%dd= @task.name
|
|
|
|
%dt Beschreibung
|
|
|
|
%dd= simple_format(@task.description)
|
|
|
|
%dt Fälligkeitsdatum
|
|
|
|
%dd= format_date(@task.due_date)
|
|
|
|
%dt Dauer in Stunden
|
|
|
|
%dd= @task.duration
|
|
|
|
%dt Verantwortliche Menschen
|
|
|
|
%dd= task_assignments(@task)
|
|
|
|
%dt Arbeitsgruppe
|
|
|
|
%dd
|
|
|
|
- if @task.workgroup
|
|
|
|
= link_to @task.workgroup.name, workgroup_tasks_path(workgroup_id: @task.workgroup_id)
|
2009-01-06 11:49:19 +01:00
|
|
|
|
|
|
|
%p
|
2012-10-08 21:52:03 +02:00
|
|
|
- unless @task.done?
|
|
|
|
= link_to 'Als erledigt markieren', set_done_task_path(@task), method: :post, class: 'btn'
|
|
|
|
= link_to "Bearbeiten", edit_task_path(@task), class: 'btn'
|
|
|
|
= link_to "Löschen", task_path(@task), :method => :delete, :confirm => "Die Aufgabe wirklich löschen?",
|
|
|
|
class: 'btn btn-danger'
|