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

Loading…
Cancel
Save