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
a90fa009
Commit
a90fa009
authored
2 years ago
by
luisfrl
Browse files
Options
Download
Plain Diff
Merge branch 'master' into feature/case-sensitive-email
parents
2e1284dd
7cc3eed9
master
carl-branch
updates_mar
No related merge requests found
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
app/Http/Controllers/AdministradorController.php
+1
-1
app/Http/Controllers/AdministradorController.php
app/Http/Controllers/AvaliacaoRelatorioController.php
+9
-0
app/Http/Controllers/AvaliacaoRelatorioController.php
app/Http/Requests/StoreTrabalho.php
+82
-84
app/Http/Requests/StoreTrabalho.php
resources/views/avaliacaoRelatorio/avaliacao.blade.php
+50
-37
resources/views/avaliacaoRelatorio/avaliacao.blade.php
resources/views/evento/submeterTrabalho.blade.php
+17
-28
resources/views/evento/submeterTrabalho.blade.php
resources/views/projeto/formularioVisualizar/relatorio.blade.php
+2
-2
...es/views/projeto/formularioVisualizar/relatorio.blade.php
routes/web.php
+2
-0
routes/web.php
with
163 additions
and
152 deletions
+163
-152
app/Http/Controllers/AdministradorController.php
View file @
a90fa009
...
...
@@ -114,7 +114,7 @@ class AdministradorController extends Controller
// $participantes = User::whereIn('id', $participantesUsersIds)->get();
return
view
(
'administrador.analisar'
)
->
with
([
'trabalhos'
=>
$trabalhos
->
paginate
(
20
),
'trabalhos'
=>
$trabalhos
->
paginate
(
9999
),
'evento'
=>
$evento
,
'funcaoParticipantes'
=>
$funcaoParticipantes
,
'column'
=>
$request
->
column
,
...
...
This diff is collapsed.
Click to expand it.
app/Http/Controllers/AvaliacaoRelatorioController.php
View file @
a90fa009
...
...
@@ -188,4 +188,13 @@ class AvaliacaoRelatorioController extends Controller
return
redirect
()
->
back
();
}
public
function
atualizarNota
(
$id
,
Request
$request
){
$aval
=
AvaliacaoRelatorio
::
find
(
$id
);
$aval
->
nota
=
$request
->
nota
;
$aval
->
nota_apresentacao
=
$request
->
nota_apresentacao
;
$aval
->
save
();
return
redirect
()
->
back
()
->
with
([
'sucesso'
=>
"Notas avaliadas por "
.
$aval
->
user
->
name
.
" atualizadas!"
]);
}
}
This diff is collapsed.
Click to expand it.
app/Http/Requests/StoreTrabalho.php
View file @
a90fa009
...
...
@@ -22,7 +22,7 @@ class StoreTrabalho extends FormRequest
protected
function
prepareForValidation
()
{
$func
=
function
(
$value
)
{
$func
=
function
(
$value
)
{
return
[
'cpf'
=>
$value
];
};
$this
->
merge
([
...
...
@@ -38,101 +38,99 @@ class StoreTrabalho extends FormRequest
*/
public
function
rules
()
{
//
dd($this->all());
//dd($this->all());
$evento
=
Evento
::
find
(
$this
->
editalId
);
$rules
=
[];
if
(
$this
->
has
(
'marcado'
)){
if
(
$this
->
has
(
'marcado'
))
{
$rules
[
'cpfs.*.cpf'
]
=
[
'distinct'
,
'nullable'
];
foreach
(
$this
->
get
(
'marcado'
)
as
$key
=>
$value
)
{
if
(
intval
(
$value
)
==
$key
){
if
(
intval
(
$value
)
==
$key
)
{
//user
$rules
[
'name.'
.
$value
]
=
[
'required'
,
'string'
];
$rules
[
'email.'
.
$value
]
=
[
'required'
,
'string'
];
$rules
[
'instituicao.'
.
$value
]
=
[
'required'
,
'string'
];
$rules
[
'cpf.'
.
$value
]
=
[
'required'
,
'string'
];
$rules
[
'celular.'
.
$value
]
=
[
'required'
,
'string'
];
if
(
$this
->
estudante
[
$value
]
===
true
){
$rules
[
'name.'
.
$value
]
=
[
'required'
,
'string'
];
$rules
[
'email.'
.
$value
]
=
[
'required'
,
'string'
];
$rules
[
'instituicao.'
.
$value
]
=
[
'required'
,
'string'
];
$rules
[
'cpf.'
.
$value
]
=
[
'required'
,
'string'
];
$rules
[
'celular.'
.
$value
]
=
[
'required'
,
'string'
];
if
(
$this
->
estudante
[
$value
]
==
true
)
{
//endereco
$rules
[
'rua.'
.
$value
]
=
[
'required'
,
'string'
];
$rules
[
'numero.'
.
$value
]
=
[
'required'
,
'string'
];
$rules
[
'bairro.'
.
$value
]
=
[
'required'
,
'string'
];
$rules
[
'cidade.'
.
$value
]
=
[
'required'
,
'string'
];
$rules
[
'uf.'
.
$value
]
=
[
'required'
,
'string'
];
$rules
[
'cep.'
.
$value
]
=
[
'required'
,
'string'
];
$rules
[
'rua.'
.
$value
]
=
[
'required'
,
'string'
];
$rules
[
'numero.'
.
$value
]
=
[
'required'
,
'string'
];
$rules
[
'bairro.'
.
$value
]
=
[
'required'
,
'string'
];
$rules
[
'cidade.'
.
$value
]
=
[
'required'
,
'string'
];
$rules
[
'uf.'
.
$value
]
=
[
'required'
,
'string'
];
$rules
[
'cep.'
.
$value
]
=
[
'required'
,
'string'
];
//participante
$rules
[
'rg.'
.
$value
]
=
[
'required'
,
'string'
];
$rules
[
'data_de_nascimento.'
.
$value
]
=
[
'required'
,
'string'
];
$rules
[
'curso.'
.
$value
]
=
[
'required'
,
'string'
];
$rules
[
'rg.'
.
$value
]
=
[
'required'
,
'string'
];
$rules
[
'data_de_nascimento.'
.
$value
]
=
[
'required'
,
'string'
];
$rules
[
'curso.'
.
$value
]
=
[
'required'
,
'string'
];
//participantes da pesquisa
if
(
$evento
->
natureza_id
!=
3
){
$rules
[
'turno.'
.
$value
]
=
[
'required'
,
'string'
];
$rules
[
'ordem_prioridade.'
.
$value
]
=
[
'required'
,
'string'
];
$rules
[
'periodo_atual.'
.
$value
]
=
[
'required'
,
'string'
];
$rules
[
'total_periodos.'
.
$value
]
=
[
'required'
,
'string'
];
if
(
$evento
->
natureza_id
!=
3
)
{
$rules
[
'turno.'
.
$value
]
=
[
'required'
,
'string'
];
$rules
[
'ordem_prioridade.'
.
$value
]
=
[
'required'
,
'string'
];
$rules
[
'periodo_atual.'
.
$value
]
=
[
'required'
,
'string'
];
$rules
[
'total_periodos.'
.
$value
]
=
[
'required'
,
'string'
];
$rules
[
'media_do_curso.'
.
$value
]
=
[
'required'
,
'string'
];
}
if
(
$evento
->
tipo
!=
"CONTINUO"
&&
(
$this
->
funcaoParticipante
[
$value
]
==
"Voluntário"
||
$this
->
funcaoParticipante
[
$value
]
==
"Bolsista"
)){
$rules
[
'anexoPlanoTrabalho.'
.
$value
]
=
[
'required'
];
$rules
[
'nomePlanoTrabalho.'
.
$value
]
=
[
'required'
,
'string'
];
}
$rules
[
'anexoPlanoTrabalho.'
.
$value
]
=
[
'required'
];
$rules
[
'nomePlanoTrabalho.'
.
$value
]
=
[
'required'
,
'string'
];
}
}
// if($evento->tipo != "PIBEX") {
// $rules['media_do_curso.' . $value] = ['required', 'string'];
// }
}
}
}
else
if
(
$evento
->
tipo
!=
"CONTINUO"
){
}
else
if
(
$evento
->
tipo
!=
"CONTINUO"
)
{
$rules
[
'anexoPlanoTrabalho'
]
=
[
'required'
];
$rules
[
'nomePlanoTrabalho'
]
=
[
'required'
,
'string'
];
}
if
(
$this
->
has
(
'rascunho'
))
{
if
(
$this
->
has
(
'rascunho'
))
{
$rules
=
[];
return
$rules
;
}
else
{
//anexos
if
(
$evento
->
nome_docExtra
!=
null
){
$rules
[
'anexo_docExtra'
]
=
[
Rule
::
requiredIf
(
$evento
->
obrigatoriedade_docExtra
==
true
),
'file'
,
'mimes:zip,doc,docx,pdf'
,
'max:2048'
];
if
(
$evento
->
nome_docExtra
!=
null
)
{
$rules
[
'anexo_docExtra'
]
=
[
Rule
::
requiredIf
(
$evento
->
obrigatoriedade_docExtra
==
true
),
'file'
,
'mimes:zip,doc,docx,pdf'
,
'max:2048'
];
}
if
(
$evento
->
tipo
!=
"PIBEX"
&&
$evento
->
tipo
!=
"CONTINUO"
){
if
(
$evento
->
tipo
!=
"PIBEX"
&&
$evento
->
tipo
!=
"CONTINUO"
)
{
//dd($this->preenchimentoFormFlag);
$rules
[
'anexoPlanilhaPontuacao'
]
=
[
'required'
];
$rules
[
'anexoLattesCoordenador'
]
=
[
'required'
,
'mimes:pdf'
];
$rules
[
'anexoGrupoPesquisa'
]
=
[
'required'
,
'mimes:pdf'
];
$rules
[
'anexoAutorizacaoComiteEtica'
]
=
[
Rule
::
requiredIf
(
$this
->
autorizacaoFlag
==
'sim'
)];
$rules
[
'justificativaAutorizacaoEtica'
]
=
[
Rule
::
requiredIf
(
$this
->
autorizacaoFlag
==
'nao'
)];
$rules
[
'pontuacaoPlanilha'
]
=
[
'required'
,
'string'
];
$rules
[
'linkGrupoPesquisa'
]
=
[
'required'
,
'string'
];
$rules
[
'preenchimentoFormFlag'
]
=
[
Rule
::
in
([
'sim'
]),
'required'
];
$rules
[
'anexo_acao_afirmativa'
]
=
[
Rule
::
requiredIf
(
$this
->
radioAcoesAfirmativas
==
'sim'
)];
$rules
[
'anexoPlanilhaPontuacao'
]
=
[
'required'
];
$rules
[
'anexoLattesCoordenador'
]
=
[
'required'
,
'mimes:pdf'
];
$rules
[
'anexoGrupoPesquisa'
]
=
[
'required'
,
'mimes:pdf'
];
$rules
[
'anexoAutorizacaoComiteEtica'
]
=
[
Rule
::
requiredIf
(
$this
->
autorizacaoFlag
==
'sim'
)];
$rules
[
'justificativaAutorizacaoEtica'
]
=
[
Rule
::
requiredIf
(
$this
->
autorizacaoFlag
==
'nao'
)];
$rules
[
'pontuacaoPlanilha'
]
=
[
'required'
,
'string'
];
$rules
[
'linkGrupoPesquisa'
]
=
[
'required'
,
'string'
];
$rules
[
'preenchimentoFormFlag'
]
=
[
Rule
::
in
([
'sim'
]),
'required'
];
$rules
[
'anexo_acao_afirmativa'
]
=
[
Rule
::
requiredIf
(
$this
->
radioAcoesAfirmativas
==
'sim'
)];
}
$rules
[
'editalId'
]
=
[
'required'
,
'string'
];
$rules
[
'marcado.*'
]
=
[
'required'
];
$rules
[
'titulo'
]
=
[
'required'
,
'string'
];
$rules
[
'grande_area_id'
]
=
[
Rule
::
requiredIf
(
$evento
->
natureza_id
!=
3
),
'string'
];
$rules
[
'area_id'
]
=
[
Rule
::
requiredIf
(
$evento
->
natureza_id
!=
3
),
'string'
];
if
(
$evento
->
natureza_id
==
3
){
$rules
[
'editalId'
]
=
[
'required'
,
'string'
];
$rules
[
'marcado.*'
]
=
[
'required'
];
$rules
[
'titulo'
]
=
[
'required'
,
'string'
];
$rules
[
'grande_area_id'
]
=
[
Rule
::
requiredIf
(
$evento
->
natureza_id
!=
3
),
'string'
];
$rules
[
'area_id'
]
=
[
Rule
::
requiredIf
(
$evento
->
natureza_id
!=
3
),
'string'
];
if
(
$evento
->
natureza_id
==
3
)
{
$rules
[
'area_tematica_id'
]
=
[
'required'
,
'string'
];
$rules
[
'ods'
]
=
[
'required'
];
}
$rules
[
'linkLattesEstudante'
]
=
[
'required'
,
'string'
];
if
(
$evento
->
tipo
!=
"CONTINUO"
){
if
(
$evento
->
tipo
!=
"CONTINUO"
)
{
$rules
[
'anexoDecisaoCONSU'
]
=
[
Rule
::
requiredIf
(
$evento
->
consu
),
'mimes:pdf'
];
$rules
[
'anexoProjeto'
]
=
[
'required'
,
'mimes:pdf'
];
}
else
{
...
...
@@ -142,42 +140,42 @@ class StoreTrabalho extends FormRequest
return
$rules
;
}
}
public
function
messages
()
{
return
[
'titulo.required'
=>
'O :attribute é obrigatório'
,
'marcado.*.required'
=>
'Por favor selcione algum participante, é obrigatório'
,
'grande_area_id.required'
=>
'O campo grande área é obrigatório'
,
'anexoPlanoTrabalho.*.required'
=>
'O :attribute é obrigatório'
,
'anexoProjeto.required'
=>
'O :attribute é obrigatório'
,
'cpf.*.required'
=>
'O cpf é obrigatório'
,
'cpfs.*.cpf.distinct'
=>
'O integrante com CPF :input não pode ser adicionado mais de uma vez'
,
'name.*.required'
=>
'O :attribute é obrigatório'
,
'email.*.required'
=>
'O :attribute é obrigatório'
,
'instituicao.*.required'
=>
'O :attribute é obrigatório'
,
'emailParticipante.*.required'
=>
'O :attribute é obrigatório'
,
'celular.*.required'
=>
'O :attribute é obrigatório'
,
'rua.*.required'
=>
'O :attribute é obrigatório'
,
'numero.*.required'
=>
'O :attribute é obrigatório'
,
'bairro.*.required'
=>
'O :attribute é obrigatório'
,
'cidade.*.required'
=>
'O :attribute é obrigatório'
,
'uf.*.required'
=>
'O :attribute é obrigatório'
,
'cep.*.required'
=>
'O :attribute é obrigatório'
,
'complemento.*.required'
=>
'O :attribute é obrigatório'
,
'rg.*.required'
=>
'O :attribute é obrigatório'
,
'data_de_nascimento.*.required'
=>
'O :attribute é obrigatório'
,
'curso.*.required'
=>
'O :attribute é obrigatório'
,
'turno.*.required'
=>
'O :attribute é obrigatório'
,
'ordem_prioridade.*.required'
=>
'O :attribute é obrigatório'
,
'periodo_atual.*.required'
=>
'O :attribute é obrigatório'
,
'total_periodos.*.required'
=>
'O :attribute é obrigatório'
,
'media_do_curso.*.required'
=>
'O :attribute é obrigatório'
,
'anexoPlanoTrabalho.*.required'
=>
'O :attribute é obrigatório'
,
'nomePlanoTrabalho.*.required'
=>
'O :attribute é obrigatório'
,
'cpf.*.required'
=>
'O cpf é obrigatório'
,
'cpfs.*.cpf.distinct'
=>
'O integrante com CPF :input não pode ser adicionado mais de uma vez'
,
'name.*.required'
=>
'O :attribute é obrigatório'
,
'email.*.required'
=>
'O :attribute é obrigatório'
,
'instituicao.*.required'
=>
'O :attribute é obrigatório'
,
'emailParticipante.*.required'
=>
'O :attribute é obrigatório'
,
'celular.*.required'
=>
'O :attribute é obrigatório'
,
'rua.*.required'
=>
'O :attribute é obrigatório'
,
'numero.*.required'
=>
'O :attribute é obrigatório'
,
'bairro.*.required'
=>
'O :attribute é obrigatório'
,
'cidade.*.required'
=>
'O :attribute é obrigatório'
,
'uf.*.required'
=>
'O :attribute é obrigatório'
,
'cep.*.required'
=>
'O :attribute é obrigatório'
,
'complemento.*.required'
=>
'O :attribute é obrigatório'
,
'rg.*.required'
=>
'O :attribute é obrigatório'
,
'data_de_nascimento.*.required'
=>
'O :attribute é obrigatório'
,
'curso.*.required'
=>
'O :attribute é obrigatório'
,
'turno.*.required'
=>
'O :attribute é obrigatório'
,
'ordem_prioridade.*.required'
=>
'O :attribute é obrigatório'
,
'periodo_atual.*.required'
=>
'O :attribute é obrigatório'
,
'total_periodos.*.required'
=>
'O :attribute é obrigatório'
,
'media_do_curso.*.required'
=>
'O :attribute é obrigatório'
,
'anexoPlanoTrabalho.*.required'
=>
'O :attribute é obrigatório'
,
'nomePlanoTrabalho.*.required'
=>
'O :attribute é obrigatório'
,
'area_id'
=>
"area id"
,
'area_tematica_id'
=>
'area tematica id'
,
'ods.*'
=>
'Deve ser selecionada pelo menos uma ODS'
,
...
...
@@ -186,4 +184,4 @@ class StoreTrabalho extends FormRequest
'anexo_SIPAC.*'
=>
'anexo_SIPAC'
];
}
}
\ No newline at end of file
}
This diff is collapsed.
Click to expand it.
resources/views/avaliacaoRelatorio/avaliacao.blade.php
View file @
a90fa009
...
...
@@ -14,53 +14,66 @@
<
h5
><
b
>
Plano
:</
b
>
{{
$arquivo
->
titulo
}}
</
h5
>
</
div
>
<
div
class
=
"row"
>
<
form
action
=
"{{route('coordenador.atualizar.avaliacao', ['id' =>
$aval->id
])}}"
method
=
"POST"
>
<
div
class
=
"row"
>
@
csrf
<
div
class
=
"col-sm-1 padEsquerda"
>
<
label
for
=
"lattes"
class
=
"col-form-label font-tam"
style
=
"font-weight: bold"
>
{{
__
(
'Nota: '
)
}}
</
label
>
</
div
>
<
div
class
=
"col-sm-5 text-center padEsquerda"
>
<
input
class
=
"form-control"
name
=
"nota"
type
=
"number"
style
=
"width: 60px"
@
if
(
isset
(
$aval
))
value
=
"
{
{$aval->nota}
}
"
@
endif
>
</
div
>
<
div
class
=
"col-sm-1 padEsquerda"
>
<
label
for
=
"lattes"
class
=
"col-form-label font-tam"
style
=
"font-weight: bold"
>
{{
__
(
'Nota: '
)
}}
</
label
>
</
div
>
<
div
class
=
"col-sm-5 text-center padEsquerda"
>
<
input
class
=
"form-control"
name
=
"nota"
type
=
"number"
style
=
"width: 60px"
@
if
(
isset
(
$aval
))
value
=
"
{
{$aval->nota}
}
"
@
endif
disabled
>
<
div
class
=
"col-sm-2 padEsquerda"
>
<
label
for
=
"lattes"
class
=
"col-form-label font-tam"
style
=
"font-weight: bold"
>
{{
__
(
'Apresentação: '
)
}}
</
label
>
</
div
>
<
div
class
=
"col-sm-4 text-center padEsquerda"
>
<
input
class
=
"form-control"
name
=
"nota_apresentacao"
type
=
"number"
style
=
"width: 60px"
@
if
(
isset
(
$aval
))
value
=
"
{
{$aval->nota_apresentacao}
}
"
@
endif
>
</
div
>
</
div
>
<
div
class
=
"row"
>
<
div
class
=
"col-sm-12 padEsquerda"
>
<
label
for
=
"lattes"
class
=
"col-form-label font-tam"
style
=
"font-weight: bold"
>
{{
__
(
'Comentário: '
)
}}
</
label
>
</
div
>
<
div
class
=
"col-sm-2 padEsquerda"
>
<
label
for
=
"lattes"
class
=
"col-form-label font-tam"
style
=
"font-weight: bold"
>
{{
__
(
'Apresentação: '
)
}}
</
label
>
</
div
>
<
div
class
=
"col-sm-4 text-center padEsquerda"
>
<
input
class
=
"form-control"
name
=
"nota"
type
=
"number"
style
=
"width: 60px"
@
if
(
isset
(
$aval
))
value
=
"
{
{$aval->nota_apresentacao}
}
"
@
endif
disabled
>
</
div
>
</
div
>
<
div
class
=
"row"
>
<
div
class
=
"col-sm-12 padEsquerda"
>
<
label
for
=
"lattes"
class
=
"col-form-label font-tam"
style
=
"font-weight: bold"
>
{{
__
(
'Comentário: '
)
}}
</
label
>
<
div
class
=
"row"
>
<
div
class
=
"col-sm-12 padEsquerda"
>
<
textarea
class
=
"col-md-12"
minlength
=
"20"
id
=
"comentario"
name
=
"comentario"
style
=
"border-radius:5px 5px 0 0;height: 71px;"
disabled
>@
if
(
isset
(
$aval
)){{
$aval
->
comentario
}}
</
textarea
>@
else
</
textarea
>@
endif
</
div
>
</
div
>
<
div
class
=
"row"
>
<
div
class
=
"col-10"
>
</
div
>
<
div
class
=
"row"
>
<
div
class
=
"col-sm-12 padEsquerda"
>
<
textarea
class
=
"col-md-12"
minlength
=
"20"
id
=
"comentario"
name
=
"comentario"
style
=
"border-radius:5px 5px 0 0;height: 71px;"
disabled
>@
if
(
isset
(
$aval
)){{
$aval
->
comentario
}}
</
textarea
>@
else
</
textarea
>@
endif
</
div
>
</
div
>
<
div
class
=
"row"
>
<
label
for
=
"lattes"
class
=
"col-form-label font-tam"
style
=
"font-weight: bold;margin-right: 5px;"
>
{{
__
(
'Arquivo: '
)
}}
</
label
>
@
if
(
isset
(
$aval
))
@
if
(
$aval
->
arquivoAvaliacao
!=
null
)
<
label
for
=
"lattes"
class
=
"col-form-label font-tam"
style
=
"font-weight: bold;margin-right: 5px;"
>
{{
__
(
'Arquivo: '
)
}}
</
label
>
@
if
(
isset
(
$aval
))
@
if
(
$aval
->
arquivoAvaliacao
!=
null
)
<
a
href
=
"{{route('download', ['file' =>
$aval->arquivoAvaliacao
])}}"
target
=
"_new"
>
<
img
class
=
""
src
=
"
{
{asset('img/icons/pdf.ico')}
}
"
style
=
"width:40px"
>
</
a
>
@
endif
@
endif
@
endif
@
endif
</
div
>
<
div
class
=
'col-2'
style
=
'margin-top:1%; padding-left:8%;'
>
<
button
type
=
'submit'
class
=
'btn btn-info btn-sm'
>
Editar
</
button
>
</
div
>
</
form
>
</
div
>
</
div
>
<
style
>
.
padEsquerda
{
...
...
This diff is collapsed.
Click to expand it.
resources/views/evento/submeterTrabalho.blade.php
View file @
a90fa009
...
...
@@ -221,29 +221,14 @@
let email = document.getElementById("email"+id);
let funcaoParticipantes =
<?php
echo
json_encode
(
$funcaoParticipantes
);
?>
;
let nome_funcao = get_funcao(funcao.value);
//pega o nome da função do participante
for (var i = 0; i
<
funcaoParticipantes.length
;
i
++)
{
if(funcaoParticipantes[i].id =
=
funcao.value
){
nome_funcao =
funcaoParticipantes[i].nome;
break
;
}
}
let curso = document.getElementById('curso['+id+']').value;
if(nome.value != ""){
estudante.value =
true;
if
(
planoTrabalho
!=
null
&&
planoTrabalho.value
!=
""){
nomePlano.innerHTML =
`
<
strong
>
Nome:
</strong>
${nome.value}
<br>
<strong>
E-mail:
</strong>
${email.value}
<br>
<strong>
Plano:
</strong>
${planoTrabalho.value}
<br>
<strong>
CPF:
</strong>
${cpf.value}
<br>
<strong>
Função:
</strong>
${nome_funcao}`;
}else {
nomePlano.innerHTML = `
<strong>
Nome:
</strong>
${nome.value}
<br>
<strong>
E-mail:
</strong>
${email.value}
<br>
<strong>
CPF:
</strong>
${cpf.value}
<br>
<strong>
Função:
</strong>
${nome_funcao}`;
}
estudante.value = true;
nomePlano.innerHTML = exibirInformacoesGeraisDoIntegrante(nome.value, email.value, celular.value, curso, nome_funcao);
if (nome_funcao == "Bolsista") {
nomePlano.innerHTML += `
<br><strong>
Plano:
</strong>
${planoTrabalho.value !== null ? planoTrabalho.value : ''}`;
}
}else if(data != null) {
estudante.value = false;
...
...
@@ -252,11 +237,9 @@
instituicao.value = data[0].instituicao;
cpf.value = data[0].cpf;
celular.value = data[0].celular;
nomePlano.innerHTML = `
<strong>
Nome:
</strong>
${nome.value}
<br>
<strong>
E-mail:
</strong>
${email.value}
<br>
<strong>
CPF:
</strong>
${cpf.value}
<br>
<strong>
Função:
</strong>
${data[1].nome}`;
nome_funcao = data[1].nome;
curso = data[2].curso;
nomePlano.innerHTML = exibirInformacoesGeraisDoIntegrante(nome.value, email.value, celular.value, curso, nome_funcao);
}
if(id >=1){
document.getElementById("cancelar"+(id-1)).setAttribute("disabled", true);
...
...
@@ -268,10 +251,16 @@
document.getElementById("quantidadeModais").value = modal_id;
document.getElementById("part"+id).removeAttribute("hidden");
//document.getElementById("exampleModal"+id).modal('hide');
}
function exibirInformacoesGeraisDoIntegrante(nome, email, celular, curso, nomeFuncao) {
return `
<strong>
Nome:
</strong>
${nome}
<br>
<strong>
E-mail:
</strong>
${email}
<br>
<strong>
Telefone:
</strong>
${celular !== null ? celular : ''}
<br>
<strong>
Curso:
</strong>
${curso !== null ? curso : ''}
<br>
<strong>
Função:
</strong>
${nomeFuncao}`;
}
function desmarcar(id){
if(id >= 1){;
document.getElementById("cancelar"+(id-1)).removeAttribute("disabled");
...
...
This diff is collapsed.
Click to expand it.
resources/views/projeto/formularioVisualizar/relatorio.blade.php
View file @
a90fa009
...
...
@@ -72,7 +72,7 @@
</td>
<td>
Parcial
</td>
<td>
@if($aval->nota == null) Pendente @else {{$aval->nota}} @endif
</td>
<td>
@if($aval->nota_apresentacao == null) Pendente @else {{$aval->nota}} @endif
</td>
<td>
@if($aval->nota_apresentacao == null) Pendente @else {{$aval->nota
_apresentacao
}} @endif
</td>
<td><a
href=
""
data-toggle=
"modal"
data-target=
"#modalVizuRelatParcial{{$aval->id}}"
class=
"button"
>
Visualizar
</a></td>
</tr>
...
...
@@ -105,7 +105,7 @@
</td>
<td>
Final
</td>
<td>
@if($aval->nota == null) Pendente @else {{$aval->nota}} @endif
</td>
<td>
@if($aval->nota_apresentacao == null) Pendente @else {{$aval->nota}} @endif
</td>
<td>
@if($aval->nota_apresentacao == null) Pendente @else {{$aval->nota
_apresentacao
}} @endif
</td>
<td><a
href=
""
data-toggle=
"modal"
data-target=
"#modalVizuRelatFinal{{$aval->id}}"
class=
"button"
>
Visualizar
</a></td>
</tr>
<!-- Modal visualizar informações participante -->
...
...
This diff is collapsed.
Click to expand it.
routes/web.php
View file @
a90fa009
...
...
@@ -361,4 +361,6 @@ Route::prefix('coordenador')->name('coordenador.')->group(function () {
Route
::
post
(
'/atribuir'
,
'TrabalhoController@atribuir'
)
->
name
(
'atribuir'
);
Route
::
post
(
'/atribuir'
,
'TrabalhoController@atribuir'
)
->
name
(
'atribuir'
);
Route
::
post
(
'/resposta-solicitacao-desligamento/{desligamento_id}'
,
'CoordenadorComissaoController@respostaDesligamento'
)
->
name
(
'resposta.desligamento'
);
Route
::
post
(
'/analisarProposta/{id}/atualizar'
,
'AvaliacaoRelatorioController@atualizarNota'
)
->
name
(
'atualizar.avaliacao'
);
});
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