Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
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
23132513
Unverified
Commit
23132513
authored
2 years ago
by
Antônio Durval
Committed by
GitHub
2 years ago
Browse files
Options
Download
Plain Diff
Merge pull request #842 from antonioDurval/master
Correções
parents
da6655c9
8007ea85
master
carl-branch
excluir_projeto_submetido
updates_mar
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
app/Http/Controllers/TrabalhoController.php
+5
-1
app/Http/Controllers/TrabalhoController.php
resources/views/administrador/analisarProposta.blade.php
+20
-18
resources/views/administrador/analisarProposta.blade.php
resources/views/evento/formulario/integrantes.blade.php
+10
-4
resources/views/evento/formulario/integrantes.blade.php
with
35 additions
and
23 deletions
+35
-23
app/Http/Controllers/TrabalhoController.php
View file @
23132513
...
@@ -1253,7 +1253,11 @@ class TrabalhoController extends Controller
...
@@ -1253,7 +1253,11 @@ class TrabalhoController extends Controller
$data
[
'cpf'
]
=
$request
->
cpf
[
$part
];
$data
[
'cpf'
]
=
$request
->
cpf
[
$part
];
//Quando o integrante é um estudante
//Quando o integrante é um estudante
if
(
$request
->
estudante
[
$part
]
==
true
){
if
(
$request
->
estudante
[
$part
]
==
true
){
$data_nascimento
=
Carbon
::
createFromFormat
(
'd/m/Y'
,
$request
->
data_de_nascimento
[
$part
])
->
toDateString
();
if
(
$request
->
data_de_nascimento
[
$part
]
==
null
){
$data_nascimento
=
null
;
}
else
{
$data_nascimento
=
Carbon
::
createFromFormat
(
'd/m/Y'
,
$request
->
data_de_nascimento
[
$part
])
->
toDateString
();
}
$data
[
'data_de_nascimento'
]
=
$data_nascimento
;
$data
[
'data_de_nascimento'
]
=
$data_nascimento
;
$data
[
'rg'
]
=
$request
->
rg
[
$part
];
$data
[
'rg'
]
=
$request
->
rg
[
$part
];
$data
[
'celular'
]
=
$request
->
celular
[
$part
];
$data
[
'celular'
]
=
$request
->
celular
[
$part
];
...
...
This diff is collapsed.
Click to expand it.
resources/views/administrador/analisarProposta.blade.php
View file @
23132513
...
@@ -706,25 +706,27 @@
...
@@ -706,25 +706,27 @@
</
select
>
</
select
>
@
else
@
else
@
foreach
(
$trabalho
->
participantes
as
$participante
)
@
foreach
(
$trabalho
->
participantes
as
$participante
)
<
div
class
=
"col-md-6"
>
@
if
(
$participante
->
planoTrabalho
!=
null
)
<
label
style
=
"font-weight: bold;font-size: 18px"
>
Plano
:
{{
$participante
->
planoTrabalho
->
titulo
}}
</
label
>
<
div
class
=
"col-md-6"
>
</
div
>
<
label
style
=
"font-weight: bold;font-size: 18px"
>
Plano
:
{{
$participante
->
planoTrabalho
->
titulo
}}
</
label
>
@
php
</
div
>
$avaliacoesId
=
\
App\AvaliacaoRelatorio
::
where
(
"arquivo_id"
,
$participante
->
planoTrabalho
->
id
)
->
where
(
"tipo"
,
$tipoTemp
)
->
pluck
(
'user_id'
);
@
php
$avalProjeto
=
\
Illuminate\Support\Facades\DB
::
table
(
'users'
)
->
join
(
'avaliadors'
,
'users.id'
,
'='
,
'avaliadors.user_id'
)
->
whereNotIn
(
'users.id'
,
$avaliacoesId
)
->
orderBy
(
'users.name'
)
->
get
();
$avaliacoesId
=
\
App\AvaliacaoRelatorio
::
where
(
"arquivo_id"
,
$participante
->
planoTrabalho
->
id
)
->
where
(
"tipo"
,
$tipoTemp
)
->
pluck
(
'user_id'
);
@
endphp
$avalProjeto
=
\
Illuminate\Support\Facades\DB
::
table
(
'users'
)
->
join
(
'avaliadors'
,
'users.id'
,
'='
,
'avaliadors.user_id'
)
->
whereNotIn
(
'users.id'
,
$avaliacoesId
)
->
orderBy
(
'users.name'
)
->
get
();
@
endphp
<
select
name
=
"avaliadores_
{
{$participante->planoTrabalho->id}
}
_id[]"
multiple
class
=
"form-control"
id
=
"avaliacaoSelect"
<
select
name
=
"avaliadores_
{
{$participante->planoTrabalho->id}
}
_id[]"
multiple
style
=
"height: 200px;font-size:15px"
>
class
=
"form-control"
id
=
"avaliacaoSelect"
@
foreach
(
$avalProjeto
as
$avaliador
)
style
=
"height: 200px;font-size:15px"
>
<
option
value
=
"{{
$avaliador->user_id
}}"
>
{{
$avaliador
->
name
}}
@
foreach
(
$avalProjeto
as
$avaliador
)
>
{{
$avaliador
->
instituicao
??
'Instituição Indefinida'
}}
<
option
value
=
"{{
$avaliador->user_id
}}"
>
{{
$avaliador
->
name
}}
>
{{
$avaliador
->
tipo
}}
>
{{
$avaliador
->
instituicao
??
'Instituição Indefinida'
}}
>
{{
$avaliador
->
email
}}
</
option
>
>
{{
$avaliador
->
tipo
}}
>
{{
$avaliador
->
email
}}
</
option
>
@
endforeach
@
endforeach
</
select
>
</
select
>
@
endif
@
endforeach
@
endforeach
@
endif
@
endif
<
small
id
=
"emailHelp"
class
=
"form-text text-muted"
>
Segure
SHIFT
do
<
small
id
=
"emailHelp"
class
=
"form-text text-muted"
>
Segure
SHIFT
do
...
...
This diff is collapsed.
Click to expand it.
resources/views/evento/formulario/integrantes.blade.php
View file @
23132513
...
@@ -169,7 +169,7 @@
...
@@ -169,7 +169,7 @@
if
(
data
==
'
inexistente
'
||
$
(
'
#cpf_consulta
'
).
val
()
==
""
){
if
(
data
==
'
inexistente
'
||
$
(
'
#cpf_consulta
'
).
val
()
==
""
){
exibirModalUsuarioInexistente
();
exibirModalUsuarioInexistente
();
}
else
{
}
else
{
if
(
data
[
0
].
tipo
==
'
participante
'
){
if
(
$
(
'
#funcao_participante
'
).
val
()
!=
4
||
data
[
0
].
tipo
==
'
participante
'
){
exibirUsuarioAdicionado
(
data
);
exibirUsuarioAdicionado
(
data
);
}
else
{
}
else
{
marcar
(
modal_id
,
data
);
marcar
(
modal_id
,
data
);
...
@@ -193,6 +193,7 @@
...
@@ -193,6 +193,7 @@
let
modal_id
=
Number
(
document
.
getElementById
(
'
quantidadeModais
'
).
value
);
let
modal_id
=
Number
(
document
.
getElementById
(
'
quantidadeModais
'
).
value
);
function
exibirUsuarioAdicionado
(
data
)
{
function
exibirUsuarioAdicionado
(
data
)
{
console
.
log
(
data
[
0
])
$
(
'
#modalIntegrante
'
).
modal
(
'
hide
'
);
$
(
'
#modalIntegrante
'
).
modal
(
'
hide
'
);
document
.
getElementById
(
`nome
${
modal_id
}
`
).
value
=
data
[
0
][
'
name
'
];
document
.
getElementById
(
`nome
${
modal_id
}
`
).
value
=
data
[
0
][
'
name
'
];
document
.
getElementById
(
`nome
${
modal_id
}
`
).
setAttribute
(
"
readonly
"
,
""
);
document
.
getElementById
(
`nome
${
modal_id
}
`
).
setAttribute
(
"
readonly
"
,
""
);
...
@@ -200,10 +201,15 @@
...
@@ -200,10 +201,15 @@
document
.
getElementById
(
`email
${
modal_id
}
`
).
value
=
data
[
0
][
'
email
'
];
document
.
getElementById
(
`email
${
modal_id
}
`
).
value
=
data
[
0
][
'
email
'
];
document
.
getElementById
(
`email
${
modal_id
}
`
).
setAttribute
(
"
readonly
"
,
""
);
document
.
getElementById
(
`email
${
modal_id
}
`
).
setAttribute
(
"
readonly
"
,
""
);
let
[
y
,
m
,
d
]
=
data
[
2
][
'
data_de_nascimento
'
].
split
(
'
-
'
);
if
(
data
[
0
][
'
tipo
'
]
==
"
participante
"
){
let
[
y
,
m
,
d
]
=
data
[
2
][
'
data_de_nascimento
'
].
split
(
'
-
'
);
document
.
getElementById
(
`data_de_nascimento
${
modal_id
}
`
).
value
=
(
new
Date
(
y
,
m
-
1
,
d
)).
toLocaleDateString
();
document
.
getElementById
(
`data_de_nascimento
${
modal_id
}
`
).
setAttribute
(
"
readonly
"
,
""
);
}
else
{
document
.
getElementById
(
`data_de_nascimento
${
modal_id
}
`
).
value
=
(
new
Date
(
y
,
m
-
1
,
d
)).
toLocaleDateString
();
document
.
getElementById
(
`data_de_nascimento
${
modal_id
}
`
).
value
=
null
;
document
.
getElementById
(
`data_de_nascimento
${
modal_id
}
`
).
setAttribute
(
"
readonly
"
,
""
);
document
.
getElementById
(
`data_de_nascimento
${
modal_id
}
`
).
setAttribute
(
"
readonly
"
,
""
);
}
document
.
getElementById
(
`cpf
${
modal_id
}
`
).
value
=
data
[
0
][
'
cpf
'
];
document
.
getElementById
(
`cpf
${
modal_id
}
`
).
value
=
data
[
0
][
'
cpf
'
];
document
.
getElementById
(
`cpf
${
modal_id
}
`
).
setAttribute
(
"
readonly
"
,
""
);
document
.
getElementById
(
`cpf
${
modal_id
}
`
).
setAttribute
(
"
readonly
"
,
""
);
...
...
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
Menu
Projects
Groups
Snippets
Help