Show accept/reject button in task show view.
This commit is contained in:
parent
807d476e44
commit
d954279d6a
1 changed files with 4 additions and 0 deletions
|
@ -20,6 +20,10 @@
|
||||||
- if @task.workgroup
|
- if @task.workgroup
|
||||||
= link_to @task.workgroup.name, workgroup_tasks_path(workgroup_id: @task.workgroup_id)
|
= link_to @task.workgroup.name, workgroup_tasks_path(workgroup_id: @task.workgroup_id)
|
||||||
%p
|
%p
|
||||||
|
- if !@task.is_accepted?(current_user)
|
||||||
|
= link_to "Aufgabe übernehmen", accept_task_path(@task), method: :post, class: 'btn btn-success'
|
||||||
|
- if @task.is_assigned?(current_user)
|
||||||
|
= link_to "Aufgabe ablehnen", reject_task_path(@task), method: :post, class: 'btn'
|
||||||
- unless @task.done?
|
- unless @task.done?
|
||||||
= link_to 'Als erledigt markieren', set_done_task_path(@task), method: :post, class: 'btn'
|
= 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 "Bearbeiten", edit_task_path(@task), class: 'btn'
|
||||||
|
|
Loading…
Reference in a new issue