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
5 years ago
by
Gabriel Antônio da Silva
Committed by
GitHub
5 years ago
Browse files
Options
Download
Plain Diff
Merge pull request #28 from lmts-ufape/planoTrabalho
Plano trabalho
parents
beed2694
b8f2b424
Changes
32
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
resources/views/evento/submeterTrabalho.blade.php
+301
-182
resources/views/evento/submeterTrabalho.blade.php
resources/views/evento/visualizarEvento.blade.php
+1
-1
resources/views/evento/visualizarEvento.blade.php
resources/views/layouts/app.blade.php
+1
-1
resources/views/layouts/app.blade.php
resources/views/naturezas/index.blade.php
+23
-16
resources/views/naturezas/index.blade.php
resources/views/participante/editais.blade.php
+76
-0
resources/views/participante/editais.blade.php
resources/views/participante/index.blade.php
+1
-1
resources/views/participante/index.blade.php
resources/views/projeto/index.blade.php
+2
-2
resources/views/projeto/index.blade.php
resources/views/proponente/cadastro.blade.php
+8
-0
resources/views/proponente/cadastro.blade.php
resources/views/proponente/editais.blade.php
+80
-0
resources/views/proponente/editais.blade.php
resources/views/proponente/index.blade.php
+1
-1
resources/views/proponente/index.blade.php
resources/views/user/perfilUser.blade.php
+22
-306
resources/views/user/perfilUser.blade.php
routes/web.php
+24
-21
routes/web.php
with
540 additions
and
531 deletions
+540
-531
resources/views/evento/submeterTrabalho.blade.php
View file @
72241b3c
...
@@ -2,7 +2,6 @@
...
@@ -2,7 +2,6 @@
@
section
(
'content'
)
@
section
(
'content'
)
<
div
class
=
"container content"
>
<
div
class
=
"container content"
>
<
div
class
=
"row justify-content-center"
>
<
div
class
=
"row justify-content-center"
>
<
div
class
=
"col-sm-12"
>
<
div
class
=
"col-sm-12"
>
<
div
class
=
"card"
style
=
"margin-top:50px"
>
<
div
class
=
"card"
style
=
"margin-top:50px"
>
...
@@ -34,7 +33,7 @@
...
@@ -34,7 +33,7 @@
<
select
class
=
"form-control @error('grandeArea') is-invalid @enderror"
id
=
"grandeArea"
name
=
"grandeArea"
onchange
=
"areas()"
>
<
select
class
=
"form-control @error('grandeArea') is-invalid @enderror"
id
=
"grandeArea"
name
=
"grandeArea"
onchange
=
"areas()"
>
<
option
value
=
""
disabled
selected
hidden
>--
Grande
Área
--</
option
>
<
option
value
=
""
disabled
selected
hidden
>--
Grande
Área
--</
option
>
@
foreach
(
$grandeAreas
as
$grandeArea
)
@
foreach
(
$grandeAreas
as
$grandeArea
)
<
option
@
if
(
old
(
'grandeArea'
)
==
$grandeArea
->
id
)
selected
@
endif
value
=
"
{
{$grandeArea->id}}">{{$grandeArea->nome}
}
</option>
<
option
@
if
(
old
(
'grandeArea'
)
==
$grandeArea
->
id
)
selected
@
endif
value
=
"
{
{$grandeArea->id}}">{{$grandeArea->nome}
}
</option>
@endforeach
@endforeach
</select>
</select>
...
@@ -46,7 +45,8 @@
...
@@ -46,7 +45,8 @@
</div>
</div>
<div class="
col
-
sm
-
4
">
<div class="
col
-
sm
-
4
">
<label for="
area
" class="
col
-
form
-
label
">{{ __('Área*:') }}</label>
<label for="
area
" class="
col
-
form
-
label
">{{ __('Área*:') }}</label>
<select class="
form
-
control
@
error
(
'area'
)
is
-
invalid
@
enderror
" id="
area
" name="
area
" onchange="
subareas
()
">
<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>
<option value="" disabled selected hidden>-- Área --</option>
{{-- @foreach(
$areas
as
$area
)
{{-- @foreach(
$areas
as
$area
)
<option @if(old('area')==
$area->id
) selected @endif value="
{{
$area
->
id
}}
">
{
{$area->nome}
}
</option>
<option @if(old('area')==
$area->id
) selected @endif value="
{{
$area
->
id
}}
">
{
{$area->nome}
}
</option>
...
@@ -61,7 +61,8 @@
...
@@ -61,7 +61,8 @@
</div>
</div>
<div class="
col
-
sm
-
4
">
<div class="
col
-
sm
-
4
">
<label for="
subArea
" class="
col
-
form
-
label
">{{ __('Sub Área*:') }}</label>
<label for="
subArea
" class="
col
-
form
-
label
">{{ __('Sub Área*:') }}</label>
<select class="
form
-
control
@
error
(
'subArea'
)
is
-
invalid
@
enderror
" id="
subArea
" name="
subArea
">
<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>
<option value="" disabled selected hidden>-- Sub Área --</option>
{{-- @foreach(
$subAreas
as
$subArea
)
{{-- @foreach(
$subAreas
as
$subArea
)
<option @if(old('subArea')==
$subArea->id
) selected @endif value="
{{
$subArea
->
id
}}
">
{
{$subArea->nome}
}
</option>
<option @if(old('subArea')==
$subArea->id
) selected @endif value="
{{
$subArea
->
id
}}
">
{
{$subArea->nome}
}
</option>
...
@@ -76,14 +77,6 @@
...
@@ -76,14 +77,6 @@
</div>
</div>
</div>
</div>
<hr>
<hr>
<h3>Coordenador</h3>
<h3>Coordenador</h3>
...
@@ -97,10 +90,10 @@
...
@@ -97,10 +90,10 @@
<div class="
col
-
sm
-
6
">
<div class="
col
-
sm
-
6
">
<label for="
linkLattesEstudante
" class="
col
-
form
-
label
">Link Lattes do Proponente*</label>
<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
"
<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
}}
"
value="
{{
Auth
()
->
user
()
->
proponentes
->
linkLattes
}}
"
@else
@else
value=""
value=""
@endif >
@endif >
@error('linkLattesEstudante')
@error('linkLattesEstudante')
...
@@ -140,11 +133,15 @@
...
@@ -140,11 +133,15 @@
{{-- Arquivo --}}
{{-- Arquivo --}}
<div class="
col
-
sm
-
6
">
<div class="
col
-
sm
-
6
">
<label for="
anexoProjeto
" class="
col
-
form
-
label
">{{ __('Anexo Projeto*:') }}</label>
<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="
input
-
group
">
<div class="
custom
-
file
">
<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>
<label class="
custom
-
file
-
label
" id="
custom
-
file
-
label
" for="
anexoProjeto
">O arquivo deve ser no formato PDF de até 2mb.</label>
</div>
</div>
</div>
</div>
...
@@ -156,43 +153,49 @@
...
@@ -156,43 +153,49 @@
</div>
</div>
<div class="
col
-
sm
-
6
">
<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="
input
-
group
">
<div class="
custom
-
file
">
<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
">
<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="
inputGroupFile01
">O arquivo deve ser no formato PDF de até 2mb.</label>
<label class="
custom
-
file
-
label
" id="
custom
-
file
-
label
" for="
anexoLattesCoordenador
">O arquivo deve ser no formato PDF de até 2mb.</label>
</div>
</div>
</div>
</div>
@error('anexoLatte
r
Coordenador')
@error('anexoLatte
s
Coordenador')
<span class="
invalid
-
feedback
" role="
alert
" style="
overflow
:
visible
;
display
:
block
">
<span class="
invalid
-
feedback
" role="
alert
" style="
overflow
:
visible
;
display
:
block
">
<strong>{{
$message
}}</strong>
<strong>{{
$message
}}</strong>
</span>
</span>
@enderror
@enderror
</div>
</div>
<div class="
col
-
sm
-
6
">
<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>
<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>
<button id="
buttonSim
" class="
btn
btn
-
primary
mt
-
2
mb
-
2
">Sim</button>
<button id="
buttonNao
" class="
btn
btn
-
primary
mt
-
2
mb
-
2
">Não</button>
<button id="
buttonNao
" class="
btn
btn
-
primary
mt
-
2
mb
-
2
">Não</button>
<input type="
hidden
" id="
botao
" name="
botao
" value="">
<input type="
hidden
" id="
botao
" name="
botao
" value="">
@error('botao')
@error('botao')
<span id="
botao
" class="
invalid
-
feedback
" role="
alert
" style="
overflow
:
visible
;
display
:
inline
">
<span id="
botao
" class="
invalid
-
feedback
" role="
alert
" style="
overflow
:
visible
;
display
:
inline
">
<strong>{{
$message
}}</strong>
<strong>{{
$message
}}</strong>
</span>
</span>
@enderror
@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="
input
-
group
">
<div class="
custom
-
file
">
<div class="
custom
-
file
">
<input disabled type="
file
" class="
custom
-
file
-
input
@
error
(
'anexoComiteEtica'
)
is
-
invalid
@
enderror
" id="
inputEtica
" aria-describedby="
inputGroupFileAddon01
" name="
anexoComiteEtica
">
<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
GroupFile01
">O arquivo deve ser no formato PDF de até 2mb.</label>
<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>
</div>
</div>
@error('anexoComiteEtica')
@error('anexoComiteEtica')
...
@@ -204,11 +207,15 @@
...
@@ -204,11 +207,15 @@
<div class="
col
-
sm
-
6
mt
-
3
">
<div class="
col
-
sm
-
6
mt
-
3
">
<label for="
anexoPlanilha
" class="
col
-
form
-
label
">{{ __('Anexo do Planilha de Pontuação*:') }}</label>
<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="
input
-
group
">
<div class="
custom
-
file
">
<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>
<label class="
custom
-
file
-
label
" id="
custom
-
file
-
label
" for="
anexoPlanilha
">O arquivo deve ser no formato PDF de até 2mb.</label>
</div>
</div>
</div>
</div>
...
@@ -221,13 +228,17 @@
...
@@ -221,13 +228,17 @@
<div class="
col
-
sm
-
6
">
<div class="
col
-
sm
-
6
">
<label for="
nomeTrabalho
" class="
col
-
form
-
label
">{{ __('Justificativa*:') }}</label>
<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="
input
-
group
">
<div class="
custom
-
file
">
<div class="
custom
-
file
">
<input type="
file
" class="
custom
-
file
-
input
@
error
(
'justificativaAutorizacaoEtica'
)
is
-
invalid
@
enderror
" id="
inputJustificativa
" aria-describedby="
inputGroupFileAddon01
" disabled name="
justificativaAutorizacaoEtica
">
<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
GroupFile01
">O arquivo deve ser no formato PDF de até 2mb.</label>
<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>
</div>
</div>
@error('justificativaAutorizacaoEtica')
@error('justificativaAutorizacaoEtica')
...
@@ -241,12 +252,17 @@
...
@@ -241,12 +252,17 @@
{{-- Decisão do CONSU --}}
{{-- Decisão do CONSU --}}
<div class="
col
-
sm
-
6
">
<div class="
col
-
sm
-
6
">
<label for="
anexoCONSU
" class="
col
-
form
-
label
">{{ __('Decisão do CONSU*:') }}</label>
<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="
input
-
group
">
<div class="
custom
-
file
">
<div class="
custom
-
file
">
<input type="
file
" class="
custom
-
file
-
input
@
error
(
'anexoCONSU'
)
is
-
invalid
@
enderror
" id="
anexoCONSU
" aria-describedby="
inputGroupFileAddon01
" name="
anexoCONSU
">
<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="
inputGroupFile01
">O arquivo deve ser no formato PDF de até 2mb.</label>
<label class="
custom
-
file
-
label
" id="
custom
-
file
-
label
" for="
anexoCONSU
">O arquivo deve ser no formato PDF de até 2mb.</label>
</div>
</div>
</div>
</div>
@error('anexoCONSU')
@error('anexoCONSU')
...
@@ -266,47 +282,56 @@
...
@@ -266,47 +282,56 @@
<div class="
row
" style="
margin
-
top
:
20
px
">
<div class="
row
" style="
margin
-
top
:
20
px
">
<div class="
col
-
sm
-
12
">
<div class="
col
-
sm
-
12
">
<div id="
participantes
">
<div id="
participantes
">
<div id="
novoParticipante
">
<br>
<h5>Dados do participante</h5>
@php
$i
= 0;
@endphp
<div class="
row
">
<div class="
col
-
sm
-
5
">
<label>Nome Completo*</label>
<input type="
text
" style="
margin
-
bottom
:
10
px
" class="
form
-
control
@
error
(
'nomeParticipante'
)
is
-
invalid
@
enderror
" name="
nomeParticipante
[]
" placeholder="
Nome
" required value="
{{
old
(
'nomeParticipante.'
.
$i
)}}
">
@error('nomeParticipante')
<span class="
invalid
-
feedback
" role="
alert
" style="
overflow
:
visible
;
display
:
block
">
<strong>{{
$message
}}</strong>
</span>
@enderror
</div>
<div class="
col
-
sm
-
4
">
<label>E-mail*</label>
<input type="
email
" style="
margin
-
bottom
:
10
px
" class="
form
-
control
@
error
(
'emailParticipante'
)
is
-
invalid
@
enderror
" name="
emailParticipante
[]
" placeholder="
email
" required value="
{{
old
(
'emailParticipante.'
.
$i
)}}
">
@error('emailParticipante')
<span class="
invalid
-
feedback
" role="
alert
" style="
overflow
:
visible
;
display
:
block
">
<strong>{{
$message
}}</strong>
</span>
@enderror
</div>
<div class="
col
-
sm
-
3
">
<label>Função*:</label>
<select class="
form
-
control
@
error
(
'funcaoParticipante'
)
is
-
invalid
@
enderror
" name="
funcaoParticipante
[]
" id="
funcaoParticipante
">
<option value="" disabled selected hidden>-- Função --</option>
@foreach(
$funcaoParticipantes
as
$funcaoParticipante
)
<option @if(old('funcaoParticipante.'.
$i
)==
$funcaoParticipante->id
) selected @endif value="
{{
$funcaoParticipante
->
id
}}
">
{
{$funcaoParticipante->nome}
}
</option>
@endforeach
@error('funcaoParticipante')
@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>
<div class="
row
">
<div class="
col
-
sm
-
5
">
<label>Nome Completo*</label>
<input type="
text
" style="
margin
-
bottom
:
10
px
" class="
form
-
control
@
error
(
'nomeParticipante'
)
is
-
invalid
@
enderror
" name="
nomeParticipante
[]
" placeholder="
Nome
" required value="
{{
old
(
'nomeParticipante.'
.
$i
)}}
">
@error('nomeParticipante')
<span class="
invalid
-
feedback
" role="
alert
" style="
overflow
:
visible
;
display
:
block
">
<strong>{{
$message
}}</strong>
</span>
@enderror
</div>
<div class="
col
-
sm
-
4
">
<label>E-mail*</label>
<input type="
email
" style="
margin
-
bottom
:
10
px
" class="
form
-
control
@
error
(
'emailParticipante'
)
is
-
invalid
@
enderror
" name="
emailParticipante
[]
" placeholder="
email
" required value="
{{
old
(
'emailParticipante.'
.
$i
)}}
">
@error('emailParticipante')
<span class="
invalid
-
feedback
" role="
alert
" style="
overflow
:
visible
;
display
:
block
">
<span class="
invalid
-
feedback
" role="
alert
" style="
overflow
:
visible
;
display
:
block
">
<strong>{{
$message
}}</strong>
<strong>{{
$message
}}</strong>
</span>
</span>
@enderror
@enderror
</select>
</div>
</div>
<div class="
col
-
sm
-
3
">
</div>
<label>Função*:</label>
<select class="
form
-
control
@
error
(
'funcaoParticipante'
)
is
-
invalid
@
enderror
" name="
funcaoParticipante
[]
" id="
funcaoParticipante
">
<option value="" disabled selected hidden>-- Função --</option>
@foreach(
$funcaoParticipantes
as
$funcaoParticipante
)
<option @if(old('funcaoParticipante.'.
$i
)==
$funcaoParticipante->id
) selected @endif value="
{{
$funcaoParticipante
->
id
}}
">
{
{$funcaoParticipante->nome}
}
</option>
@endforeach
@error('funcaoParticipante')
<span class="
invalid
-
feedback
" role="
alert
" style="
overflow
:
visible
;
display
:
block
">
<strong>{{
$message
}}</strong>
</span>
@enderror
</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>
<h5>Dados do plano de trabalho</h5>
<div class="
row
">
<div class="
row
">
<div class="
col
-
sm
-
12
">
<div class="
col
-
sm
-
12
">
...
@@ -314,7 +339,7 @@
...
@@ -314,7 +339,7 @@
<div class="
row
">
<div class="
row
">
<div class="
col
-
sm
-
4
">
<div class="
col
-
sm
-
4
">
<label>Titulo* </label>
<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')
@error('nomePlanoTrabalho')
<span class="
invalid
-
feedback
" role="
alert
" style="
overflow
:
visible
;
display
:
block
">
<span class="
invalid
-
feedback
" role="
alert
" style="
overflow
:
visible
;
display
:
block
">
...
@@ -338,66 +363,74 @@
...
@@ -338,66 +363,74 @@
<span class="
invalid
-
feedback
" role="
alert
" style="
overflow
:
visible
;
display
:
block
">
<span class="
invalid
-
feedback
" role="
alert
" style="
overflow
:
visible
;
display
:
block
">
<strong>{{
$message
}}</strong>
<strong>{{
$message
}}</strong>
</span>
</span>
@enderror
@enderror
</div>
</div>
<div class="
col
-
sm
-
1
">
<div class="
col
-
sm
-
1
">
<a class="
delete
">
<a class="
delete
">
<img src="
{{
asset
(
'/img/icons/user-times-solid.svg'
)
}}
" style="
width
:
25
px
;
margin
-
top
:
35
px
">
<img src="
{{
asset
(
'/img/icons/user-times-solid.svg'
)
}}
" style="
width
:
25
px
;
margin
-
top
:
35
px
">
</a>
</a>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
@endfor
@endif
</div>
</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>
<a href="
#" class="btn btn-primary" id="addCoautor" style="width:100%;margin-top:10px">Participantes +</a>
</
div
>
</
div
>
</
div
>
</
div
>
</
p
>
</
p
>
<
div
class
=
"row justify-content-center"
>
<
div
class
=
"row justify-content-center"
>
<
div
class
=
"col-md-6"
>
<
div
class
=
"col-md-6"
>
<
a
href
=
"
{
{route('evento.visualizar',['id'=>$edital->id])}
}
"
class
=
"btn btn-secondary"
style
=
"width:100%"
>
Cancelar
</
a
>
<
a
href
=
"
{
{route('evento.visualizar',['id'=>$edital->id])}
}
"
class
=
"btn btn-secondary"
style
=
"width:100%"
>
Cancelar
</
a
>
</
div
>
</
div
>
<
div
class
=
"col-md-6"
>
<
div
class
=
"col-md-6"
>
<
button
type
=
"submit"
class
=
"btn btn-primary"
style
=
"width:100%"
>
<
button
type
=
"submit"
class
=
"btn btn-primary"
style
=
"width:100%"
>
{{
__
(
'Enviar'
)
}}
{{
__
(
'Enviar'
)
}}
</
button
>
</
button
>
</
div
>
</
div
>
</
div
>
</
form
>
</
div
>
</
div
>
</
form
>
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
@
endsection
@
endsection
@
section
(
'javascript'
)
@
section
(
'javascript'
)
<
script
type
=
"text/javascript"
>
<
script
type
=
"text/javascript"
>
$
(
function
()
{
$
(
function
()
{
var
qtdLinhas
=
1
;
var
qtdLinhas
=
1
;
var
qtdParticipantes
=
2
;
// Coautores
// Coautores
$
(
'#addCoautor'
)
.
click
(
function
(
e
)
{
$
(
'#addCoautor'
)
.
click
(
function
(
e
)
{
if
(
qtdParticipantes
<
100
)
{
var
countParticipante
=
document
.
getElementById
(
'countParticipante'
);
if
(
countParticipante
.
value
<
100
)
{
e
.
preventDefault
();
e
.
preventDefault
();
linha
=
montarLinhaInput
();
linha
=
montarLinhaInput
();
$
(
'#participantes'
)
.
append
(
linha
);
$
(
'#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
)
{
$
(
'#addPlanoTrabalho'
)
.
click
(
function
(
e
)
{
e
.
preventDefault
();
e
.
preventDefault
();
if
(
qtdLinhas
<
4
)
{
if
(
qtdLinhas
<
4
)
{
linha
=
montarLinhaInputPlanoTrabalho
();
linha
=
montarLinhaInputPlanoTrabalho
();
$
(
'#planoTrabalho'
)
.
append
(
linha
);
//
$('#planoTrabalho').append(linha);
qtdLinhas
++
;
qtdLinhas
++
;
}
}
});
});
// // Exibir modalidade de acordo com a área
// // Exibir modalidade de acordo com a área
// $("#area").change(function() {
// $("#area").change(function() {
...
@@ -405,11 +438,12 @@
...
@@ -405,11 +438,12 @@
// addModalidade($(this).val());
// addModalidade($(this).val());
// });
// });
$
(
document
)
.
on
(
'click'
,
'.delete'
,
function
()
{
$
(
document
)
.
on
(
'click'
,
'.delete'
,
function
()
{
if
(
qtdParticipantes
>
2
)
{
var
countParticipante
=
document
.
getElementById
(
'countParticipante'
);
qtdParticipantes
--
;
if
(
countParticipante
.
value
>=
2
)
{
setParticipanteDiv
(
parseInt
(
countParticipante
.
value
)
-
1
);
$
(
this
)
.
closest
(
'#novoParticipante'
)
.
remove
();
$
(
this
)
.
closest
(
'#novoParticipante'
)
.
remove
();
return
false
;
return
false
;
}
}
});
});
$
(
document
)
.
on
(
'click'
,
'.deletePlano'
,
function
()
{
$
(
document
)
.
on
(
'click'
,
'.deletePlano'
,
function
()
{
if
(
qtdLinhas
>
1
)
{
if
(
qtdLinhas
>
1
)
{
...
@@ -419,15 +453,15 @@
...
@@ -419,15 +453,15 @@
}
}
});
});
$
(
'.custom-file-input'
)
.
on
(
'change'
,
function
()
{
$
(
'.custom-file-input'
)
.
on
(
'change'
,
function
()
{
var
fieldVal
=
$
(
this
)
.
val
();
var
fieldVal
=
$
(
this
)
.
val
();
// Change the node's value by removing the fake path (Chrome)
// Change the node's value by removing the fake path (Chrome)
fieldVal
=
fieldVal
.
replace
(
"C:
\\
fakepath
\\
"
,
""
);
fieldVal
=
fieldVal
.
replace
(
"C:
\\
fakepath
\\
"
,
""
);
if
(
fieldVal
!=
undefined
||
fieldVal
!=
""
)
{
if
(
fieldVal
!=
undefined
||
fieldVal
!=
""
)
{
$
(
this
)
.
next
(
".custom-file-label"
)
.
attr
(
'data-content'
,
fieldVal
);
$
(
this
)
.
next
(
".custom-file-label"
)
.
attr
(
'data-content'
,
fieldVal
);
$
(
this
)
.
next
(
".custom-file-label"
)
.
text
(
fieldVal
);
$
(
this
)
.
next
(
".custom-file-label"
)
.
text
(
fieldVal
);
}
}
})
})
// F
// F
$
(
'#buttonSim'
)
.
on
(
'click'
,
function
(
e
)
{
$
(
'#buttonSim'
)
.
on
(
'click'
,
function
(
e
)
{
...
@@ -435,29 +469,63 @@
...
@@ -435,29 +469,63 @@
$
(
'#inputEtica'
)
.
prop
(
'disabled'
,
false
);
$
(
'#inputEtica'
)
.
prop
(
'disabled'
,
false
);
$
(
'#inputJustificativa'
)
.
prop
(
'disabled'
,
true
);
$
(
'#inputJustificativa'
)
.
prop
(
'disabled'
,
true
);
exibirErro
(
'comite'
);
exibirErro
(
'comite'
);
// $('#anexoJustificativaPreenchido').val("");
});
});
$
(
'#buttonNao'
)
.
on
(
'click'
,
function
(
e
)
{
$
(
'#buttonNao'
)
.
on
(
'click'
,
function
(
e
)
{
e
.
preventDefault
();
e
.
preventDefault
();
$
(
'#inputEtica'
)
.
prop
(
'disabled'
,
true
);
$
(
'#inputEtica'
)
.
prop
(
'disabled'
,
true
);
$
(
'#inputJustificativa'
)
.
prop
(
'disabled'
,
false
);
$
(
'#inputJustificativa'
)
.
prop
(
'disabled'
,
false
);
console
.
log
(
'button nao'
);
exibirErro
(
'justificativa'
);
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
){
function
exibirErro
(
campo
)
{
console
.
log
(
"o campo "
+
campo
);
var
botao
=
document
.
getElementById
(
'botao'
);
var
botao
=
document
.
getElementById
(
'botao'
);
botao
.
value
=
"sim"
;
botao
.
value
=
"sim"
;
var
comiteErro
=
document
.
getElementById
(
'comiteErro'
);
var
comiteErro
=
document
.
getElementById
(
'comiteErro'
);
var
justificativaErro
=
document
.
getElementById
(
'justificativaErro'
);
var
justificativaErro
=
document
.
getElementById
(
'justificativaErro'
);
if
(
campo
===
'comite'
){
if
(
comiteErro
!=
null
||
justificativaErro
!=
null
){
comiteErro
.
style
.
display
=
"block"
;
if
(
campo
===
'comite'
)
{
justificativaErro
.
style
.
display
=
"none"
;
comiteErro
.
style
.
display
=
"block"
;
}
else
if
(
campo
===
'justificativa'
){
justificativaErro
.
style
.
display
=
"none"
;
comiteErro
.
style
.
display
=
"none"
;
}
else
if
(
campo
===
'justificativa'
)
{
justificativaErro
.
style
.
display
=
"block"
;
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
// Remover Coautor
...
@@ -476,46 +544,50 @@
...
@@ -476,46 +544,50 @@
function
montarLinhaInput
()
{
function
montarLinhaInput
()
{
return
"<div id="
+
"novoParticipante"
+
">"
+
return
"<div id="
+
"novoParticipante"
+
">"
+
"<br><h5>Dados do participante</h5>"
+
"<br><h5>Dados do participante</h5>"
+
"<div class="
+
"row"
+
">"
+
"<div class="
+
"row"
+
">"
+
"<div class="
+
"col-sm-5"
+
">"
+
"<div class="
+
"col-sm-5"
+
">"
+
"<label>Nome Completo*</label>"
+
"<label>Nome Completo*</label>"
+
"<input"
+
" type="
+
'text'
+
" style="
+
"margin-bottom:10px"
+
" class="
+
'form-control'
+
" @error('nomeParticipante') is-invalid @enderror"
+
"name="
+
'nomeParticipante[]'
+
" placeholder="
+
"Nome"
+
" required>"
+
"<input"
+
" type="
+
'text'
+
" style="
+
"margin-bottom:10px"
+
" class="
+
'form-control'
+
" @error('nomeParticipante') is-invalid @enderror"
+
"name="
+
'nomeParticipante[]'
+
" placeholder="
+
"Nome"
+
" required>"
+
"@error('nomeParticipante')"
+
"@error('nomeParticipante')"
+
"<span class='invalid-feedback'"
+
"role='alert'"
+
"style='overflow: visible; display:block'>"
+
"<span class='invalid-feedback'"
+
"role='alert'"
+
"style='overflow: visible; display:block'>"
+
"<strong>{{
$message
}}</strong>"
+
"<strong>{{
$message
}}</strong>"
+
"</span>"
+
"</span>"
+
"@enderror"
+
"@enderror"
+
"</div>"
+
"</div>"
+
"<div class="
+
"col-sm-4"
+
">"
+
"<div class="
+
"col-sm-4"
+
">"
+
"<label>E-mail*</label>"
+
"<label>E-mail*</label>"
+
"<input type='email'"
+
"style='margin-bottom:10px'"
+
"class="
+
"form-control @error('emailParticipante') is-invalid @enderror"
+
"name='emailParticipante[]'"
+
"placeholder='email' required>"
+
"<input type='email'"
+
"style='margin-bottom:10px'"
+
"class="
+
"form-control @error('emailParticipante') is-invalid @enderror"
+
"name='emailParticipante[]'"
+
"placeholder='email' required>"
+
"@error('emailParticipante')"
+
"@error('emailParticipante')"
+
"<span class='invalid-feedback'"
+
"role='alert'"
+
"style='overflow: visible; display:block'>"
+
"<span class='invalid-feedback'"
+
"role='alert'"
+
"style='overflow: visible; display:block'>"
+
"<strong>{{
$message
}}</strong>"
+
"<strong>{{
$message
}}</strong>"
+
"</span>"
+
"</span>"
+
"@enderror"
+
"@enderror"
+
"</div>"
+
"</div>"
+
"<div class='col-sm-3'>"
+
"<div class='col-sm-3'>"
+
"<label>Função*:</label>"
+
"<label>Função*:</label>"
+
"<select class="
+
"form-control @error('funcaoParticipante') is-invalid @enderror"
+
"name='funcaoParticipante[]'"
+
"id='funcaoParticipante'> "
+
"<select class="
+
"form-control @error('funcaoParticipante') is-invalid @enderror"
+
"name='funcaoParticipante[]'"
+
"id='funcaoParticipante'> "
+
"<option value='' disabled selected hidden> Função </option>"
+
"<option value='' disabled selected hidden> Função </option>"
+
"@foreach(
$funcaoParticipantes
as
$funcaoParticipante
)"
+
"@foreach(
$funcaoParticipantes
as
$funcaoParticipante
)"
+
"<option value='
{
{$funcaoParticipante->id}}'>{{$funcaoParticipante->nome}
}
</option>"
+
"<option value='
{
{$funcaoParticipante->id}}'>{{$funcaoParticipante->nome}
}
</option>"
+
"@endforeach"
+
"@endforeach"
+
"@error('funcaoParticipante')"
+
"@error('funcaoParticipante')"
+
"<span class='invalid-feedback'"
+
"role='alert'"
+
"style='overflow: visible; display:block'>"
+
"<span class='invalid-feedback'"
+
"role='alert'"
+
"style='overflow: visible; display:block'>"
+
"<strong>{{
$message
}}</strong>"
+
"<strong>{{
$message
}}</strong>"
+
"</span>"
+
"</span>"
+
"@enderror"
+
"@enderror"
+
"</select>"
+
"</select>"
+
"</div>"
+
"</div>"
+
"</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>"
+
"<h5>Dados do plano de trabalho</h5>"
+
"<div class="
+
"row"
+
">"
+
"<div class="
+
"row"
+
">"
+
"<div class="
+
"col-sm-4"
+
">"
+
"<div class="
+
"col-sm-4"
+
">"
+
"<label>Titulo*</label>"
+
"<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')"
+
"@error('nomePlanoTrabalho')"
+
"<span class='invalid-feedback'"
+
"role='alert'"
+
"style='overflow: visible; display:block'>"
+
"<span class='invalid-feedback'"
+
"role='alert'"
+
"style='overflow: visible; display:block'>"
+
"<strong>{{
$message
}}</strong>"
+
"<strong>{{
$message
}}</strong>"
+
...
@@ -533,13 +605,13 @@
...
@@ -533,13 +605,13 @@
"<input type='file' class='custom-file-input @error('anexoPlanoTrabalho') is-invalid @enderror"
+
"id='inputGroupFile01'"
+
"<input type='file' class='custom-file-input @error('anexoPlanoTrabalho') is-invalid @enderror"
+
"id='inputGroupFile01'"
+
"aria-describedby='inputGroupFileAddon01' name='anexoPlanoTrabalho[]'>"
+
"aria-describedby='inputGroupFileAddon01' name='anexoPlanoTrabalho[]'>"
+
"<label class='custom-file-label' id='custom-file-label' for='inputGroupFile01'>O arquivo deve ser no formato PDF de até 2mb.</label>"
+
"<label class='custom-file-label' id='custom-file-label' for='inputGroupFile01'>O arquivo deve ser no formato PDF de até 2mb.</label>"
+
"</div>"
+
"</div>"
+
"</div>"
+
"</div>"
+
"@error('anexoPlanoTrabalho')"
+
"@error('anexoPlanoTrabalho')"
+
"<span class='invalid-feedback' role='alert' style='overflow: visible; display:block'>"
+
"<span class='invalid-feedback' role='alert' style='overflow: visible; display:block'>"
+
"<strong>{{
$message
}}</strong>"
+
"<strong>{{
$message
}}</strong>"
+
"</span>"
+
"</span>"
+
"@enderror"
+
"@enderror"
+
"</div>"
+
"</div>"
+
"<div class="
+
"col-sm-1"
+
">"
+
"<div class="
+
"col-sm-1"
+
">"
+
"<a class="
+
"delete"
+
">"
+
"<a class="
+
"delete"
+
">"
+
...
@@ -547,8 +619,10 @@
...
@@ -547,8 +619,10 @@
"</a>"
+
"</a>"
+
"</div>"
+
"</div>"
+
"</div>"
+
"</div>"
+
"</div>"
+
"</div>"
;
"</div>"
;
}
}
// function montarLinhaInputPlanoTrabalho(){
// function montarLinhaInputPlanoTrabalho(){
// return "<div class="+"row"+">"+
// return "<div class="+"row"+">"+
...
@@ -583,38 +657,83 @@
...
@@ -583,38 +657,83 @@
// "</div>";
// "</div>";
// }
// }
function
areas
()
{
function
areas
()
{
var
grandeArea
=
$
(
'#grandeArea'
)
.
val
();
var
grandeArea
=
$
(
'#grandeArea'
)
.
val
();
$
.
getJSON
(
"{{ config('app.url') }}/naturezas/areas/"
+
grandeArea
,
$
.
getJSON
(
"{{ config('app.url') }}/naturezas/areas/"
+
grandeArea
,
function
(
dados
){
function
(
dados
)
{
if
(
dados
.
length
>
0
){
if
(
dados
.
length
>
0
)
{
var
option
=
'<option>-- Área --</option>'
;
if
(
$
(
'#oldArea'
)
.
val
()
==
null
||
$
(
'#oldArea'
)
.
val
()
==
""
){
$
.
each
(
dados
,
function
(
i
,
obj
){
var
option
=
'<option selected disabled>-- Área --</option>'
;
option
+=
'<option value="'
+
obj
.
id
+
'">'
+
obj
.
nome
+
'</option>'
;
})
}
else
{
var
option
=
"<option>-- Área --</option>"
;
}
}
$
(
'#area'
)
.
html
(
option
)
.
show
();
$
.
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 selected disabled>-- Área --</option>"
;
}
$
(
'#area'
)
.
html
(
option
)
.
show
();
subareas
();
})
}
}
function
subareas
()
{
function
subareas
()
{
var
area
=
$
(
'#area'
)
.
val
();
var
area
=
$
(
'#area'
)
.
val
();
$
.
getJSON
(
"{{ config('app.url') }}/naturezas/subarea/"
+
area
,
$
.
getJSON
(
"{{ config('app.url') }}/naturezas/subarea/"
+
area
,
function
(
dados
){
function
(
dados
)
{
if
(
dados
.
length
>
0
){
if
(
dados
.
length
>
0
)
{
var
option
=
'<option>-- Sub Área --</option>'
;
if
(
$
(
'#oldSubArea'
)
.
val
()
==
null
||
$
(
'#oldSubArea'
)
.
val
()
==
""
){
$
.
each
(
dados
,
function
(
i
,
obj
){
var
option
=
'<option selected disabled>-- Sub Área --</option>'
;
option
+=
'<option value="'
+
obj
.
id
+
'">'
+
obj
.
nome
+
'</option>'
;
})
}
else
{
var
option
=
"<option>-- Sub Área --</option>"
;
}
}
$
(
'#subArea'
)
.
html
(
option
)
.
show
();
$
.
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 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
=
areas
();
window
.
onload
=
habilitarBotao
();
</
script
>
</
script
>
@
endsection
@
endsection
\ No newline at end of file
This diff is collapsed.
Click to expand it.
resources/views/evento/visualizarEvento.blade.php
View file @
72241b3c
...
@@ -104,7 +104,7 @@
...
@@ -104,7 +104,7 @@
<
div
class
=
"row margin"
>
<
div
class
=
"row margin"
>
<
div
class
=
"col-sm-12 info-evento"
>
<
div
class
=
"col-sm-12 info-evento"
>
<
h4
>
Revis
ão
de
Projetos
</
h4
>
<
h4
>
Avaliaç
ão
de
Projetos
</
h4
>
<
p
>
<
p
>
<
img
class
=
""
src
=
"
{
{asset('img/icons/calendar-evento.svg')}
}
"
alt
=
""
>
<
img
class
=
""
src
=
"
{
{asset('img/icons/calendar-evento.svg')}
}
"
alt
=
""
>
{{
date
(
'd/m/Y'
,
strtotime
(
$evento
->
inicioRevisao
))}}
-
{{
date
(
'd/m/Y'
,
strtotime
(
$evento
->
fimRevisao
))}}
{{
date
(
'd/m/Y'
,
strtotime
(
$evento
->
inicioRevisao
))}}
-
{{
date
(
'd/m/Y'
,
strtotime
(
$evento
->
fimRevisao
))}}
...
...
This diff is collapsed.
Click to expand it.
resources/views/layouts/app.blade.php
View file @
72241b3c
...
@@ -85,7 +85,7 @@
...
@@ -85,7 +85,7 @@
</div>
</div>
<a
href=
"{{ route('register') }}"
class=
"btn navbar-text btn-azul-destaque negrito"
style=
"color: rgb(0, 140, 255);"
>
{{ __('Cadastre-se') }}
</a>
<a
href=
"{{ route('register') }}"
class=
"btn navbar-text btn-azul-destaque negrito"
style=
"color: rgb(0, 140, 255);"
>
{{ __('Cadastre-se') }}
</a>
@else
@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
>
<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>
{{ Auth::user()->name }}
<span
class=
"caret"
></span>
...
...
This diff is collapsed.
Click to expand it.
resources/views/naturezas/index.blade.php
View file @
72241b3c
...
@@ -111,24 +111,31 @@
...
@@ -111,24 +111,31 @@
{{
$natureza
->
nome
}}
{{
$natureza
->
nome
}}
</
td
>
</
td
>
<
td
>
<
td
>
{{
$natureza
->
creat_at
}}
{{
$natureza
->
creat_at
}}
</
td
>
</
td
>
<
td
>
<
td
>
<
div
class
=
"btn-group dropright dropdown-options"
>
@
if
(
is_null
(
$natureza
->
projetos
->
first
()))
<
a
id
=
"options"
class
=
"dropdown-toggle "
data
-
toggle
=
"dropdown"
aria
-
haspopup
=
"true"
aria
-
expanded
=
"false"
>
<
div
class
=
"btn-group dropright dropdown-options"
>
<
img
src
=
"
{
{asset('img/icons/ellipsis-v-solid.svg')}
}
"
style
=
"width:8px"
>
<
a
id
=
"options"
class
=
"dropdown-toggle "
data
-
toggle
=
"dropdown"
aria
-
haspopup
=
"true"
aria
-
expanded
=
"false"
>
</
a
>
<
img
src
=
"
{
{asset('img/icons/ellipsis-v-solid.svg')}
}
"
style
=
"width:8px"
>
<
div
class
=
"dropdown-menu"
>
</
a
>
<
a
class
=
"dropdown-item"
data
-
toggle
=
"modal"
data
-
target
=
"#modalEditCenter
{
{$natureza->id}
}
"
class
=
"dropdown-item"
>
<
div
class
=
"dropdown-menu"
>
<
img
src
=
"
{
{asset('img/icons/edit-regular.svg')}
}
"
class
=
"icon-card"
alt
=
""
>
{{
__
(
'Editar'
)}}
<
a
class
=
"dropdown-item"
data
-
toggle
=
"modal"
data
-
target
=
"#modalEditCenter
{
{$natureza->id}
}
"
class
=
"dropdown-item"
>
</
a
>
<
img
src
=
"
{
{asset('img/icons/edit-regular.svg')}
}
"
class
=
"icon-card"
alt
=
""
>
<
a
class
=
"dropdown-item"
data
-
toggle
=
"modal"
data
-
target
=
"#modalDelCenter
{
{$natureza->id}
}
"
class
=
"dropdown-item"
>
{{
__
(
'Editar'
)}}
<
img
src
=
"
{
{asset('img/icons/trash-alt-regular.svg')}
}
"
class
=
"icon-card"
alt
=
""
>
</
a
>
{{
__
(
'Deletar'
)}}
<
a
class
=
"dropdown-item"
data
-
toggle
=
"modal"
data
-
target
=
"#modalDelCenter
{
{$natureza->id}
}
"
class
=
"dropdown-item"
>
</
a
>
<
img
src
=
"
{
{asset('img/icons/trash-alt-regular.svg')}
}
"
class
=
"icon-card"
alt
=
""
>
</
div
>
{{
__
(
'Deletar'
)}}
</
div
>
</
a
>
</
div
>
</
div
>
@
else
<
div
style
=
"float: right;"
>
Fixada
em
um
edital
</
div
>
@
endif
</
td
>
</
td
>
</
tr
>
</
tr
>
@
endforeach
@
endforeach
...
...
This diff is collapsed.
Click to expand it.
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
This diff is collapsed.
Click to expand it.
resources/views/participante/index.blade.php
View file @
72241b3c
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
<
div
class
=
"row justify-content-center d-flex align-items-center"
>
<
div
class
=
"row justify-content-center d-flex align-items-center"
>
<
div
class
=
"col-sm-4 d-flex justify-content-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 text-center "
style
=
"border-radius: 30px; width: 18rem;"
>
<
div
class
=
"card-body d-flex justify-content-center"
>
<
div
class
=
"card-body d-flex justify-content-center"
>
<
h2
style
=
"padding-top:15px"
>
Editais
</
h2
>
<
h2
style
=
"padding-top:15px"
>
Editais
</
h2
>
...
...
This diff is collapsed.
Click to expand it.
resources/views/projeto/index.blade.php
View file @
72241b3c
...
@@ -12,9 +12,9 @@
...
@@ -12,9 +12,9 @@
<
div
class
=
"col-sm-2"
>
<
div
class
=
"col-sm-2"
>
<!--
Se
usuário
não
é
proponente
,
redirecionar
para
view
de
cadastro
-->
<!--
Se
usuário
não
é
proponente
,
redirecionar
para
view
de
cadastro
-->
@
if
(
Auth
::
user
()
->
proponentes
==
null
)
@
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
@
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
@
endif
</
div
>
</
div
>
</
div
>
</
div
>
...
...
This diff is collapsed.
Click to expand it.
resources/views/proponente/cadastro.blade.php
View file @
72241b3c
...
@@ -15,6 +15,14 @@
...
@@ -15,6 +15,14 @@
</
div
>
</
div
>
</
div
>
</
div
>
@
endif
@
endif
@
if
(
isset
(
$mensagem
))
<
div
class
=
"col-sm-12"
>
<
br
>
<
div
class
=
"alert alert-danger"
>
<
p
>
{{
$mensagem
}}
</
p
>
</
div
>
</
div
>
@
endif
</
div
>
</
div
>
<
br
>
<
br
>
<
form
method
=
"POST"
action
=
"{{ route('proponente.store') }}"
>
<
form
method
=
"POST"
action
=
"{{ route('proponente.store') }}"
>
...
...
This diff is collapsed.
Click to expand it.
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
This diff is collapsed.
Click to expand it.
resources/views/proponente/index.blade.php
View file @
72241b3c
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
<
div
class
=
"row justify-content-center d-flex align-items-center"
>
<
div
class
=
"row justify-content-center d-flex align-items-center"
>
<
div
class
=
"col-sm-3 d-flex justify-content-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 text-center "
style
=
"border-radius: 30px; width: 13rem;height: 15rem;"
>
<
div
class
=
"card-body d-flex justify-content-center"
>
<
div
class
=
"card-body d-flex justify-content-center"
>
<
h2
style
=
"padding-top:15px"
>
Editais
</
h2
>
<
h2
style
=
"padding-top:15px"
>
Editais
</
h2
>
...
...
This diff is collapsed.
Click to expand it.
resources/views/user/perfilUser.blade.php
View file @
72241b3c
...
@@ -2,7 +2,6 @@
...
@@ -2,7 +2,6 @@
@
section
(
'content'
)
@
section
(
'content'
)
@
if
(
Auth
()
->
user
()
->
usuarioTemp
==
null
)
<
div
class
=
"container content"
>
<
div
class
=
"container content"
>
<
div
class
=
"row titulo"
>
<
div
class
=
"row titulo"
>
<
h1
>
Perfil
</
h1
>
<
h1
>
Perfil
</
h1
>
...
@@ -20,7 +19,7 @@
...
@@ -20,7 +19,7 @@
<
input
hidden
name
=
"id"
value
=
"
{
{$user->id}
}
"
>
<
input
hidden
name
=
"id"
value
=
"
{
{$user->id}
}
"
>
<
div
class
=
"col-md-8"
>
<
div
class
=
"col-md-8"
>
<
label
for
=
"name"
class
=
"col-form-label"
>
{{
__
(
'Nome Completo'
)
}}
</
label
>
<
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'
)
@
error
(
'name'
)
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
...
@@ -31,7 +30,7 @@
...
@@ -31,7 +30,7 @@
<
div
class
=
"col-md-4"
>
<
div
class
=
"col-md-4"
>
<
label
for
=
"cpf"
class
=
"col-form-label"
>
{{
__
(
'CPF'
)
}}
</
label
>
<
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'
)
@
error
(
'cpf'
)
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
...
@@ -45,7 +44,7 @@
...
@@ -45,7 +44,7 @@
<
div
class
=
"col-md-8"
>
<
div
class
=
"col-md-8"
>
<
label
for
=
"instituicao"
class
=
"col-form-label"
>
{{
__
(
'Instituição de Ensino'
)
}}
</
label
>
<
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'
)
@
error
(
'instituicao'
)
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
...
@@ -56,7 +55,7 @@
...
@@ -56,7 +55,7 @@
<
div
class
=
"col-md-4"
>
<
div
class
=
"col-md-4"
>
<
label
for
=
"celular"
class
=
"col-form-label"
>
{{
__
(
'Celular'
)
}}
</
label
>
<
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'
)
@
error
(
'celular'
)
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
...
@@ -71,7 +70,7 @@
...
@@ -71,7 +70,7 @@
<
div
class
=
"col-md-12"
>
<
div
class
=
"col-md-12"
>
<
label
for
=
"instituicao"
class
=
"col-form-label"
>
{{
__
(
'E-mail'
)
}}
</
label
>
<
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'
)
@
error
(
'instituicao'
)
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
...
@@ -82,7 +81,7 @@
...
@@ -82,7 +81,7 @@
</
div
>
</
div
>
<
div
class
=
"row subtitulo"
style
=
"margin-top:20px"
>
{{
--
<
div
class
=
"row subtitulo"
style
=
"margin-top:20px"
>
<
div
class
=
"col-sm-12"
>
<
div
class
=
"col-sm-12"
>
<
p
>
Permissões
</
p
>
<
p
>
Permissões
</
p
>
</
div
>
</
div
>
...
@@ -114,30 +113,30 @@
...
@@ -114,30 +113,30 @@
Não
tem
permissão
de
Avaliador
Não
tem
permissão
de
Avaliador
</
div
>
</
div
>
</
div
>
</
div
>
@
endif
@
endif
--
}}
@
if
(
!
(
is_null
(
$proponente
)))
@
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"
>
<
div
class
=
"col-md-12"
>
Tem
permissão
de
proponente
Tem
permissão
de
proponente
</
div
>
</
div
>
</
div
>
</
div
>
--
}}
<
div
class
=
"row subtitulo"
style
=
"margin-top:20px"
>
<
div
class
=
"row subtitulo"
style
=
"margin-top:20px"
>
<
div
class
=
"col-sm-12"
>
<
div
class
=
"col-sm-12"
>
<
p
>
Dados
de
proponente
</
p
>
<
p
>
Dados
de
proponente
</
p
>
</
div
>
</
div
>
</
div
>
</
div
>
<
label
class
=
"col-form-label"
>
{{
__
(
'SIAPE'
)
}}
</
label
>
<
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
>
<
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
>
<
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
>
<
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
value
=
""
disabled
selected
hidden
>--
Titulação
--</
option
>
<
option
@
if
(
$proponente
->
titulacaoMaxima
==
"Doutorado"
)
selected
@
endif
value
=
"Doutorado"
>
Doutorado
</
option
>
<
option
@
if
(
$proponente
->
titulacaoMaxima
==
"Doutorado"
)
selected
@
endif
value
=
"Doutorado"
>
Doutorado
</
option
>
<
option
@
if
(
$proponente
->
titulacaoMaxima
==
"Mestrado"
)
selected
@
endif
value
=
"Mestrado"
>
Mestrado
</
option
>
<
option
@
if
(
$proponente
->
titulacaoMaxima
==
"Mestrado"
)
selected
@
endif
value
=
"Mestrado"
>
Mestrado
</
option
>
...
@@ -147,30 +146,30 @@
...
@@ -147,30 +146,30 @@
</
select
>
</
select
>
<
label
class
=
"col-form-label"
>
{{
__
(
'Ano Titulação'
)
}}
</
label
>
<
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
>
<
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
>
<
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
>
<
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
>
<
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
>
<
br
>
@
else
@
else
<
div
class
=
"form-group row justify-content-center"
>
{{
--
<
div
class
=
"form-group row justify-content-center"
>
<
div
class
=
"col-md-12"
>
<
div
class
=
"col-md-12"
>
Não
tem
permissão
de
proponente
Não
tem
permissão
de
proponente
</
div
>
</
div
>
</
div
>
</
div
>
--
}}
@
endif
@
endif
@
if
(
!
(
is_null
(
$participante
)))
{{
--
@
if
(
!
(
is_null
(
$participante
)))
<
div
class
=
"form-group row justify-content-center"
>
<
div
class
=
"form-group row justify-content-center"
>
<
div
class
=
"col-md-12"
>
<
div
class
=
"col-md-12"
>
Tem
permissão
de
participante
Tem
permissão
de
participante
...
@@ -182,7 +181,7 @@
...
@@ -182,7 +181,7 @@
Não
tem
permissão
de
participante
Não
tem
permissão
de
participante
</
div
>
</
div
>
</
div
>
</
div
>
@
endif
@
endif
--
}}
{{
--
<
div
class
=
"row subtitulo"
style
=
"margin-top:20px"
>
{{
--
<
div
class
=
"row subtitulo"
style
=
"margin-top:20px"
>
<
div
class
=
"col-sm-12"
>
<
div
class
=
"col-sm-12"
>
<
p
>
Endereço
</
p
>
<
p
>
Endereço
</
p
>
...
@@ -304,290 +303,7 @@
...
@@ -304,290 +303,7 @@
</
form
>
</
form
>
</
div
>
</
div
>
</
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
@
endsection
@
section
(
'javascript'
)
@
section
(
'javascript'
)
<
script
type
=
"text/javascript"
>
<
script
type
=
"text/javascript"
>
...
...
This diff is collapsed.
Click to expand it.
routes/web.php
View file @
72241b3c
...
@@ -21,34 +21,35 @@ Auth::routes(['verify' => true]);
...
@@ -21,34 +21,35 @@ Auth::routes(['verify' => true]);
//######## Rotas Avaliador ####################################
//######## Rotas Avaliador ####################################
Route
::
prefix
(
'avaliador'
)
->
name
(
'avaliador.'
)
->
group
(
function
(){
Route
::
prefix
(
'avaliador'
)
->
name
(
'avaliador.'
)
->
group
(
function
(){
Route
::
get
(
'/index'
,
'AvaliadorController@index'
)
->
name
(
'index'
);
Route
::
get
(
'/index'
,
'AvaliadorController@index'
)
->
name
(
'index'
)
->
middleware
(
'auth'
)
;
Route
::
get
(
'/trabalhos'
,
'AvaliadorController@visualizarTrabalhos'
)
->
name
(
'visualizarTrabalho'
);
Route
::
get
(
'/trabalhos'
,
'AvaliadorController@visualizarTrabalhos'
)
->
name
(
'visualizarTrabalho'
)
->
middleware
(
'auth'
)
;
Route
::
post
(
'/parecer'
,
'AvaliadorController@parecer'
)
->
name
(
'parecer'
);
Route
::
post
(
'/parecer'
,
'AvaliadorController@parecer'
)
->
name
(
'parecer'
)
->
middleware
(
'auth'
)
;
Route
::
get
(
'/editais'
,
'AvaliadorController@editais'
)
->
name
(
'editais'
);
Route
::
get
(
'/editais'
,
'AvaliadorController@editais'
)
->
name
(
'editais'
)
->
middleware
(
'auth'
)
;
Route
::
post
(
'/Enviarparecer'
,
'AvaliadorController@enviarParecer'
)
->
name
(
'enviarParecer'
);
Route
::
post
(
'/Enviarparecer'
,
'AvaliadorController@enviarParecer'
)
->
name
(
'enviarParecer'
)
->
middleware
(
'auth'
)
;
});
});
//######### Proponente ########################################
//######### Proponente ########################################
Route
::
get
(
'/proponente/index'
,
'ProponenteController@index'
)
->
name
(
'proponente.index'
);
Route
::
get
(
'/proponente/index'
,
'ProponenteController@index'
)
->
name
(
'proponente.index'
);
Route
::
get
(
'/proponente/cadastro'
,
'ProponenteController@create'
)
->
name
(
'proponente.create'
);
Route
::
get
(
'/proponente/cadastro'
,
'ProponenteController@create'
)
->
name
(
'proponente.create'
);
Route
::
post
(
'/proponente/cadastro'
,
'ProponenteController@store'
)
->
name
(
'proponente.store'
);
Route
::
post
(
'/proponente/cadastro'
,
'ProponenteController@store'
)
->
name
(
'proponente.store'
);
Route
::
get
(
'/proponente/editais'
,
'ProponenteController@editais'
)
->
name
(
'proponente.editais'
);
//######### Participante ########################################
//######### Participante ########################################
Route
::
get
(
'/participante/index'
,
'ParticipanteController@index'
)
->
name
(
'participante.index'
);
Route
::
get
(
'/participante/index'
,
'ParticipanteController@index'
)
->
name
(
'participante.index'
);
Route
::
get
(
'/participante/edital/{id}'
,
'ParticipanteController@edital'
)
->
name
(
'participante.edital'
);
Route
::
get
(
'/participante/edital/{id}'
,
'ParticipanteController@edital'
)
->
name
(
'participante.edital'
);
//######### Rotas Administrador #################################
//######### 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
::
get
(
'/perfil'
,
'UserController@perfil'
)
->
name
(
'perfil'
)
->
middleware
([
'auth'
,
'verified'
]);
Route
::
post
(
'/perfil'
,
'UserController@editarPerfil'
)
->
name
(
'perfil'
)
->
middleware
([
'auth'
,
'verified'
]);
Route
::
post
(
'/perfil'
,
'UserController@editarPerfil'
)
->
name
(
'perfil'
)
->
middleware
([
'auth'
,
'verified'
]);
Route
::
group
([
'middleware'
=>
[
'isTemp'
,
'auth'
,
'verified'
]],
function
(){
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 #####################################
// ######## 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'
);
Route
::
get
(
'/coordenador/evento/detalhes'
,
'EventoController@detalhes'
)
->
name
(
'coord.detalhesEvento'
);
//####### Visualizar trabalhos do usuário ######################
//####### Visualizar trabalhos do usuário ######################
...
@@ -63,6 +64,7 @@ Route::group(['middleware' => ['isTemp', 'auth', 'verified']], function(){
...
@@ -63,6 +64,7 @@ Route::group(['middleware' => ['isTemp', 'auth', 'verified']], function(){
//######### Area do participante ###############################
//######### Area do participante ###############################
Route
::
get
(
'/participante'
,
'EventoController@areaParticipante'
)
->
name
(
'area.participante'
);
Route
::
get
(
'/participante'
,
'EventoController@areaParticipante'
)
->
name
(
'area.participante'
);
Route
::
get
(
'participante/editais'
,
'ParticipanteController@editais'
)
->
name
(
'participante.editais'
);
//########## Area da comissao ###################################
//########## Area da comissao ###################################
Route
::
get
(
'/comissoes'
,
'EventoController@listComissao'
)
->
name
(
'comissoes'
);
Route
::
get
(
'/comissoes'
,
'EventoController@listComissao'
)
->
name
(
'comissoes'
);
...
@@ -120,6 +122,7 @@ Route::group(['middleware' => ['isTemp', 'auth', 'verified']], function(){
...
@@ -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-lattes/{id}'
,
'TrabalhoController@baixarAnexoLattes'
)
->
name
(
'baixar.anexo.lattes'
);
Route
::
get
(
'/baixar/anexo-planilha/{id}'
,
'TrabalhoController@baixarAnexoPlanilha'
)
->
name
(
'baixar.anexo.planilha'
);
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/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
(){
Route
::
prefix
(
'usuarios'
)
->
name
(
'admin.'
)
->
group
(
function
(){
...
@@ -188,15 +191,15 @@ Route::prefix('naturezas')->group(function(){
...
@@ -188,15 +191,15 @@ Route::prefix('naturezas')->group(function(){
//############ Evento ##############################################
//############ Evento ##############################################
Route
::
prefix
(
'evento'
)
->
name
(
'evento.'
)
->
group
(
function
(){
Route
::
prefix
(
'evento'
)
->
name
(
'evento.'
)
->
group
(
function
(){
Route
::
get
(
'/criar'
,
'EventoController@create'
)
->
name
(
'criar'
);
Route
::
get
(
'/criar'
,
'EventoController@create'
)
->
name
(
'criar'
)
->
middleware
(
'checkAdministrador'
)
;
Route
::
post
(
'/criar'
,
'EventoController@store'
)
->
name
(
'criar'
);
Route
::
post
(
'/criar'
,
'EventoController@store'
)
->
name
(
'criar'
)
->
middleware
(
'checkAdministrador'
)
;
Route
::
get
(
'/visualizar/{id}'
,
'EventoController@show'
)
->
name
(
'visualizar'
);
Route
::
get
(
'/visualizar/{id}'
,
'EventoController@show'
)
->
name
(
'visualizar'
)
->
middleware
(
'auth'
)
;
Route
::
get
(
'/listar'
,
'EventoController@listar'
)
->
name
(
'listar'
);
Route
::
get
(
'/listar'
,
'EventoController@listar'
)
->
name
(
'listar'
)
->
middleware
(
'auth'
)
;
Route
::
delete
(
'/excluir/{id}'
,
'EventoController@destroy'
)
->
name
(
'deletar'
);
Route
::
delete
(
'/excluir/{id}'
,
'EventoController@destroy'
)
->
name
(
'deletar'
)
->
middleware
(
'checkAdministrador'
)
;
Route
::
get
(
'/editar/{id}'
,
'EventoController@edit'
)
->
name
(
'editar'
);
Route
::
get
(
'/editar/{id}'
,
'EventoController@edit'
)
->
name
(
'editar'
)
->
middleware
(
'checkAdministrador'
)
;
Route
::
post
(
'/editar/{id}'
,
'EventoController@update'
)
->
name
(
'update'
);
Route
::
post
(
'/editar/{id}'
,
'EventoController@update'
)
->
name
(
'update'
)
->
middleware
(
'checkAdministrador'
)
;
Route
::
post
(
'/setResumo'
,
'EventoController@setResumo'
)
->
name
(
'setResumo'
);
Route
::
post
(
'/setResumo'
,
'EventoController@setResumo'
)
->
name
(
'setResumo'
)
->
middleware
(
'checkAdministrador'
)
;
Route
::
post
(
'/setFoto'
,
'EventoController@setFotoEvento'
)
->
name
(
'setFotoEvento'
);
Route
::
post
(
'/setFoto'
,
'EventoController@setFotoEvento'
)
->
name
(
'setFotoEvento'
)
->
middleware
(
'checkAdministrador'
)
;
});
});
...
...
This diff is collapsed.
Click to expand it.
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