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
submeta
Commits
b8a5b964
Commit
b8a5b964
authored
Aug 15, 2022
by
GuilhermeGz
Browse files
Ajuste na substituição de participante
parent
2f4f40ff
Changes
2
Show whitespace changes
Inline
Side-by-side
app/Http/Controllers/TrabalhoController.php
View file @
b8a5b964
...
...
@@ -1779,7 +1779,9 @@ class TrabalhoController extends Controller
if
(
$request
->
aprovar
==
'true'
)
{
try
{
if
(
$substituicao
->
tipo
==
'TrocarPlano'
)
{
if
(
!
empty
(
$substituicao
->
participanteSubstituido
)){
$substituicao
->
participanteSubstituido
->
planoTrabalho
()
->
where
(
'id'
,
'!='
,
$substituicao
->
planoSubstituto
->
id
)
->
delete
();
}
$substituicao
->
status
=
'Finalizada'
;
$substituicao
->
justificativa
=
$request
->
textJustificativa
;
$substituicao
->
causa
=
$request
->
selectJustificativa
;
...
...
@@ -1788,7 +1790,10 @@ class TrabalhoController extends Controller
$substituicao
->
save
();
}
else
{
if
(
!
empty
(
$substituicao
->
participanteSubstituido
)){
$substituicao
->
participanteSubstituido
->
delete
();
}
$trabalho
->
participantes
()
->
save
(
$substituicao
->
participanteSubstituto
);
$substituicao
->
status
=
'Finalizada'
;
...
...
resources/views/administrador/analisarProposta.blade.php
View file @
b8a5b964
...
...
@@ -276,8 +276,15 @@
</
div
>
</
div
>
@
endforeach
@
endforeach
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
<!--
Modal
reprova
r
substituição
--
>
{{
--
Janelas
para
aprovação
ou
reprova
ção
de
substituição
--
}}
<
div
class
=
"modal fade"
id
=
"modalCancelarSubst"
tabindex
=
"-1"
role
=
"dialog"
aria
-
labelledby
=
"exampleModalLabel"
aria
-
hidden
=
"true"
>
<
div
class
=
"modal-dialog modal-dialog-centered modal-lg"
>
...
...
@@ -334,7 +341,6 @@
aria
-
labelledby
=
"exampleModalLabel"
aria
-
hidden
=
"true"
>
<
div
class
=
"modal-dialog modal-dialog-centered modal-lg"
>
<
div
class
=
"modal-content"
>
<
div
class
=
"modal-header"
style
=
"overflow-x:auto"
>
<
h5
class
=
"modal-title"
id
=
"exampleModalLabel"
style
=
"color:#1492E6"
>
Proceder
Com
Substituição
</
h5
>
...
...
@@ -346,8 +352,7 @@
</
div
>
<
div
class
=
"modal-body"
>
<
form
method
=
"POST"
id
=
"AprovarSubParticForm"
action
=
"
{
{route('trabalho.aprovarSubstituicao')}
}
"
>
<
form
method
=
"POST"
id
=
"AprovarSubParticForm"
action
=
"
{
{route('trabalho.aprovarSubstituicao')}
}
"
>
@
csrf
<
input
type
=
"hidden"
name
=
"substituicaoID"
id
=
"aprovaId"
value
=
""
>
<
input
type
=
"hidden"
name
=
"aprovar"
value
=
"true"
>
...
...
@@ -380,13 +385,6 @@
</
div
>
</
div
>
</
div
>
@
endforeach
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
<!--
Anexos
-->
<
div
class
=
"row justify-content-center"
style
=
"margin-top: 20px;"
>
...
...
@@ -1186,9 +1184,10 @@
type
=
"button"
class
=
"btn btn-primary"
style
=
"padding: 5px 10px;"
value
=
"
{
{$subs->id}
}
"
>
Submeter
Submeter
{{
$subs
->
id
}}
</
button
>
</
form
>
{{
--
fsasfafsasaffafsafas
--
}}
</
div
>
</
div
>
</
div
>
...
...
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