Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Walter Felipe
pad-upe
Commits
87de8006
Commit
87de8006
authored
1 year ago
by
PedroLopesUPE
Browse files
Options
Download
Email Patches
Plain Diff
Adição de botão para baixar PAD de cada professor. Visão de avaliador
Usando rota user-pad-pdf de UserPadController.
parent
47114de8
main
dev-joao-pdf_generator
dump
feat_task_time
feat_template_calendar
fix_calendar_loading
fix_user_pad
text_fix
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
app/Http/Controllers/PadController.php
+1
-0
app/Http/Controllers/PadController.php
resources/views/components/buttons/btn-download.blade.php
+3
-3
resources/views/components/buttons/btn-download.blade.php
resources/views/pad/relatorio/relatorio.blade.php
+8
-0
resources/views/pad/relatorio/relatorio.blade.php
with
12 additions
and
3 deletions
+12
-3
app/Http/Controllers/PadController.php
View file @
87de8006
...
...
@@ -888,6 +888,7 @@ class PadController extends Controller
if
(
$professor
->
ch_ensino
||
$professor
->
ch_pesquisa
||
$professor
->
ch_extensao
||
$professor
->
ch_gestao
)
{
$professor
->
status
=
"Enviado"
;
$professor
->
pad_id
=
$userPad
->
{
'id'
};
}
}
...
...
This diff is collapsed.
Click to expand it.
resources/views/components/buttons/btn-download.blade.php
View file @
87de8006
{{
--
@
include
(
'components.buttons.btn-download'
,
[
'id'
=>
''
,
'route'
=>
''
,
'id'
=>
''
,
'content'
=>
''
])
--
}}
...
...
This diff is collapsed.
Click to expand it.
resources/views/pad/relatorio/relatorio.blade.php
View file @
87de8006
...
...
@@ -80,6 +80,7 @@
<
th
scope
=
'col'
>
CH
Extensão
</
th
>
<
th
scope
=
'col'
>
CH
Gestão
</
th
>
<
th
scope
=
'col'
>
Campus
</
th
>
<
th
scope
=
'col'
></
th
>
</
tr
>
</
thead
>
...
...
@@ -97,6 +98,13 @@
<
td
>
{{
$professor
->
ch_gestao
}}
</
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
>
@
php
$index
+=
1
@
endphp
@
endif
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment