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
38002713
Unverified
Commit
38002713
authored
Sep 21, 2022
by
GuilhermeGz
Committed by
GitHub
Sep 21, 2022
Browse files
Merge pull request #626 from GuilhermeGz/master
Ajuste nas telas de substituição de participante e análise das propostas
parents
70429dbf
d0402104
Changes
4
Hide whitespace changes
Inline
Side-by-side
app/Http/Controllers/TrabalhoController.php
View file @
38002713
...
@@ -840,7 +840,6 @@ class TrabalhoController extends Controller
...
@@ -840,7 +840,6 @@ class TrabalhoController extends Controller
$request
->
merge
([
$request
->
merge
([
'coordenador_id'
=>
$evento
->
coordenadorComissao
->
id
'coordenador_id'
=>
$evento
->
coordenadorComissao
->
id
]);
]);
$trabalho
=
Trabalho
::
find
(
$id
);
$trabalho
=
Trabalho
::
find
(
$id
);
DB
::
beginTransaction
();
DB
::
beginTransaction
();
...
@@ -865,7 +864,6 @@ class TrabalhoController extends Controller
...
@@ -865,7 +864,6 @@ class TrabalhoController extends Controller
$trabalho
=
$this
->
armazenarAnexosFinais
(
$request
,
$pasta
,
$trabalho
,
$evento
);
$trabalho
=
$this
->
armazenarAnexosFinais
(
$request
,
$pasta
,
$trabalho
,
$evento
);
$trabalho
->
save
();
$trabalho
->
save
();
if
(
$request
->
marcado
==
null
)
{
if
(
$request
->
marcado
==
null
)
{
$idExcluido
=
$trabalho
->
participantes
->
pluck
(
'id'
);
$idExcluido
=
$trabalho
->
participantes
->
pluck
(
'id'
);
...
@@ -880,10 +878,12 @@ class TrabalhoController extends Controller
...
@@ -880,10 +878,12 @@ class TrabalhoController extends Controller
}
}
}
}
foreach
(
$idExcluido
as
$key
=>
$value
)
{
foreach
(
$idExcluido
as
$key
=>
$value
)
{
$trabalho
->
participantes
()
->
find
(
$value
)
->
delete
();
$trabalho
->
participantes
()
->
find
(
$value
)
->
delete
();
}
}
$trabalho
->
refresh
();
$trabalho
->
refresh
();
if
(
$request
->
has
(
'marcado'
))
{
if
(
$request
->
has
(
'marcado'
))
{
foreach
(
$request
->
marcado
as
$key
=>
$part
)
{
foreach
(
$request
->
marcado
as
$key
=>
$part
)
{
$part
=
intval
(
$part
);
$part
=
intval
(
$part
);
...
@@ -1015,8 +1015,9 @@ class TrabalhoController extends Controller
...
@@ -1015,8 +1015,9 @@ class TrabalhoController extends Controller
}
}
if
(
!
$request
->
has
(
'rascunho'
))
{
if
(
!
$request
->
has
(
'rascunho'
))
{
Notification
::
send
(
$trabalho
->
proponente
->
user
,
new
SubmissaoNotification
(
$
id
,
$
trabalho
->
titulo
));
Notification
::
send
(
$trabalho
->
proponente
->
user
,
new
SubmissaoNotification
(
$trabalho
));
}
}
return
redirect
(
route
(
'proponente.projetos'
))
->
with
([
'mensagem'
=>
'Proposta atualizada!'
]);
return
redirect
(
route
(
'proponente.projetos'
))
->
with
([
'mensagem'
=>
'Proposta atualizada!'
]);
}
catch
(
\
Throwable
$th
)
{
}
catch
(
\
Throwable
$th
)
{
...
...
resources/views/administrador/analisarProposta.blade.php
View file @
38002713
...
@@ -320,6 +320,7 @@
...
@@ -320,6 +320,7 @@
</
div
>
</
div
>
<
select
class
=
"custom-select"
name
=
"selectJustificativa"
>
<
select
class
=
"custom-select"
name
=
"selectJustificativa"
>
<
option
value
=
"DESISTENCIA"
>
DESISTÊNCIA
</
option
>
<
option
value
=
"DESISTENCIA"
>
DESISTÊNCIA
</
option
>
<
option
value
=
"OUTRAS"
>
OUTRAS
</
option
>
</
select
>
</
select
>
</
div
>
</
div
>
</
div
>
</
div
>
...
@@ -370,6 +371,7 @@
...
@@ -370,6 +371,7 @@
</
div
>
</
div
>
<
select
class
=
"custom-select"
name
=
"selectJustificativa"
>
<
select
class
=
"custom-select"
name
=
"selectJustificativa"
>
<
option
value
=
"DESISTENCIA"
>
DESISTÊNCIA
</
option
>
<
option
value
=
"DESISTENCIA"
>
DESISTÊNCIA
</
option
>
<
option
value
=
"OUTRAS"
>
OUTRAS
</
option
>
</
select
>
</
select
>
</
div
>
</
div
>
</
div
>
</
div
>
...
...
resources/views/administrador/substituirParticipante.blade.php
View file @
38002713
...
@@ -39,14 +39,37 @@
...
@@ -39,14 +39,37 @@
<
div
class
=
"col-2 align-self-center"
>
<
div
class
=
"col-2 align-self-center"
>
<
div
class
=
"row justify-content-around"
>
<
div
class
=
"row justify-content-around"
>
<
a
href
=
""
data
-
toggle
=
"modal"
data
-
target
=
"#modalTestSubParticipante
{
{$participante->id}
}
"
class
=
"button"
<
a
title
=
"Substituição"
href
=
""
data
-
toggle
=
"modal"
data
-
target
=
"#modalTestSubParticipante
{
{$participante->id}
}
"
class
=
"button"
@
if
((
$substituicoesProjeto
->
first
()
!=
null
)
&&
((
$substituicoesProjeto
->
first
()
->
status
==
'Em Aguardo'
)
||
(
$desligamentosProjeto
->
first
()
!=
null
&&
$desligamentosProjeto
->
first
()
->
status
==
1
)))
style
=
"pointer-events: none; cursor: default; color:gray;"
@
endif
>
@
if
((
count
(
$substituicoesProjeto
->
where
(
'participanteSubstituido_id'
,
$participante
->
id
)
->
where
(
'status'
,
'Em Aguardo'
))
>
0
)
<
i
class
=
"fas fa-exchange-alt fa-2x"
></
i
></
a
>
||
(
count
(
$desligamentosProjeto
->
where
(
'participante_id'
,
$participante
->
id
)
->
where
(
'status'
,
1
))
>
0
))
<
a
href
=
""
data
-
toggle
=
"modal"
data
-
target
=
"#modalVizuParticipante
{
{$participante->id}
}
"
class
=
"button"
><
i
class
=
"far fa-eye fa-2x"
></
i
></
a
>
style
=
"pointer-events: none; cursor: default; color:gray;"
@
endif
>
<
a
href
=
""
data
-
toggle
=
"modal"
data
-
target
=
"#modalSolicitarDesligamentoParticipante
{
{$participante->id}
}
"
class
=
"button"
@
if
(((
$substituicoesProjeto
->
first
()
!=
null
)
&&
((
$substituicoesProjeto
->
first
()
->
status
==
'Em Aguardo'
)
||
(
$desligamentosProjeto
->
first
()
!=
null
&&
$desligamentosProjeto
->
first
()
->
status
==
1
))
||
count
(
$participantes
)
<=
1
))
style
=
"pointer-events: none; cursor: default; color: gray;"
@
endif
>
Solicitar
desligamento
</
a
>
<
i
class
=
"fas fa-exchange-alt fa-2x"
></
i
>
</
a
>
@
if
((
count
(
$substituicoesProjeto
->
where
(
'participanteSubstituido_id'
,
$participante
->
id
)
->
where
(
'status'
,
'Em Aguardo'
))
>
0
)
||
(
count
(
$desligamentosProjeto
->
where
(
'participante_id'
,
$participante
->
id
)
->
where
(
'status'
,
1
))
>
0
))
<
a
title
=
"Desligamento"
href
=
""
data
-
toggle
=
"modal"
data
-
target
=
"#modalSolicitarDesligamentoParticipante
{
{$participante->id}
}
"
class
=
"button"
style
=
"pointer-events: none; cursor: default;"
>
<
svg
xmlns
=
"http://www.w3.org/2000/svg"
viewBox
=
"0 0 640 512"
style
=
"width:30px;"
>
<
path
fill
=
"#808080"
d
=
"M352 128c0 70.7-57.3 128-128 128s-128-57.3-128-128S153.3 0 224 0s128 57.3 128 128zM0 482.3C0 383.8 79.8 304 178.3 304h91.4C368.2 304 448 383.8 448 482.3c0 16.4-13.3 29.7-29.7 29.7H29.7C13.3 512 0 498.7 0 482.3zM471 143c9.4-9.4 24.6-9.4 33.9 0l47 47 47-47c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9l-47 47 47 47c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-47-47-47 47c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9l47-47-47-47c-9.4-9.4-9.4-24.6 0-33.9z"
/>
</
svg
>
</
a
>
@
else
<
a
title
=
"Desligamento"
href
=
""
data
-
toggle
=
"modal"
data
-
target
=
"#modalSolicitarDesligamentoParticipante
{
{$participante->id}
}
"
class
=
"button"
>
<
svg
xmlns
=
"http://www.w3.org/2000/svg"
viewBox
=
"0 0 640 512"
style
=
"width:30px;"
>
<
path
fill
=
"#3490dc"
d
=
"M352 128c0 70.7-57.3 128-128 128s-128-57.3-128-128S153.3 0 224 0s128 57.3 128 128zM0 482.3C0 383.8 79.8 304 178.3 304h91.4C368.2 304 448 383.8 448 482.3c0 16.4-13.3 29.7-29.7 29.7H29.7C13.3 512 0 498.7 0 482.3zM471 143c9.4-9.4 24.6-9.4 33.9 0l47 47 47-47c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9l-47 47 47 47c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-47-47-47 47c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9l47-47-47-47c-9.4-9.4-9.4-24.6 0-33.9z"
/>
</
svg
>
</
a
>
@
endif
<
a
title
=
"Visualizar"
href
=
""
data
-
toggle
=
"modal"
data
-
target
=
"#modalVizuParticipante
{
{$participante->id}
}
"
class
=
"button"
><
i
class
=
"far fa-eye fa-2x"
></
i
></
a
>
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
...
...
resources/views/proponente/projetos.blade.php
View file @
38002713
...
@@ -109,11 +109,6 @@
...
@@ -109,11 +109,6 @@
Solicitar
Substituições
Solicitar
Substituições
</
a
>
</
a
>
<
hr
class
=
"dropdown-hr"
>
<
hr
class
=
"dropdown-hr"
>
{{
--<
hr
class
=
"dropdown-hr"
>
<
a
href
=
""
class
=
"dropdown-item"
style
=
"text-align: center"
>
Solicitar
Certificado
</
a
>--
}}
@
endif
@
endif
<
a
href
=
"{{route('docComplementar.listar', ['projeto_id' =>
$projeto->id
])}}"
class
=
"dropdown-item"
style
=
"text-align: center"
>
<
a
href
=
"{{route('docComplementar.listar', ['projeto_id' =>
$projeto->id
])}}"
class
=
"dropdown-item"
style
=
"text-align: center"
>
Documentos
Complementares
Documentos
Complementares
...
...
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