Browse Source

Move set task done button to progress column

pull/64/head
Nafies Luthfi 5 years ago
parent
commit
59041ca736
  1. 7
      resources/views/jobs/partials/job-tasks.blade.php

7
resources/views/jobs/partials/job-tasks.blade.php

@ -31,8 +31,9 @@
<div>{{ $task->name }}</div>
<div class="small text-info">{!! nl2br($task->description) !!}</div>
</td>
<td class="text-center">{{ $task->progress }} %</td>
<td class="text-center">
{{ $task->progress }} %
@can('update', $task)
@if ($task->progress < 100)
{!! FormField::formButton(['route' => ['tasks.set_done', $task], 'method' => 'patch'],
@ -44,6 +45,10 @@
]
) !!}
@endif
@endcan
</td>
<td class="text-center">
@can('update', $task)
{!! html_link_to_route('jobs.show', '', [
$job,
'action' => 'task_edit',

Loading…
Cancel
Save