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
c8be82fc
Commit
c8be82fc
authored
Sep 21, 2022
by
GuilhermeGz
Browse files
Restrição individual após o pedido de solicitação de substituição
parent
904e743f
Changes
1
Show whitespace changes
Inline
Side-by-side
resources/views/administrador/substituirParticipante.blade.php
View file @
c8be82fc
...
@@ -39,15 +39,38 @@
...
@@ -39,15 +39,38 @@
<
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
>
<
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
>
<
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
>
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
<!--
Modal
TESTE
substituir
participante
-->
<!--
Modal
TESTE
substituir
participante
-->
...
@@ -442,7 +465,7 @@
...
@@ -442,7 +465,7 @@
var
idParticipante
=
checkboxInput
.
id
;
var
idParticipante
=
checkboxInput
.
id
;
var
tituloPlano
=
document
.
getElementById
(
'nomePlanoTrabalho'
+
idParticipante
);
var
tituloPlano
=
document
.
getElementById
(
'nomePlanoTrabalho'
+
idParticipante
);
var
anexoPlano
=
document
.
getElementById
(
'anexoPlanoTrabalho'
+
idParticipante
);
var
anexoPlano
=
document
.
getElementById
(
'anexoPlanoTrabalho'
+
idParticipante
);
var
planoAtual
=<?
php
echo
json_encode
(
$participantes
->
first
()
->
planoTrabalho
)
?>
;
var
planoAtual
=<?
php
echo
json_encode
(
$participantes
->
first
()
->
planoTrabalho
)
;
?>
;
var arquivo = document.getElementById('arquivo'+idParticipante);
var arquivo = document.getElementById('arquivo'+idParticipante);
if(checkboxInput.checked){
if(checkboxInput.checked){
...
...
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