Commit 87de8006 authored by PedroLopesUPE's avatar PedroLopesUPE
Browse files

Adição de botão para baixar PAD de cada professor. Visão de avaliador

Usando rota user-pad-pdf de UserPadController.
parent 47114de8
...@@ -888,6 +888,7 @@ class PadController extends Controller ...@@ -888,6 +888,7 @@ class PadController extends Controller
if($professor->ch_ensino || $professor->ch_pesquisa || $professor->ch_extensao || $professor->ch_gestao ) { if($professor->ch_ensino || $professor->ch_pesquisa || $professor->ch_extensao || $professor->ch_gestao ) {
$professor->status = "Enviado"; $professor->status = "Enviado";
$professor->pad_id = $userPad->{'id'};
} }
} }
......
{{-- {{--
@include('components.buttons.btn-download', [ @include('components.buttons.btn-download', [
'id' => '',
'route' => '', 'route' => '',
'id' => '',
'content' => '' 'content' => ''
]) ])
--}} --}}
......
...@@ -80,6 +80,7 @@ ...@@ -80,6 +80,7 @@
<th scope='col'>CH Extensão</th> <th scope='col'>CH Extensão</th>
<th scope='col'>CH Gestão</th> <th scope='col'>CH Gestão</th>
<th scope='col'>Campus</th> <th scope='col'>Campus</th>
<th scope='col'></th>
</tr> </tr>
</thead> </thead>
...@@ -97,6 +98,13 @@ ...@@ -97,6 +98,13 @@
<td>{{$professor->ch_gestao}}</td> <td>{{$professor->ch_gestao}}</td>
<td>{{$professor->campus}}</td> <td>{{$professor->campus}}</td>
<td>
@include('components.buttons.btn-download', [
'route' => route('user-pad_pdf', ['user_pad_id' => $professor->pad_id]),
'id' => '',
'content' => ''
])
</td>
</tr> </tr>
@php $index += 1 @endphp @php $index += 1 @endphp
@endif @endif
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment