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
72241b3c
Unverified
Commit
72241b3c
authored
Jun 17, 2020
by
Gabriel Antônio da Silva
Committed by
GitHub
Jun 17, 2020
Browse files
Merge pull request #28 from lmts-ufape/planoTrabalho
Plano trabalho
parents
beed2694
b8f2b424
Changes
32
Show whitespace changes
Inline
Side-by-side
resources/views/evento/submeterTrabalho.blade.php
View file @
72241b3c
...
...
@@ -2,7 +2,6 @@
@
section
(
'content'
)
<
div
class
=
"container content"
>
<
div
class
=
"row justify-content-center"
>
<
div
class
=
"col-sm-12"
>
<
div
class
=
"card"
style
=
"margin-top:50px"
>
...
...
@@ -46,6 +45,7 @@
</div>
<div class="
col
-
sm
-
4
">
<label for="
area
" class="
col
-
form
-
label
">{{ __('Área*:') }}</label>
<input type="
hidden
" id="
oldArea
" value="
{{
old
(
'area'
)
}}
"></input>
<select class="
form
-
control
@
error
(
'area'
)
is
-
invalid
@
enderror
" id="
area
" name="
area
" onchange="
subareas
()
">
<option value="" disabled selected hidden>-- Área --</option>
{{-- @foreach(
$areas
as
$area
)
...
...
@@ -61,6 +61,7 @@
</div>
<div class="
col
-
sm
-
4
">
<label for="
subArea
" class="
col
-
form
-
label
">{{ __('Sub Área*:') }}</label>
<input type="
hidden
" id="
oldSubArea
" value="
{{
old
(
'subArea'
)
}}
"></input>
<select class="
form
-
control
@
error
(
'subArea'
)
is
-
invalid
@
enderror
" id="
subArea
" name="
subArea
">
<option value="" disabled selected hidden>-- Sub Área --</option>
{{-- @foreach(
$subAreas
as
$subArea
)
...
...
@@ -76,14 +77,6 @@
</div>
</div>
<hr>
<h3>Coordenador</h3>
...
...
@@ -97,7 +90,7 @@
<div class="
col
-
sm
-
6
">
<label for="
linkLattesEstudante
" class="
col
-
form
-
label
">Link Lattes do Proponente*</label>
<input class="
form
-
control
@
error
(
'linkLattesEstudante'
)
is
-
invalid
@
enderror
" type="
text
" name="
linkLattesEstudante
"
@if(Auth()->user()->proponentes->linkLattes != null)
@if(Auth()->user()->proponentes
!= null && Auth()->user()->proponentes
->linkLattes != null)
value="
{{
Auth
()
->
user
()
->
proponentes
->
linkLattes
}}
"
@else
value=""
...
...
@@ -140,11 +133,15 @@
{{-- Arquivo --}}
<div class="
col
-
sm
-
6
">
<label for="
anexoProjeto
" class="
col
-
form
-
label
">{{ __('Anexo Projeto*:') }}</label>
@if(old('anexoProjetoPreenchido') != null)
<a id="
anexoProjetoTemp
" href="
{{
route
(
'baixar.anexo.temp'
,
[
'eventoId'
=>
$edital
->
id
,
'nomeAnexo'
=>
'anexoProjeto'
])}}
">Arquivo atual</a>
@endif
<input type="
hidden
" id="
anexoProjetoPreenchido
" name="
anexoProjetoPreenchido
" value="
{{
old
(
'anexoProjetoPreenchido'
)
}}
" >
<div class="
input
-
group
">
<div class="
custom
-
file
">
<input type="
file
" class="
custom
-
file
-
input
@
error
(
'anexoProjeto'
)
is
-
invalid
@
enderror
" id="
anexoProjeto
" aria-describedby="
inputGroupFileAddon01
" name="
anexoProjeto
"
>
<input type="
file
" class="
custom
-
file
-
input
@
error
(
'anexoProjeto'
)
is
-
invalid
@
enderror
" id="
anexoProjeto
" aria-describedby="
inputGroupFileAddon01
" name="
anexoProjeto
"
onchange="
exibirAnexoTemp
(
this
)
">
<label class="
custom
-
file
-
label
" id="
custom
-
file
-
label
" for="
anexoProjeto
">O arquivo deve ser no formato PDF de até 2mb.</label>
</div>
</div>
...
...
@@ -156,26 +153,27 @@
</div>
<div class="
col
-
sm
-
6
">
<label for="
anexoLatterCoordenador
" class="
col
-
form
-
label
">{{ __('Anexo do Lattes do Coordenador*:') }}</label>
<label for="
anexoLattesCoordenador
" class="
col
-
form
-
label
">{{ __('Anexo do Lattes do Coordenador*:') }}</label>
@if(old('anexoLattesPreenchido') != null)
<a id="
anexoLattesTemp
" href="
{{
route
(
'baixar.anexo.temp'
,
[
'eventoId'
=>
$edital
->
id
,
'nomeAnexo'
=>
'anexoLattesCoordenador'
])}}
">Arquivo atual</a>
@endif
<input type="
hidden
" id="
anexoLattesPreenchido
" name="
anexoLattesPreenchido
" value="
{{
old
(
'anexoLattesPreenchido'
)
}}
" >
<div class="
input
-
group
">
<div class="
custom
-
file
">
<input type="
file
" class="
custom
-
file
-
input
@
error
(
'anexoLatte
r
Coordenador'
)
is
-
invalid
@
enderror
" id="
inputGroupFile01
" aria-describedby="
anexoLatte
r
Coordenador
" name="
anexoLatte
r
Coordenador
">
<label class="
custom
-
file
-
label
" id="
custom
-
file
-
label
" for="
inputGroupFile01
">O arquivo deve ser no formato PDF de até 2mb.</label>
<input type="
file
" class="
custom
-
file
-
input
@
error
(
'anexoLatte
s
Coordenador'
)
is
-
invalid
@
enderror
" id="
anexoLattesCoordenador
" aria-describedby="
anexoLatte
s
Coordenador
" name="
anexoLatte
s
Coordenador
"
onchange="
exibirAnexoTemp
(
this
)
"
>
<label class="
custom
-
file
-
label
" id="
custom
-
file
-
label
" for="
anexoLattesCoordenador
">O arquivo deve ser no formato PDF de até 2mb.</label>
</div>
</div>
@error('anexoLatte
r
Coordenador')
@error('anexoLatte
s
Coordenador')
<span class="
invalid
-
feedback
" role="
alert
" style="
overflow
:
visible
;
display
:
block
">
<strong>{{
$message
}}</strong>
</span>
@enderror
</div>
<div class="
col
-
sm
-
6
">
<label for="
botao
" class="
col
-
form
-
label
@
error
(
'botao'
)
is
-
invalid
@
enderror
">{{ __('Possui autorização do Comitê de Ética*:') }}</label>
<button id="
buttonSim
" class="
btn
btn
-
primary
mt
-
2
mb
-
2
">Sim</button>
...
...
@@ -187,12 +185,17 @@
<strong>{{
$message
}}</strong>
</span>
@enderror
<br/>
@if(old('anexoComitePreenchido') != null)
<a id="
anexoComiteTemp
" href="
{{
route
(
'baixar.anexo.temp'
,
[
'eventoId'
=>
$edital
->
id
,
'nomeAnexo'
=>
'anexoAutorizacaoComiteEtica'
])}}
">Arquivo atual</a>
@endif
<input type="
hidden
" id="
anexoComitePreenchido
" name="
anexoComitePreenchido
" value="
{{
old
(
'anexoComitePreenchido'
)
}}
" >
<div class="
input
-
group
">
<div class="
custom
-
file
">
<input disabled type="
file
" class="
custom
-
file
-
input
@
error
(
'anexoComiteEtica'
)
is
-
invalid
@
enderror
" id="
inputEtica
" aria-describedby="
inputGroupFileAddon01
" name="
anexoComiteEtica
">
<label class="
custom
-
file
-
label
" id="
custom
-
file
-
label
" for="
input
GroupFile01
">O arquivo deve ser no formato PDF de até 2mb.</label>
<input disabled type="
file
" class="
custom
-
file
-
input
@
error
(
'anexoComiteEtica'
)
is
-
invalid
@
enderror
" id="
inputEtica
" aria-describedby="
inputGroupFileAddon01
" name="
anexoComiteEtica
"
onchange="
exibirAnexoTemp
(
this
)
"
>
<label class="
custom
-
file
-
label
" id="
custom
-
file
-
label
" for="
input
Etica
">O arquivo deve ser no formato PDF de até 2mb.</label>
</div>
</div>
@error('anexoComiteEtica')
...
...
@@ -204,11 +207,15 @@
<div class="
col
-
sm
-
6
mt
-
3
">
<label for="
anexoPlanilha
" class="
col
-
form
-
label
">{{ __('Anexo do Planilha de Pontuação*:') }}</label>
@if(old('anexoPlanilhaPreenchido') != null)
<a id="
anexoPlanilhaTemp
" href="
{{
route
(
'baixar.anexo.temp'
,
[
'eventoId'
=>
$edital
->
id
,
'nomeAnexo'
=>
'anexoPlanilhaPontuacao'
])}}
">Arquivo atual</a>
@endif
<input type="
hidden
" id="
anexoPlanilhaPreenchido
" name="
anexoPlanilhaPreenchido
" value="
{{
old
(
'anexoPlanilhaPreenchido'
)
}}
" >
<div class="
input
-
group
">
<div class="
custom
-
file
">
<input type="
file
" class="
custom
-
file
-
input
@
error
(
'anexoPlanilha'
)
is
-
invalid
@
enderror
" id="
anexoPlanilha
" aria-describedby="
anexoPlanilhaDescribe
" name="
anexoPlanilha
">
<input type="
file
" class="
custom
-
file
-
input
@
error
(
'anexoPlanilha'
)
is
-
invalid
@
enderror
" id="
anexoPlanilha
" aria-describedby="
anexoPlanilhaDescribe
" name="
anexoPlanilha
"
onchange="
exibirAnexoTemp
(
this
)
"
>
<label class="
custom
-
file
-
label
" id="
custom
-
file
-
label
" for="
anexoPlanilha
">O arquivo deve ser no formato PDF de até 2mb.</label>
</div>
</div>
...
...
@@ -221,13 +228,17 @@
<div class="
col
-
sm
-
6
">
<label for="
nomeTrabalho
" class="
col
-
form
-
label
">{{ __('Justificativa*:') }}</label>
@if(old('anexoJustificativaPreenchido') != null)
<a id="
anexoJustificativaTemp
" href="
{{
route
(
'baixar.anexo.temp'
,
[
'eventoId'
=>
$edital
->
id
,
'nomeAnexo'
=>
'justificativaAutorizacaoEtica'
])}}
">Arquivo atual</a>
@endif
<input type="
hidden
" id="
anexoJustificativaPreenchido
" name="
anexoJustificativaPreenchido
" value="
{{
old
(
'anexoJustificativaPreenchido'
)
}}
" >
<div class="
input
-
group
">
<div class="
custom
-
file
">
<input type="
file
" class="
custom
-
file
-
input
@
error
(
'justificativaAutorizacaoEtica'
)
is
-
invalid
@
enderror
" id="
inputJustificativa
" aria-describedby="
inputGroupFileAddon01
" disabled name="
justificativaAutorizacaoEtica
">
<label class="
custom
-
file
-
label
" id="
custom
-
file
-
label
" for="
input
GroupFile01
">O arquivo deve ser no formato PDF de até 2mb.</label>
<input type="
file
" class="
custom
-
file
-
input
@
error
(
'justificativaAutorizacaoEtica'
)
is
-
invalid
@
enderror
" id="
inputJustificativa
" aria-describedby="
inputGroupFileAddon01
" disabled name="
justificativaAutorizacaoEtica
"
onchange="
exibirAnexoTemp
(
this
)
"
>
<label class="
custom
-
file
-
label
" id="
custom
-
file
-
label
" for="
input
Justificativa
">O arquivo deve ser no formato PDF de até 2mb.</label>
</div>
</div>
@error('justificativaAutorizacaoEtica')
...
...
@@ -241,12 +252,17 @@
{{-- Decisão do CONSU --}}
<div class="
col
-
sm
-
6
">
<label for="
anexoCONSU
" class="
col
-
form
-
label
">{{ __('Decisão do CONSU*:') }}</label>
@if(old('anexoConsuPreenchido') != null)
<a id="
anexoConsuTemp
" href="
{{
route
(
'baixar.anexo.temp'
,
[
'eventoId'
=>
$edital
->
id
,
'nomeAnexo'
=>
'anexoDecisaoCONSU'
])}}
">Arquivo atual</a>
@endif
<input type="
hidden
" id="
anexoConsuPreenchido
" name="
anexoConsuPreenchido
" value="
{{
old
(
'anexoConsuPreenchido'
)
}}
" >
<div class="
input
-
group
">
<div class="
custom
-
file
">
<input type="
file
" class="
custom
-
file
-
input
@
error
(
'anexoCONSU'
)
is
-
invalid
@
enderror
" id="
anexoCONSU
" aria-describedby="
inputGroupFileAddon01
" name="
anexoCONSU
">
<label class="
custom
-
file
-
label
" id="
custom
-
file
-
label
" for="
inputGroupFile01
">O arquivo deve ser no formato PDF de até 2mb.</label>
<input type="
file
" class="
custom
-
file
-
input
@
error
(
'anexoCONSU'
)
is
-
invalid
@
enderror
" id="
anexoCONSU
" aria-describedby="
inputGroupFileAddon01
" name="
anexoCONSU
"
onchange="
exibirAnexoTemp
(
this
)
"
>
<label class="
custom
-
file
-
label
" id="
custom
-
file
-
label
" for="
anexoCONSU
">O arquivo deve ser no formato PDF de até 2mb.</label>
</div>
</div>
@error('anexoCONSU')
...
...
@@ -266,12 +282,17 @@
<div class="
row
" style="
margin
-
top
:
20
px
">
<div class="
col
-
sm
-
12
">
<div id="
participantes
">
<div id="
novoParticipante
">
@php
$countParticipante
= 1; @endphp
@if(old('countParticipante') != null)
@php
$countParticipante
= old('countParticipante') @endphp
@endif
@if (
$countParticipante
!= null &&
$countParticipante
> 0)
@for (
$i
= 0;
$i
<
$countParticipante
;
$i
++)
<div id="
novoParticipante
" style="
display
:
block
;
">
<br>
<h5>Dados do participante</h5>
@php
$i
= 0;
@endphp
<div class="
row
">
<div class="
col
-
sm
-
5
">
<label>Nome Completo*</label>
...
...
@@ -307,6 +328,10 @@
</select>
</div>
</div>
<h6 class="
mb
-
1
">Possui plano de trabalho?</h6>
<button class="
btn
btn
-
primary
mt
-
2
mb
-
2
simPlano
">Sim</button>
<button class="
btn
btn
-
primary
mt
-
2
mb
-
2
naoPlano
">Não</button>
<div id="
planoHabilitado
" >
<h5>Dados do plano de trabalho</h5>
<div class="
row
">
<div class="
col
-
sm
-
12
">
...
...
@@ -314,7 +339,7 @@
<div class="
row
">
<div class="
col
-
sm
-
4
">
<label>Titulo* </label>
<input type="
text
" style="
margin
-
bottom
:
10
px
" class="
form
-
control
@
error
(
'nomePlanoTrabalho'
)
is
-
invalid
@
enderror
" name="
nomePlanoTrabalho
[]
" placeholder="
Nome
"
required
value="
{{
old
(
'nomePlanoTrabalho.'
.
$i
)}}
">
<input type="
text
" style="
margin
-
bottom
:
10
px
" class="
form
-
control
@
error
(
'nomePlanoTrabalho'
)
is
-
invalid
@
enderror
" name="
nomePlanoTrabalho
[]
" placeholder="
Nome
" value="
{{
old
(
'nomePlanoTrabalho.'
.
$i
)}}
">
@error('nomePlanoTrabalho')
<span class="
invalid
-
feedback
" role="
alert
" style="
overflow
:
visible
;
display
:
block
">
...
...
@@ -349,8 +374,13 @@
</div>
</div>
</div>
</div>
</div>
@endfor
@endif
</div>
<input type="
hidden
" name="
countParticipante
" id="
countParticipante
" value="
{{
old
(
'countParticipante'
)
!=
null
?
old
(
'countParticipante'
)
:
1
}}
"></input>
<a href="
#" class="btn btn-primary" id="addCoautor" style="width:100%;margin-top:10px">Participantes +</a>
</
div
>
</
div
>
...
...
@@ -371,7 +401,6 @@
</
div
>
</
div
>
</
div
>
</
div
>
@
endsection
...
...
@@ -379,25 +408,29 @@
<
script
type
=
"text/javascript"
>
$
(
function
()
{
var
qtdLinhas
=
1
;
var
qtdParticipantes
=
2
;
// Coautores
$
(
'#addCoautor'
)
.
click
(
function
(
e
)
{
if
(
qtdParticipantes
<
100
)
{
var
countParticipante
=
document
.
getElementById
(
'countParticipante'
);
if
(
countParticipante
.
value
<
100
)
{
e
.
preventDefault
();
linha
=
montarLinhaInput
();
$
(
'#participantes'
)
.
append
(
linha
);
qtd
Participante
s
++
set
Participante
Div
(
parseInt
(
countParticipante
.
value
)
+
1
);
}
});
function
setParticipanteDiv
(
qtdParticipante
)
{
var
countParticipante
=
document
.
getElementById
(
'countParticipante'
);
countParticipante
.
value
=
qtdParticipante
;
}
$
(
'#addPlanoTrabalho'
)
.
click
(
function
(
e
)
{
e
.
preventDefault
();
if
(
qtdLinhas
<
4
)
{
linha
=
montarLinhaInputPlanoTrabalho
();
$
(
'#planoTrabalho'
)
.
append
(
linha
);
//
$('#planoTrabalho').append(linha);
qtdLinhas
++
;
}
});
// // Exibir modalidade de acordo com a área
// $("#area").change(function() {
...
...
@@ -405,8 +438,9 @@
// addModalidade($(this).val());
// });
$
(
document
)
.
on
(
'click'
,
'.delete'
,
function
()
{
if
(
qtdParticipantes
>
2
)
{
qtdParticipantes
--
;
var
countParticipante
=
document
.
getElementById
(
'countParticipante'
);
if
(
countParticipante
.
value
>=
2
)
{
setParticipanteDiv
(
parseInt
(
countParticipante
.
value
)
-
1
);
$
(
this
)
.
closest
(
'#novoParticipante'
)
.
remove
();
return
false
;
}
...
...
@@ -435,31 +469,65 @@
$
(
'#inputEtica'
)
.
prop
(
'disabled'
,
false
);
$
(
'#inputJustificativa'
)
.
prop
(
'disabled'
,
true
);
exibirErro
(
'comite'
);
// $('#anexoJustificativaPreenchido').val("");
});
$
(
'#buttonNao'
)
.
on
(
'click'
,
function
(
e
)
{
e
.
preventDefault
();
$
(
'#inputEtica'
)
.
prop
(
'disabled'
,
true
);
$
(
'#inputJustificativa'
)
.
prop
(
'disabled'
,
false
);
console
.
log
(
'button nao'
);
exibirErro
(
'justificativa'
);
//$('#anexoComitePreenchido').val("");
});
// document.getElementsByClassName('.simPlano .naoPlano').addEventListener("click", function(event){
// event.preventDefault()
// });
$
(
document
)
.
on
(
'click'
,
'.simPlano'
,
function
(
e
)
{
e
.
preventDefault
();
var
plano
=
$
(
this
)
.
next
()
.
next
()[
0
];
plano
.
style
.
display
=
'block'
;
console
.
log
(
'button sim'
);
});
$
(
document
)
.
on
(
'click'
,
'.naoPlano'
,
function
(
e
)
{
e
.
preventDefault
();
var
plano
=
$
(
this
)
.
next
()[
0
];
plano
.
style
.
display
=
'none'
;
console
.
log
(
'button nao'
);
});
});
function
exibirErro
(
campo
){
console
.
log
(
"o campo "
+
campo
);
function
exibirErro
(
campo
)
{
var
botao
=
document
.
getElementById
(
'botao'
);
botao
.
value
=
"sim"
;
var
comiteErro
=
document
.
getElementById
(
'comiteErro'
);
var
justificativaErro
=
document
.
getElementById
(
'justificativaErro'
);
if
(
campo
===
'comite'
){
if
(
comiteErro
!=
null
||
justificativaErro
!=
null
){
if
(
campo
===
'comite'
)
{
comiteErro
.
style
.
display
=
"block"
;
justificativaErro
.
style
.
display
=
"none"
;
}
else
if
(
campo
===
'justificativa'
){
}
else
if
(
campo
===
'justificativa'
)
{
comiteErro
.
style
.
display
=
"none"
;
justificativaErro
.
style
.
display
=
"block"
;
}
}
}
function
habilitarBotao
(){
var
anexoComitePreenchido
=
document
.
getElementById
(
'anexoComitePreenchido'
);
var
anexoJustificativaPreenchido
=
document
.
getElementById
(
'anexoJustificativaPreenchido'
);
if
(
anexoComitePreenchido
.
value
==
"sim"
){
$
(
'#inputEtica'
)
.
prop
(
'disabled'
,
false
);
$
(
'#inputJustificativa'
)
.
prop
(
'disabled'
,
true
);
exibirErro
(
'comite'
);
}
else
if
(
anexoJustificativaPreenchido
.
value
==
"sim"
){
$
(
'#inputEtica'
)
.
prop
(
'disabled'
,
true
);
$
(
'#inputJustificativa'
)
.
prop
(
'disabled'
,
false
);
exibirErro
(
'justificativa'
);
}
}
// Remover Coautor
// function addModalidade(areaId) {
...
...
@@ -511,11 +579,15 @@
"</select>"
+
"</div>"
+
"</div>"
+
"<h6 class='mb-1'>Possui plano de trabalho?</h6>"
+
"<button class="
+
"'btn btn-primary mt-2 mb-2 mr-1 simPlano'"
+
">Sim</button>"
+
"<button class="
+
"'btn btn-primary mt-2 mb-2 naoPlano'"
+
">Não</button>"
+
"<div id="
+
"planoHabilitado"
+
">"
+
"<h5>Dados do plano de trabalho</h5>"
+
"<div class="
+
"row"
+
">"
+
"<div class="
+
"col-sm-4"
+
">"
+
"<label>Titulo*</label>"
+
"<input"
+
" type="
+
'text'
+
" style="
+
"margin-bottom:10px"
+
" class="
+
"form-control @error('nomePlanoTrabalho') is-invalid @enderror"
+
" name="
+
'nomePlanoTrabalho[]'
+
" placeholder="
+
"Nome"
+
"
required
>"
+
"<input"
+
" type="
+
'text'
+
" style="
+
"margin-bottom:10px"
+
" class="
+
"form-control @error('nomePlanoTrabalho') is-invalid @enderror"
+
" name="
+
'nomePlanoTrabalho[]'
+
" placeholder="
+
"Nome"
+
">"
+
"@error('nomePlanoTrabalho')"
+
"<span class='invalid-feedback'"
+
"role='alert'"
+
"style='overflow: visible; display:block'>"
+
"<strong>{{
$message
}}</strong>"
+
...
...
@@ -547,8 +619,10 @@
"</a>"
+
"</div>"
+
"</div>"
+
"</div>"
+
"</div>"
;
}
// function montarLinhaInputPlanoTrabalho(){
// return "<div class="+"row"+">"+
...
...
@@ -586,35 +660,80 @@
function
areas
()
{
var
grandeArea
=
$
(
'#grandeArea'
)
.
val
();
$
.
getJSON
(
"{{ config('app.url') }}/naturezas/areas/"
+
grandeArea
,
function
(
dados
){
if
(
dados
.
length
>
0
){
var
option
=
'<option>-- Área --</option>'
;
$
.
each
(
dados
,
function
(
i
,
obj
){
option
+=
'<option value="'
+
obj
.
id
+
'">'
+
obj
.
nome
+
'</option>'
;
function
(
dados
)
{
if
(
dados
.
length
>
0
)
{
if
(
$
(
'#oldArea'
)
.
val
()
==
null
||
$
(
'#oldArea'
)
.
val
()
==
""
){
var
option
=
'<option selected disabled>-- Área --</option>'
;
}
$
.
each
(
dados
,
function
(
i
,
obj
)
{
if
(
$
(
'#oldArea'
)
.
val
()
!=
null
&&
$
(
'#oldArea'
)
.
val
()
==
obj
.
id
){
option
+=
'<option selected value="'
+
obj
.
id
+
'">'
+
obj
.
nome
+
'</option>'
;
}
else
{
option
+=
'<option value="'
+
obj
.
id
+
'">'
+
obj
.
nome
+
'</option>'
;
}
})
}
else
{
var
option
=
"<option>-- Área --</option>"
;
var
option
=
"<option
selected disabled
>-- Área --</option>"
;
}
$
(
'#area'
)
.
html
(
option
)
.
show
();
subareas
();
})
}
function
subareas
()
{
var
area
=
$
(
'#area'
)
.
val
();
$
.
getJSON
(
"{{ config('app.url') }}/naturezas/subarea/"
+
area
,
function
(
dados
){
if
(
dados
.
length
>
0
){
var
option
=
'<option>-- Sub Área --</option>'
;
$
.
each
(
dados
,
function
(
i
,
obj
){
option
+=
'<option value="'
+
obj
.
id
+
'">'
+
obj
.
nome
+
'</option>'
;
function
(
dados
)
{
if
(
dados
.
length
>
0
)
{
if
(
$
(
'#oldSubArea'
)
.
val
()
==
null
||
$
(
'#oldSubArea'
)
.
val
()
==
""
){
var
option
=
'<option selected disabled>-- Sub Área --</option>'
;
}
$
.
each
(
dados
,
function
(
i
,
obj
)
{
if
(
$
(
'#oldSubArea'
)
.
val
()
!=
null
&&
$
(
'#oldSubArea'
)
.
val
()
==
obj
.
id
){
option
+=
'<option selected value="'
+
obj
.
id
+
'">'
+
obj
.
nome
+
'</option>'
;
}
else
{
option
+=
'<option value="'
+
obj
.
id
+
'">'
+
obj
.
nome
+
'</option>'
;
}
})
}
else
{
var
option
=
"<option>-- Sub Área --</option>"
;
var
option
=
"<option
selected disabled
>-- Sub Área --</option>"
;
}
$
(
'#subArea'
)
.
html
(
option
)
.
show
();
})
}
function
exibirAnexoTemp
(
file
){
console
.
log
(
file
.
id
);
if
(
file
.
id
===
"anexoProjeto"
){
var
anexoProjetoPreenchido
=
document
.
getElementById
(
'anexoProjetoPreenchido'
);
anexoProjetoPreenchido
.
value
=
"sim"
;
}
if
(
file
.
id
===
"anexoLattesCoordenador"
){
var
anexoLattesPreenchido
=
document
.
getElementById
(
'anexoLattesPreenchido'
);
anexoLattesPreenchido
.
value
=
"sim"
;
}
if
(
file
.
id
===
"inputEtica"
){
var
anexoComitePreenchido
=
document
.
getElementById
(
'anexoComitePreenchido'
);
var
anexoJustificativaPreenchido
=
document
.
getElementById
(
'anexoJustificativaPreenchido'
);
anexoComitePreenchido
.
value
=
"sim"
;
anexoJustificativaPreenchido
.
value
=
""
;
}
if
(
file
.
id
===
"inputJustificativa"
){
var
anexoComitePreenchido
=
document
.
getElementById
(
'anexoComitePreenchido'
);
var
anexoJustificativaPreenchido
=
document
.
getElementById
(
'anexoJustificativaPreenchido'
);
anexoJustificativaPreenchido
.
value
=
"sim"
;
anexoComitePreenchido
.
value
=
""
;
}
if
(
file
.
id
===
"anexoCONSU"
){
var
anexoConsuPreenchido
=
document
.
getElementById
(
'anexoConsuPreenchido'
);
anexoConsuPreenchido
.
value
=
"sim"
;
}
if
(
file
.
id
===
"anexoPlanilha"
){
var
anexoPlanilhaPreenchido
=
document
.
getElementById
(
'anexoPlanilhaPreenchido'
);
anexoPlanilhaPreenchido
.
value
=
"sim"
;
}
}
window
.
onload
=
areas
();
window
.
onload
=
habilitarBotao
();
</
script
>
@
endsection
\ No newline at end of file
resources/views/evento/visualizarEvento.blade.php
View file @
72241b3c
...
...
@@ -104,7 +104,7 @@
<
div
class
=
"row margin"
>
<
div
class
=
"col-sm-12 info-evento"
>
<
h4
>
Revis
ão
de
Projetos
</
h4
>
<
h4
>
Avaliaç
ão
de
Projetos
</
h4
>
<
p
>
<
img
class
=
""
src
=
"
{
{asset('img/icons/calendar-evento.svg')}
}
"
alt
=
""
>
{{
date
(
'd/m/Y'
,
strtotime
(
$evento
->
inicioRevisao
))}}
-
{{
date
(
'd/m/Y'
,
strtotime
(
$evento
->
fimRevisao
))}}
...
...
resources/views/layouts/app.blade.php
View file @
72241b3c
...
...
@@ -85,7 +85,7 @@
</div>
<a
href=
"{{ route('register') }}"
class=
"btn navbar-text btn-azul-destaque negrito"
style=
"color: rgb(0, 140, 255);"
>
{{ __('Cadastre-se') }}
</a>
@else
<a
href=
"{{route('
visualizarEvento
')}}"
class=
"btn navbar-text negrito "
style=
"color: rgb(0, 140, 255);"
>
Home
</a>
<a
href=
"{{route('
coord.home
')}}"
class=
"btn navbar-text negrito "
style=
"color: rgb(0, 140, 255);"
>
Home
</a>
<a
id=
"navbarDropdown"
class=
"btn navbar-text negrito dropdown-toggle"
style=
"color: rgb(0, 140, 255);"
href=
"#"
role=
"button"
data-toggle=
"dropdown"
aria-haspopup=
"true"
aria-expanded=
"false"
v-pre
>
{{ Auth::user()->name }}
<span
class=
"caret"
></span>
...
...
resources/views/naturezas/index.blade.php
View file @
72241b3c
...
...
@@ -111,14 +111,16 @@
{{
$natureza
->
nome
}}
</
td
>
<
td
>
{{
$natureza
->
creat_at
}}
{{
$natureza
->
creat_at
}}
</
td
>
<
td
>
@
if
(
is_null
(
$natureza
->
projetos
->
first
()))
<
div
class
=
"btn-group dropright dropdown-options"
>
<
a
id
=
"options"
class
=
"dropdown-toggle "
data
-
toggle
=
"dropdown"
aria
-
haspopup
=
"true"
aria
-
expanded
=
"false"
>
<
img
src
=
"
{
{asset('img/icons/ellipsis-v-solid.svg')}
}
"
style
=
"width:8px"
>
</
a
>
<
div
class
=
"dropdown-menu"
>
<
a
class
=
"dropdown-item"
data
-
toggle
=
"modal"
data
-
target
=
"#modalEditCenter
{
{$natureza->id}
}
"
class
=
"dropdown-item"
>
<
img
src
=
"
{
{asset('img/icons/edit-regular.svg')}
}
"
class
=
"icon-card"
alt
=
""
>
{{
__
(
'Editar'
)}}
...
...
@@ -129,6 +131,11 @@
</
a
>
</
div
>
</
div
>
@
else
<
div
style
=
"float: right;"
>
Fixada
em
um
edital
</
div
>
@
endif
</
td
>
</
tr
>
@
endforeach
...
...
resources/views/participante/editais.blade.php
0 → 100644
View file @
72241b3c
@
extends
(
'layouts.app'
)
@
section
(
'content'
)
<
div
class
=
"container"
style
=
"margin-top: 100px;"
>
<
div
class
=
"container"
>
<
div
class
=
"row"
>
<
div
class
=
"col-sm-12"
>
<
h3
>
Editais
</
h3
>
</
div
>
</
div
>
</
div
>
<
hr
>
<
table
class
=
"table table-bordered"
>
<
thead
>
<
tr
>
<
th
scope
=
"col"
>
Nome
do
Edital
</
th
>
<
th
scope
=
"col"
>
Status
</
th
>
<
th
scope
=
"col"
>
Data
de
Criação
</
th
>
<
th
scope
=
"col"
>
Baixar
edital
</
th
>
<
th
scope
=
"col"
>
Opção
</
th
>
</
tr
>
</
thead
>
<
tbody
>
@
foreach
(
$eventos
as
$evento
)
<
tr
>
<
td
>
<
a
href
=
"{{ route('evento.visualizar',['id'=>
$evento->id
]) }}"
class
=
"visualizarEvento"
>
{{
$evento
->
nome
}}
</
a
>
</
td
>
<
td
></
td
>
<
td
>
{{
$evento
->
created_at
}}
</
td
>
<
td
style
=
"text-align: center"
>
<
a
href
=
"{{ route('baixar.edital', ['id' =>
$evento->id
]) }}"
>
<
img
src
=
"
{
{asset('img/icons/file-download-solid.svg')}
}
"
width
=
"15px"
>
</
a
>
</
td
>
<
td
>
<
div
class
=
"btn-group dropright dropdown-options"
>
<
a
id
=
"options"
class
=
"dropdown-toggle "
data
-
toggle
=
"dropdown"
aria
-
haspopup
=
"true"
aria
-
expanded
=
"false"
>
<
img
src
=
"
{
{asset('img/icons/ellipsis-v-solid.svg')}
}
"
style
=
"width:8px"
>
</
a
>
<
div
class
=
"dropdown-menu"
>
<
a
href
=
"{{ route('participante.edital', ['id' =>
$evento->id
]) }}"
class
=
"dropdown-item"
style
=
"text-align: center"
>
Meus
projetos
</
a
>
<
a
href
=
""
class
=
"dropdown-item"
style
=
"text-align: center"
>
Visualizar
resultado
</
a
>
{{
--
<
a
href
=
""
class
=
"dropdown-item"
style
=
"text-align: center"
>
Resultado
preeliminar
</
a
>
<
a
href
=
""
class
=
"dropdown-item"
style
=
"text-align: center"
>
Resultado
final
</
a
>
--
}}
</
div
>
</
div
>
</
td
>
</
tr
>
@
endforeach
</
tbody
>
</
table
>
</
div
>
@
endsection
@
section
(
'javascript'
)
<
script
>
</
script
>
@
endsection
resources/views/participante/index.blade.php
View file @
72241b3c
...
...
@@ -8,7 +8,7 @@
<
div
class
=
"row justify-content-center d-flex align-items-center"
>
<
div
class
=
"col-sm-4 d-flex justify-content-center "
>
<
a
href
=
"
{
{route('
admin
.editais')}
}
"
style
=
"text-decoration:none; color: inherit;"
>
<
a
href
=
"
{
{route('
participante
.editais')}
}
"
style
=
"text-decoration:none; color: inherit;"
>
<
div
class
=
"card text-center "
style
=
"border-radius: 30px; width: 18rem;"
>
<
div
class
=
"card-body d-flex justify-content-center"
>
<
h2
style
=
"padding-top:15px"
>
Editais
</
h2
>
...
...
resources/views/projeto/index.blade.php
View file @
72241b3c
...
...
@@ -12,9 +12,9 @@
<
div
class
=
"col-sm-2"
>
<!--
Se
usuário
não
é
proponente
,
redirecionar
para
view
de
cadastro
-->
@
if
(
Auth
::
user
()
->
proponentes
==
null
)
<
a
href
=
"{{ route('proponente.create' )}}"
class
=
"btn btn-primary"
>
Cria
r
projeto
</
a
>
<
a
href
=
"{{ route('proponente.create' )}}"
class
=
"btn btn-primary"
>
Submete
r
projeto
</
a
>
@
else
<
a
href
=
"{{ route('trabalho.index', ['id' =>
$edital->id
] )}}"
class
=
"btn btn-primary"
>
Cria
r
projeto
</
a
>
<
a
href
=
"{{ route('trabalho.index', ['id' =>
$edital->id
] )}}"
class
=
"btn btn-primary"
>
Submete
r
projeto
</
a
>
@
endif
</
div
>
</
div
>
...
...
resources/views/proponente/cadastro.blade.php
View file @
72241b3c
...
...
@@ -15,6 +15,14 @@
</
div
>
</
div
>
@
endif
@
if
(
isset
(
$mensagem
))
<
div
class
=
"col-sm-12"
>
<
br
>
<
div
class
=
"alert alert-danger"
>
<
p
>
{{
$mensagem
}}
</
p
>
</
div
>
</
div
>
@
endif
</
div
>
<
br
>
<
form
method
=
"POST"
action
=
"{{ route('proponente.store') }}"
>
...
...
resources/views/proponente/editais.blade.php
0 → 100644
View file @
72241b3c
@
extends
(
'layouts.app'
)
@
section
(
'content'
)
<
div
class
=
"container"
style
=
"margin-top: 100px;"
>
<
div
class
=
"container"
>
<
div
class
=
"row"
>
<
div
class
=
"col-sm-12"
>
<
h3
>
Editais
</
h3
>
</
div
>
</
div
>
</
div
>
<
hr
>
<
table
class
=
"table table-bordered"
>
<
thead
>
<
tr
>
<
th
scope
=
"col"
>
Nome
do
Edital
</
th
>
<
th
scope
=
"col"
>
Inicio
da
Submissão
</
th
>
<
th
scope
=
"col"
>
Fim
da
Submissão
</
th
>
<
th
scope
=
"col"
>
Data
do
Resultado
</
th
>
<
th
scope
=
"col"
>
Baixar
edital
</
th
>
<
th
scope
=
"col"
>
Opção
</
th
>
</
tr
>
</
thead
>
<
tbody
>
@
foreach
(
$eventos
as
$evento
)
<
tr
>
<
td
>
<
a
href
=
"{{ route('evento.visualizar',['id'=>
$evento->id
]) }}"
class
=
"visualizarEvento"
>
{{
$evento
->
nome
}}
</
a
>
</
td
>
<
td
>
{{
date
(
'd/m/Y'
,
strtotime
(
$evento
->
inicioSubmissao
))
}}
</
td
>
<
td
>
{{
date
(
'd/m/Y'
,
strtotime
(
$evento
->
fimSubmissao
))
}}
</
td
>
<
td
>
{{
date
(
'd/m/Y'
,
strtotime
(
$evento
->
created_at
))
}}
</
td
>
<
td
style
=
"text-align: center"
>
<
a
href
=
"{{ route('baixar.edital', ['id' =>
$evento->id
]) }}"
>
<
img
src
=
"
{
{asset('img/icons/file-download-solid.svg')}
}
"
width
=
"15px"
>
</
a
>
</
td
>
<
td
>
<
div
class
=
"btn-group dropright dropdown-options"
>
<
a
id
=
"options"
class
=
"dropdown-toggle "
data
-
toggle
=
"dropdown"
aria
-
haspopup
=
"true"
aria
-
expanded
=
"false"
>
<
img
src
=
"
{
{asset('img/icons/ellipsis-v-solid.svg')}
}
"
style
=
"width:8px"
>
</
a
>
<
div
class
=
"dropdown-menu"
>
<
a
href
=
"{{ route('projetos.edital', ['id' =>
$evento->id
]) }}"
class
=
"dropdown-item"
style
=
"text-align: center"
>
Projetos
submetidos
</
a
>
<
a
href
=
""
class
=
"dropdown-item"
style
=
"text-align: center"
>
Visualizar
resultado
</
a
>
{{
--
<
a
href
=
""
class
=
"dropdown-item"
style
=
"text-align: center"
>
Recurso
ao
resultado
</
a
>
<
a
href
=
""
class
=
"dropdown-item"
style
=
"text-align: center"
>
Resultado
preeliminar
</
a
>
<
a
href
=
""
class
=
"dropdown-item"
style
=
"text-align: center"
>
Resultado
final
</
a
>
--
}}
</
div
>
</
div
>
</
td
>
</
tr
>
@
endforeach
</
tbody
>
</
table
>
</
div
>
@
endsection
@
section
(
'javascript'
)
<
script
>
</
script
>
@
endsection
resources/views/proponente/index.blade.php
View file @
72241b3c
...
...
@@ -8,7 +8,7 @@
<
div
class
=
"row justify-content-center d-flex align-items-center"
>
<
div
class
=
"col-sm-3 d-flex justify-content-center "
>
<
a
href
=
"
{
{route('
admin
.editais')}
}
"
style
=
"text-decoration:none; color: inherit;"
>
<
a
href
=
"
{
{route('
proponente
.editais')}
}
"
style
=
"text-decoration:none; color: inherit;"
>
<
div
class
=
"card text-center "
style
=
"border-radius: 30px; width: 13rem;height: 15rem;"
>
<
div
class
=
"card-body d-flex justify-content-center"
>
<
h2
style
=
"padding-top:15px"
>
Editais
</
h2
>
...
...
resources/views/user/perfilUser.blade.php
View file @
72241b3c
...
...
@@ -2,7 +2,6 @@
@
section
(
'content'
)
@
if
(
Auth
()
->
user
()
->
usuarioTemp
==
null
)
<
div
class
=
"container content"
>
<
div
class
=
"row titulo"
>
<
h1
>
Perfil
</
h1
>
...
...
@@ -20,7 +19,7 @@
<
input
hidden
name
=
"id"
value
=
"
{
{$user->id}
}
"
>
<
div
class
=
"col-md-8"
>
<
label
for
=
"name"
class
=
"col-form-label"
>
{{
__
(
'Nome Completo'
)
}}
</
label
>
<
input
value
=
"
{
{$user->name}
}
"
id
=
"name"
type
=
"text"
class
=
"form-control @error('name') is-invalid @enderror"
name
=
"name"
value
=
"{{ old('name') }}"
required
autocomplete
=
"name"
autofocus
>
<
input
value
=
"
{
{$user->name}
}
"
id
=
"name"
type
=
"text"
class
=
"form-control @error('name') is-invalid @enderror"
name
=
"name"
value
=
"{{ old('name') }}"
required
autocomplete
=
"name"
autofocus
disabled
>
@
error
(
'name'
)
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
...
...
@@ -31,7 +30,7 @@
<
div
class
=
"col-md-4"
>
<
label
for
=
"cpf"
class
=
"col-form-label"
>
{{
__
(
'CPF'
)
}}
</
label
>
<
input
value
=
"
{
{$user->cpf}
}
"
id
=
"cpf"
type
=
"text"
class
=
"form-control @error('cpf') is-invalid @enderror"
name
=
"cpf"
value
=
"{{ old('cpf') }}"
required
autocomplete
=
"cpf"
autofocus
>
<
input
value
=
"
{
{$user->cpf}
}
"
id
=
"cpf"
type
=
"text"
class
=
"form-control @error('cpf') is-invalid @enderror"
name
=
"cpf"
value
=
"{{ old('cpf') }}"
required
autocomplete
=
"cpf"
autofocus
disabled
>
@
error
(
'cpf'
)
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
...
...
@@ -45,7 +44,7 @@
<
div
class
=
"col-md-8"
>
<
label
for
=
"instituicao"
class
=
"col-form-label"
>
{{
__
(
'Instituição de Ensino'
)
}}
</
label
>
<
input
value
=
"
{
{$user->instituicao}
}
"
id
=
"instituicao"
type
=
"text"
class
=
"form-control @error('instituicao') is-invalid @enderror"
name
=
"instituicao"
value
=
"{{ old('instituicao') }}"
required
autocomplete
=
"instituicao"
autofocus
>
<
input
value
=
"
{
{$user->instituicao}
}
"
id
=
"instituicao"
type
=
"text"
class
=
"form-control @error('instituicao') is-invalid @enderror"
name
=
"instituicao"
value
=
"{{ old('instituicao') }}"
disabled
required
autocomplete
=
"instituicao"
autofocus
>
@
error
(
'instituicao'
)
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
...
...
@@ -56,7 +55,7 @@
<
div
class
=
"col-md-4"
>
<
label
for
=
"celular"
class
=
"col-form-label"
>
{{
__
(
'Celular'
)
}}
</
label
>
<
input
value
=
"
{
{$user->celular}
}
"
id
=
"celular"
type
=
"text"
class
=
"form-control @error('celular') is-invalid @enderror"
name
=
"celular"
value
=
"{{ old('celular') }}"
required
autocomplete
=
"celular"
autofocus
>
<
input
value
=
"
{
{$user->celular}
}
"
id
=
"celular"
type
=
"text"
class
=
"form-control @error('celular') is-invalid @enderror"
name
=
"celular"
value
=
"{{ old('celular') }}"
disabled
required
autocomplete
=
"celular"
autofocus
>
@
error
(
'celular'
)
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
...
...
@@ -71,7 +70,7 @@
<
div
class
=
"col-md-12"
>
<
label
for
=
"instituicao"
class
=
"col-form-label"
>
{{
__
(
'E-mail'
)
}}
</
label
>
<
input
value
=
"
{
{$user->email}
}
"
id
=
"email"
type
=
"text"
class
=
"form-control @error('email') is-invalid @enderror"
name
=
"instituicao"
value
=
"{{ old('email') }}"
autocomplete
=
"email"
autofocus
>
<
input
value
=
"
{
{$user->email}
}
"
id
=
"email"
type
=
"text"
class
=
"form-control @error('email') is-invalid @enderror"
name
=
"instituicao"
value
=
"{{ old('email') }}"
disabled
autocomplete
=
"email"
autofocus
>
@
error
(
'instituicao'
)
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
...
...
@@ -82,7 +81,7 @@
</
div
>
<
div
class
=
"row subtitulo"
style
=
"margin-top:20px"
>
{{
--
<
div
class
=
"row subtitulo"
style
=
"margin-top:20px"
>
<
div
class
=
"col-sm-12"
>
<
p
>
Permissões
</
p
>
</
div
>
...
...
@@ -114,30 +113,30 @@
Não
tem
permissão
de
Avaliador
</
div
>
</
div
>
@
endif
@
endif
--
}}
@
if
(
!
(
is_null
(
$proponente
)))
<
div
class
=
"form-group row justify-content-center"
>
{{
--
<
div
class
=
"form-group row justify-content-center"
>
<
div
class
=
"col-md-12"
>
Tem
permissão
de
proponente
</
div
>
</
div
>
</
div
>
--
}}
<
div
class
=
"row subtitulo"
style
=
"margin-top:20px"
>
<
div
class
=
"col-sm-12"
>
<
p
>
Dados
de
proponente
</
p
>
</
div
>
</
div
>
<
label
class
=
"col-form-label"
>
{{
__
(
'SIAPE'
)
}}
</
label
>
<
input
value
=
"
{
{$proponente->SIAPE}
}
"
id
=
"SIAPE"
type
=
"text"
class
=
"form-control @error('SIAPE') is-invalid @enderror"
name
=
"SIAPE"
autocomplete
=
"SIAPE"
>
<
input
value
=
"
{
{$proponente->SIAPE}
}
"
id
=
"SIAPE"
type
=
"text"
class
=
"form-control @error('SIAPE') is-invalid @enderror"
name
=
"SIAPE"
disabled
autocomplete
=
"SIAPE"
>
<
label
class
=
"col-form-label"
>
{{
__
(
'Cargo'
)
}}
</
label
>
<
input
value
=
"
{
{$proponente->cargo}
}
"
id
=
"cargo"
type
=
"text"
class
=
"form-control @error('cargo') is-invalid @enderror"
name
=
"cargo"
autocomplete
=
"cargo"
>
<
input
value
=
"
{
{$proponente->cargo}
}
"
id
=
"cargo"
type
=
"text"
class
=
"form-control @error('cargo') is-invalid @enderror"
name
=
"cargo"
disabled
autocomplete
=
"cargo"
>
<
label
class
=
"col-form-label"
>
{{
__
(
'Vínculo'
)
}}
</
label
>
<
input
value
=
"
{
{$proponente->vinculo}
}
"
id
=
"vinculo"
type
=
"text"
class
=
"form-control @error('vinculo') is-invalid @enderror"
name
=
"vinculo"
autocomplete
=
"vinculo"
>
<
input
value
=
"
{
{$proponente->vinculo}
}
"
id
=
"vinculo"
type
=
"text"
class
=
"form-control @error('vinculo') is-invalid @enderror"
name
=
"vinculo"
disabled
autocomplete
=
"vinculo"
>
<
label
class
=
"col-form-label"
>
{{
__
(
'Titulação Máxima'
)
}}
</
label
>
<
select
id
=
"titulacaoMaxima"
class
=
"form-control @error('titulacaoMaxima') is-invalid @enderror"
name
=
"titulacaoMaxima"
>
<
select
id
=
"titulacaoMaxima"
class
=
"form-control @error('titulacaoMaxima') is-invalid @enderror"
name
=
"titulacaoMaxima"
disabled
>
<
option
value
=
""
disabled
selected
hidden
>--
Titulação
--</
option
>
<
option
@
if
(
$proponente
->
titulacaoMaxima
==
"Doutorado"
)
selected
@
endif
value
=
"Doutorado"
>
Doutorado
</
option
>
<
option
@
if
(
$proponente
->
titulacaoMaxima
==
"Mestrado"
)
selected
@
endif
value
=
"Mestrado"
>
Mestrado
</
option
>
...
...
@@ -147,30 +146,30 @@
</
select
>
<
label
class
=
"col-form-label"
>
{{
__
(
'Ano Titulação'
)
}}
</
label
>
<
input
value
=
"
{
{$proponente->anoTitulacao}
}
"
id
=
"anoTitulacao"
type
=
"text"
class
=
"form-control @error('anoTitulacao') is-invalid @enderror"
name
=
"anoTitulacao"
autocomplete
=
"anoTitulacao"
>
<
input
value
=
"
{
{$proponente->anoTitulacao}
}
"
id
=
"anoTitulacao"
type
=
"text"
class
=
"form-control @error('anoTitulacao') is-invalid @enderror"
disabled
name
=
"anoTitulacao"
autocomplete
=
"anoTitulacao"
>
<
label
class
=
"col-form-label"
>
{{
__
(
'Área de Formação'
)
}}
</
label
>
<
input
value
=
"
{
{$proponente->areaFormacao}
}
"
id
=
"areaFormacao"
type
=
"text"
class
=
"form-control @error('areaFormacao') is-invalid @enderror"
name
=
"areaFormacao"
autocomplete
=
"areaFormacao"
>
<
input
value
=
"
{
{$proponente->areaFormacao}
}
"
id
=
"areaFormacao"
type
=
"text"
class
=
"form-control @error('areaFormacao') is-invalid @enderror"
disabled
name
=
"areaFormacao"
autocomplete
=
"areaFormacao"
>
<
label
class
=
"col-form-label"
>
{{
__
(
'Bolsista Produtividade'
)
}}
</
label
>
<
input
value
=
"
{
{$proponente->bolsistaProdutividade}
}
"
id
=
"bolsistaProdutividade"
type
=
"text"
class
=
"form-control @error('bolsistaProdutividade') is-invalid @enderror"
name
=
"bolsistaProdutividade"
autocomplete
=
"bolsistaProdutividade"
>
<
input
value
=
"
{
{$proponente->bolsistaProdutividade}
}
"
id
=
"bolsistaProdutividade"
type
=
"text"
class
=
"form-control @error('bolsistaProdutividade') is-invalid @enderror"
disabled
name
=
"bolsistaProdutividade"
autocomplete
=
"bolsistaProdutividade"
>
<
label
class
=
"col-form-label"
>
{{
__
(
'Nível'
)
}}
</
label
>
<
input
value
=
"
{
{$proponente->nivel}
}
"
id
=
"nivel"
type
=
"text"
class
=
"form-control @error('nivel') is-invalid @enderror"
name
=
"nivel"
autocomplete
=
"nivel"
>
<
input
value
=
"
{
{$proponente->nivel}
}
"
id
=
"nivel"
type
=
"text"
class
=
"form-control @error('nivel') is-invalid @enderror"
name
=
"nivel"
disabled
autocomplete
=
"nivel"
>
<
label
class
=
"col-form-label"
>
{{
__
(
'Link do Lattes'
)
}}
</
label
>
<
input
value
=
"
{
{$proponente->linkLattes}
}
"
id
=
"linkLattes"
type
=
"text"
class
=
"form-control @error('linkLattes') is-invalid @enderror"
name
=
"linkLattes"
autocomplete
=
"linkLattes"
>
<
input
value
=
"
{
{$proponente->linkLattes}
}
"
id
=
"linkLattes"
type
=
"text"
class
=
"form-control @error('linkLattes') is-invalid @enderror"
name
=
"linkLattes"
disabled
autocomplete
=
"linkLattes"
>
<
br
>
@
else
<
div
class
=
"form-group row justify-content-center"
>
{{
--
<
div
class
=
"form-group row justify-content-center"
>
<
div
class
=
"col-md-12"
>
Não
tem
permissão
de
proponente
</
div
>
</
div
>
</
div
>
--
}}
@
endif
@
if
(
!
(
is_null
(
$participante
)))
{{
--
@
if
(
!
(
is_null
(
$participante
)))
<
div
class
=
"form-group row justify-content-center"
>
<
div
class
=
"col-md-12"
>
Tem
permissão
de
participante
...
...
@@ -182,7 +181,7 @@
Não
tem
permissão
de
participante
</
div
>
</
div
>
@
endif
@
endif
--
}}
{{
--
<
div
class
=
"row subtitulo"
style
=
"margin-top:20px"
>
<
div
class
=
"col-sm-12"
>
<
p
>
Endereço
</
p
>
...
...
@@ -304,290 +303,7 @@
</
form
>
</
div
>
</
div
>
@
else
<
div
class
=
"container content"
>
<
div
class
=
"row titulo"
>
<
h1
>
Perfil
</
h1
>
</
div
>
<
div
class
=
"row subtitulo"
>
<
div
class
=
"col-sm-12"
>
<
p
>
Informações
Pessoais
</
p
>
</
div
>
</
div
>
<
form
method
=
"POST"
action
=
"{{ route('perfil') }}"
>
@
csrf
<
div
class
=
"row justify-content-center"
>
<
input
hidden
name
=
"id"
value
=
"
{
{$user->id}
}
"
>
<
div
class
=
"col-md-8"
>
<
label
for
=
"name"
class
=
"col-form-label"
>
{{
__
(
'Name'
)
}}
</
label
>
<
input
value
=
"
{
{$user->name}
}
"
id
=
"name"
type
=
"text"
class
=
"form-control @error('name') is-invalid @enderror"
name
=
"name"
value
=
"{{ old('name') }}"
required
autocomplete
=
"name"
autofocus
>
@
error
(
'name'
)
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
<
strong
>
{{
$message
}}
</
strong
>
</
span
>
@
enderror
</
div
>
<
div
class
=
"col-md-4"
>
<
label
for
=
"cpf"
class
=
"col-form-label"
>
{{
__
(
'CPF'
)
}}
</
label
>
<
input
value
=
"
{
{$user->cpf}
}
"
id
=
"cpf"
type
=
"text"
class
=
"form-control @error('cpf') is-invalid @enderror"
name
=
"cpf"
value
=
"{{ old('cpf') }}"
required
autocomplete
=
"cpf"
autofocus
>
@
error
(
'cpf'
)
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
<
strong
>
{{
$message
}}
</
strong
>
</
span
>
@
enderror
</
div
>
</
div
>
<
div
class
=
"row justify-content-center"
>
<
div
class
=
"col-md-8"
>
<
label
for
=
"instituicao"
class
=
"col-form-label"
>
{{
__
(
'Instituição de Ensino'
)
}}
</
label
>
<
input
value
=
"
{
{$user->instituicao}
}
"
id
=
"instituicao"
type
=
"text"
class
=
"form-control @error('instituicao') is-invalid @enderror"
name
=
"instituicao"
value
=
"{{ old('instituicao') }}"
required
autocomplete
=
"instituicao"
autofocus
>
@
error
(
'instituicao'
)
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
<
strong
>
{{
$message
}}
</
strong
>
</
span
>
@
enderror
</
div
>
<
div
class
=
"col-md-4"
>
<
label
for
=
"celular"
class
=
"col-form-label"
>
{{
__
(
'Celular'
)
}}
</
label
>
<
input
value
=
"
{
{$user->celular}
}
"
id
=
"celular"
type
=
"number"
class
=
"form-control @error('celular') is-invalid @enderror"
name
=
"celular"
value
=
"{{ old('celular') }}"
required
autocomplete
=
"celular"
autofocus
>
@
error
(
'celular'
)
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
<
strong
>
{{
$message
}}
</
strong
>
</
span
>
@
enderror
</
div
>
</
div
>
<
div
class
=
"row subtitulo"
style
=
"margin-top:20px"
>
<
div
class
=
"col-sm-12"
>
<
p
>
Permissões
</
p
>
</
div
>
</
div
>
@
if
(
!
(
is_null
(
$adminResp
)))
<
div
class
=
"form-group row justify-content-center"
>
<
div
class
=
"col-md-12"
>
Tem
permissão
de
Administrador
Responsável
</
div
>
</
div
>
@
else
<
div
class
=
"form-group row justify-content-center"
>
<
div
class
=
"col-md-12"
>
Não
tem
permissão
de
Administrador
Responsável
</
div
>
</
div
>
@
endif
@
if
(
!
(
is_null
(
$avaliador
)))
<
div
class
=
"form-group row justify-content-center"
>
<
div
class
=
"col-md-12"
>
Tem
permissão
de
Avaliador
</
div
>
</
div
>
@
else
<
div
class
=
"form-group row justify-content-center"
>
<
div
class
=
"col-md-12"
>
Não
tem
permissão
de
Avaliador
</
div
>
</
div
>
@
endif
@
if
(
!
(
is_null
(
$proponente
)))
<
div
class
=
"form-group row justify-content-center"
>
<
div
class
=
"col-md-12"
>
Tem
permissão
de
proponente
</
div
>
</
div
>
<
div
class
=
"row subtitulo"
style
=
"margin-top:20px"
>
<
div
class
=
"col-sm-12"
>
<
p
>
Dados
de
proponente
</
p
>
</
div
>
</
div
>
<
label
class
=
"col-form-label"
>
{{
__
(
'SIAPE'
)
}}
</
label
>
<
input
value
=
"
{
{$proponente->SIAPE}
}
"
id
=
"SIAPE"
type
=
"text"
class
=
"form-control @error('SIAPE') is-invalid @enderror"
name
=
"SIAPE"
autocomplete
=
"SIAPE"
>
<
label
class
=
"col-form-label"
>
{{
__
(
'Cargo'
)
}}
</
label
>
<
input
value
=
"
{
{$proponente->cargo}
}
"
id
=
"cargo"
type
=
"text"
class
=
"form-control @error('cargo') is-invalid @enderror"
name
=
"cargo"
autocomplete
=
"cargo"
>
<
label
class
=
"col-form-label"
>
{{
__
(
'Vínculo'
)
}}
</
label
>
<
input
value
=
"
{
{$proponente->vinculo}
}
"
id
=
"vinculo"
type
=
"text"
class
=
"form-control @error('vinculo') is-invalid @enderror"
name
=
"vinculo"
autocomplete
=
"vinculo"
>
<
label
class
=
"col-form-label"
>
{{
__
(
'Titulação Máxima'
)
}}
</
label
>
<
input
value
=
"
{
{$proponente->titulacaoMaxima}
}
"
id
=
"titulacaoMaxima"
type
=
"text"
class
=
"form-control @error('titulacaoMaxima') is-invalid @enderror"
name
=
"titulacaoMaxima"
autocomplete
=
"titulacaoMaxima"
>
<
label
class
=
"col-form-label"
>
{{
__
(
'Ano Titulação'
)
}}
</
label
>
<
input
value
=
"
{
{$proponente->anoTitulacao}
}
"
id
=
"anoTitulacao"
type
=
"text"
class
=
"form-control @error('anoTitulacao') is-invalid @enderror"
name
=
"anoTitulacao"
autocomplete
=
"anoTitulacao"
>
<
label
class
=
"col-form-label"
>
{{
__
(
'Área de Formação'
)
}}
</
label
>
<
input
value
=
"
{
{$proponente->areaFormacao}
}
"
id
=
"areaFormacao"
type
=
"text"
class
=
"form-control @error('areaFormacao') is-invalid @enderror"
name
=
"areaFormacao"
autocomplete
=
"areaFormacao"
>
<
label
class
=
"col-form-label"
>
{{
__
(
'Bolsista Produtividade'
)
}}
</
label
>
<
input
value
=
"
{
{$proponente->bolsistaProdutividade}
}
"
id
=
"bolsistaProdutividade"
type
=
"text"
class
=
"form-control @error('bolsistaProdutividade') is-invalid @enderror"
name
=
"bolsistaProdutividade"
autocomplete
=
"bolsistaProdutividade"
>
<
label
class
=
"col-form-label"
>
{{
__
(
'Nível'
)
}}
</
label
>
<
input
value
=
"
{
{$proponente->nivel}
}
"
id
=
"nivel"
type
=
"text"
class
=
"form-control @error('nivel') is-invalid @enderror"
name
=
"nivel"
autocomplete
=
"nivel"
>
<
label
class
=
"col-form-label"
>
{{
__
(
'Link do Lattes'
)
}}
</
label
>
<
input
value
=
"
{
{$proponente->linkLattes}
}
"
id
=
"linkLattes"
type
=
"text"
class
=
"form-control @error('linkLattes') is-invalid @enderror"
name
=
"linkLattes"
autocomplete
=
"linkLattes"
>
<
br
>
@
else
<
div
class
=
"form-group row justify-content-center"
>
<
div
class
=
"col-md-12"
>
Não
tem
permissão
de
proponente
</
div
>
</
div
>
@
endif
@
if
(
!
(
is_null
(
$participante
)))
<
div
class
=
"form-group row justify-content-center"
>
<
div
class
=
"col-md-12"
>
Tem
permissão
de
participante
</
div
>
</
div
>
@
else
<
div
class
=
"form-group row justify-content-center"
>
<
div
class
=
"col-md-12"
>
Não
tem
permissão
de
participante
</
div
>
</
div
>
@
endif
{{
--
<
div
class
=
"row subtitulo"
style
=
"margin-top:20px"
>
<
div
class
=
"col-sm-12"
>
<
p
>
Endereço
</
p
>
</
div
>
</
div
>
--
}}
{{
--
Endereço
--
}}
{{
--
<
div
class
=
"form-group row justify-content-center"
>
<
div
class
=
"col-md-2"
>
<
label
for
=
"cep"
class
=
"col-form-label"
>
{{
__
(
'CEP'
)
}}
</
label
>
<
input
onblur
=
"pesquisacep(this.value);"
value
=
"
{
{old('cep')}
}
"
id
=
"cep"
type
=
"text"
class
=
"form-control @error('cep') is-invalid @enderror"
name
=
"cep"
required
autocomplete
=
"cep"
>
@
error
(
'cep'
)
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
<
strong
>
{{
$message
}}
</
strong
>
</
span
>
@
enderror
</
div
>
<
div
class
=
"col-md-6"
>
<
label
for
=
"rua"
class
=
"col-form-label"
>
{{
__
(
'Rua'
)
}}
</
label
>
<
input
value
=
"
{
{old('rua')}
}
"
id
=
"rua"
type
=
"text"
class
=
"form-control @error('rua') is-invalid @enderror"
name
=
"rua"
required
autocomplete
=
"new-password"
>
@
error
(
'rua'
)
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
<
strong
>
{{
$message
}}
</
strong
>
</
span
>
@
enderror
</
div
>
<
div
class
=
"col-md-4"
>
<
label
for
=
"numero"
class
=
"col-form-label"
>
{{
__
(
'Número'
)
}}
</
label
>
<
input
value
=
"
{
{old('numero')}
}
"
id
=
"numero"
type
=
"number"
class
=
"form-control @error('numero') is-invalid @enderror"
name
=
"numero"
required
autocomplete
=
"numero"
>
@
error
(
'numero'
)
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
<
strong
>
{{
$message
}}
</
strong
>
</
span
>
@
enderror
</
div
>
</
div
>
<
div
class
=
"form-group row justify-content-center"
>
<
div
class
=
"col-md-4"
>
<
label
for
=
"bairro"
class
=
"col-form-label"
>
{{
__
(
'Bairro'
)
}}
</
label
>
<
input
value
=
"
{
{old('bairro')}
}
"
id
=
"bairro"
type
=
"text"
class
=
"form-control @error('bairro') is-invalid @enderror"
name
=
"bairro"
required
autocomplete
=
"bairro"
>
@
error
(
'bairro'
)
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
<
strong
>
{{
$message
}}
</
strong
>
</
span
>
@
enderror
</
div
>
<
div
class
=
"col-md-4"
>
<
label
for
=
"cidade"
class
=
"col-form-label"
>
{{
__
(
'Cidade'
)
}}
</
label
>
<
input
value
=
"
{
{old('cidade')}
}
"
id
=
"cidade"
type
=
"text"
class
=
"form-control @error('cidade') is-invalid @enderror"
name
=
"cidade"
required
autocomplete
=
"cidade"
>
@
error
(
'cidade'
)
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
<
strong
>
{{
$message
}}
</
strong
>
</
span
>
@
enderror
</
div
>
<
div
class
=
"col-sm-4"
>
<
label
for
=
"uf"
class
=
"col-form-label"
>
{{
__
(
'UF'
)
}}
</
label
>
<
select
class
=
"form-control @error('uf') is-invalid @enderror"
id
=
"uf"
name
=
"uf"
>
<
option
value
=
""
disabled
selected
hidden
>--
UF
--</
option
>
<
option
value
=
"AC"
>
Acre
</
option
>
<
option
value
=
"AL"
>
Alagoas
</
option
>
<
option
value
=
"AP"
>
Amapá
</
option
>
<
option
value
=
"AM"
>
Amazonas
</
option
>
<
option
value
=
"BA"
>
Bahia
</
option
>
<
option
value
=
"CE"
>
Ceará
</
option
>
<
option
value
=
"DF"
>
Distrito
Federal
</
option
>
<
option
value
=
"ES"
>
Espírito
Santo
</
option
>
<
option
value
=
"GO"
>
Goiás
</
option
>
<
option
value
=
"MA"
>
Maranhão
</
option
>
<
option
value
=
"MT"
>
Mato
Grosso
</
option
>
<
option
value
=
"MS"
>
Mato
Grosso
do
Sul
</
option
>
<
option
value
=
"MG"
>
Minas
Gerais
</
option
>
<
option
value
=
"PA"
>
Pará
</
option
>
<
option
value
=
"PB"
>
Paraíba
</
option
>
<
option
value
=
"PR"
>
Paraná
</
option
>
<
option
value
=
"PE"
>
Pernambuco
</
option
>
<
option
value
=
"PI"
>
Piauí
</
option
>
<
option
value
=
"RJ"
>
Rio
de
Janeiro
</
option
>
<
option
value
=
"RN"
>
Rio
Grande
do
Norte
</
option
>
<
option
value
=
"RS"
>
Rio
Grande
do
Sul
</
option
>
<
option
value
=
"RO"
>
Rondônia
</
option
>
<
option
value
=
"RR"
>
Roraima
</
option
>
<
option
value
=
"SC"
>
Santa
Catarina
</
option
>
<
option
value
=
"SP"
>
São
Paulo
</
option
>
<
option
value
=
"SE"
>
Sergipe
</
option
>
<
option
value
=
"TO"
>
Tocantins
</
option
>
</
select
>
@
error
(
'uf'
)
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
<
strong
>
{{
$message
}}
</
strong
>
</
span
>
@
enderror
</
div
>
</
div
>
<
div
class
=
"row justify-content-center"
style
=
"margin: 20px 0 20px 0"
>
<
div
class
=
"col-md-6"
style
=
"padding-left:0"
>
<
a
class
=
"btn btn-secondary botao-form"
href
=
"
{
{route('home')}
}
"
style
=
"width:100%"
>
Voltar
</
a
>
</
div
>
<
div
class
=
"col-md-6"
style
=
"padding-right:0"
>
<
button
type
=
"submit"
class
=
"btn btn-primary botao-form"
style
=
"width:100%"
>
{{
__
(
'Concluir'
)
}}
</
button
>
</
div
>
</
div
>
--
}}
</
form
>
</
div
>
</
div
>
@
endif
@
endsection
@
section
(
'javascript'
)
<
script
type
=
"text/javascript"
>
...
...
routes/web.php
View file @
72241b3c
...
...
@@ -21,34 +21,35 @@ Auth::routes(['verify' => true]);
//######## Rotas Avaliador ####################################
Route
::
prefix
(
'avaliador'
)
->
name
(
'avaliador.'
)
->
group
(
function
(){
Route
::
get
(
'/index'
,
'AvaliadorController@index'
)
->
name
(
'index'
);
Route
::
get
(
'/trabalhos'
,
'AvaliadorController@visualizarTrabalhos'
)
->
name
(
'visualizarTrabalho'
);
Route
::
post
(
'/parecer'
,
'AvaliadorController@parecer'
)
->
name
(
'parecer'
);
Route
::
get
(
'/editais'
,
'AvaliadorController@editais'
)
->
name
(
'editais'
);
Route
::
post
(
'/Enviarparecer'
,
'AvaliadorController@enviarParecer'
)
->
name
(
'enviarParecer'
);
Route
::
get
(
'/index'
,
'AvaliadorController@index'
)
->
name
(
'index'
)
->
middleware
(
'auth'
)
;
Route
::
get
(
'/trabalhos'
,
'AvaliadorController@visualizarTrabalhos'
)
->
name
(
'visualizarTrabalho'
)
->
middleware
(
'auth'
)
;
Route
::
post
(
'/parecer'
,
'AvaliadorController@parecer'
)
->
name
(
'parecer'
)
->
middleware
(
'auth'
)
;
Route
::
get
(
'/editais'
,
'AvaliadorController@editais'
)
->
name
(
'editais'
)
->
middleware
(
'auth'
)
;
Route
::
post
(
'/Enviarparecer'
,
'AvaliadorController@enviarParecer'
)
->
name
(
'enviarParecer'
)
->
middleware
(
'auth'
)
;
});
//######### Proponente ########################################
Route
::
get
(
'/proponente/index'
,
'ProponenteController@index'
)
->
name
(
'proponente.index'
);
Route
::
get
(
'/proponente/cadastro'
,
'ProponenteController@create'
)
->
name
(
'proponente.create'
);
Route
::
post
(
'/proponente/cadastro'
,
'ProponenteController@store'
)
->
name
(
'proponente.store'
);
Route
::
get
(
'/proponente/editais'
,
'ProponenteController@editais'
)
->
name
(
'proponente.editais'
);
//######### Participante ########################################
Route
::
get
(
'/participante/index'
,
'ParticipanteController@index'
)
->
name
(
'participante.index'
);
Route
::
get
(
'/participante/edital/{id}'
,
'ParticipanteController@edital'
)
->
name
(
'participante.edital'
);
//######### Rotas Administrador #################################
Route
::
get
(
'/perfil-usuario'
,
'UserController@minhaConta'
)
->
middleware
(
'auth'
)
->
name
(
'user.perfil'
);
Route
::
get
(
'/perfil-usuario'
,
'UserController@minhaConta'
)
->
middleware
(
'auth'
)
->
name
(
'user.perfil'
)
->
middleware
([
'auth'
,
'verified'
])
;
Route
::
get
(
'/perfil'
,
'UserController@perfil'
)
->
name
(
'perfil'
)
->
middleware
([
'auth'
,
'verified'
]);
Route
::
post
(
'/perfil'
,
'UserController@editarPerfil'
)
->
name
(
'perfil'
)
->
middleware
([
'auth'
,
'verified'
]);
Route
::
group
([
'middleware'
=>
[
'isTemp'
,
'auth'
,
'verified'
]],
function
(){
Route
::
get
(
'/home/e
vento
'
,
'EventoController@index'
)
->
name
(
'visualizarEvento'
);
Route
::
get
(
'/home/e
dital
'
,
'EventoController@index'
)
->
name
(
'visualizarEvento'
);
// ######## rotas de teste #####################################
Route
::
get
(
'/
coordenador
/home'
,
'EventoController@index'
)
->
name
(
'coord.home'
);
Route
::
get
(
'/
editais
/home'
,
'EventoController@index'
)
->
name
(
'coord.home'
);
Route
::
get
(
'/coordenador/evento/detalhes'
,
'EventoController@detalhes'
)
->
name
(
'coord.detalhesEvento'
);
//####### Visualizar trabalhos do usuário ######################
...
...
@@ -63,6 +64,7 @@ Route::group(['middleware' => ['isTemp', 'auth', 'verified']], function(){
//######### Area do participante ###############################
Route
::
get
(
'/participante'
,
'EventoController@areaParticipante'
)
->
name
(
'area.participante'
);
Route
::
get
(
'participante/editais'
,
'ParticipanteController@editais'
)
->
name
(
'participante.editais'
);
//########## Area da comissao ###################################
Route
::
get
(
'/comissoes'
,
'EventoController@listComissao'
)
->
name
(
'comissoes'
);
...
...
@@ -120,6 +122,7 @@ Route::group(['middleware' => ['isTemp', 'auth', 'verified']], function(){
Route
::
get
(
'/baixar/anexo-lattes/{id}'
,
'TrabalhoController@baixarAnexoLattes'
)
->
name
(
'baixar.anexo.lattes'
);
Route
::
get
(
'/baixar/anexo-planilha/{id}'
,
'TrabalhoController@baixarAnexoPlanilha'
)
->
name
(
'baixar.anexo.planilha'
);
Route
::
get
(
'/baixar/plano-de-trabalho/{id}'
,
'ArquivoController@baixarPlano'
)
->
name
(
'baixar.plano'
);
Route
::
get
(
'/baixar/anexo-temp/{eventoId}/{nomeAnexo}'
,
'TrabalhoController@baixarAnexoTemp'
)
->
name
(
'baixar.anexo.temp'
);
});
Route
::
prefix
(
'usuarios'
)
->
name
(
'admin.'
)
->
group
(
function
(){
...
...
@@ -188,15 +191,15 @@ Route::prefix('naturezas')->group(function(){
//############ Evento ##############################################
Route
::
prefix
(
'evento'
)
->
name
(
'evento.'
)
->
group
(
function
(){
Route
::
get
(
'/criar'
,
'EventoController@create'
)
->
name
(
'criar'
);
Route
::
post
(
'/criar'
,
'EventoController@store'
)
->
name
(
'criar'
);
Route
::
get
(
'/visualizar/{id}'
,
'EventoController@show'
)
->
name
(
'visualizar'
);
Route
::
get
(
'/listar'
,
'EventoController@listar'
)
->
name
(
'listar'
);
Route
::
delete
(
'/excluir/{id}'
,
'EventoController@destroy'
)
->
name
(
'deletar'
);
Route
::
get
(
'/editar/{id}'
,
'EventoController@edit'
)
->
name
(
'editar'
);
Route
::
post
(
'/editar/{id}'
,
'EventoController@update'
)
->
name
(
'update'
);
Route
::
post
(
'/setResumo'
,
'EventoController@setResumo'
)
->
name
(
'setResumo'
);
Route
::
post
(
'/setFoto'
,
'EventoController@setFotoEvento'
)
->
name
(
'setFotoEvento'
);
Route
::
get
(
'/criar'
,
'EventoController@create'
)
->
name
(
'criar'
)
->
middleware
(
'checkAdministrador'
)
;
Route
::
post
(
'/criar'
,
'EventoController@store'
)
->
name
(
'criar'
)
->
middleware
(
'checkAdministrador'
)
;
Route
::
get
(
'/visualizar/{id}'
,
'EventoController@show'
)
->
name
(
'visualizar'
)
->
middleware
(
'auth'
)
;
Route
::
get
(
'/listar'
,
'EventoController@listar'
)
->
name
(
'listar'
)
->
middleware
(
'auth'
)
;
Route
::
delete
(
'/excluir/{id}'
,
'EventoController@destroy'
)
->
name
(
'deletar'
)
->
middleware
(
'checkAdministrador'
)
;
Route
::
get
(
'/editar/{id}'
,
'EventoController@edit'
)
->
name
(
'editar'
)
->
middleware
(
'checkAdministrador'
)
;
Route
::
post
(
'/editar/{id}'
,
'EventoController@update'
)
->
name
(
'update'
)
->
middleware
(
'checkAdministrador'
)
;
Route
::
post
(
'/setResumo'
,
'EventoController@setResumo'
)
->
name
(
'setResumo'
)
->
middleware
(
'checkAdministrador'
)
;
Route
::
post
(
'/setFoto'
,
'EventoController@setFotoEvento'
)
->
name
(
'setFotoEvento'
)
->
middleware
(
'checkAdministrador'
)
;
});
...
...
Prev
1
2
Next
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