Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Walter Felipe
submeta
Commits
458bf888
Commit
458bf888
authored
2 years ago
by
Guilherme Silva
Browse files
Options
Download
Plain Diff
Merge branch 'master' of
https://github.com/antonioDurval/submeta
parents
91436362
c5f23c53
master
carl-branch
dependabot/composer/dompdf/dompdf-1.2.2
dependabot/composer/guzzlehttp/guzzle-6.5.8
dependabot/composer/symfony/http-kernel-4.4.50
dependabot/npm_and_yarn/decode-uri-component-0.2.2
dependabot/npm_and_yarn/express-4.18.2
dependabot/npm_and_yarn/json5-and-json5-2.2.3
dependabot/npm_and_yarn/loader-utils-and-webpack-cli-1.4.2
dependabot/npm_and_yarn/minimist-and-mkdirp-1.2.8
dependabot/npm_and_yarn/qs-and-express-6.11.0
excluir_projeto_submetido
updates_mar
No related merge requests found
Changes
11
Show whitespace changes
Inline
Side-by-side
Showing
11 changed files
app/Http/Controllers/AdministradorController.php
+1
-1
app/Http/Controllers/AdministradorController.php
app/Http/Controllers/TrabalhoController.php
+2
-0
app/Http/Controllers/TrabalhoController.php
resources/views/administrador/editar_user.blade.php
+2
-2
resources/views/administrador/editar_user.blade.php
resources/views/avaliador/parecerInterno.blade.php
+1
-1
resources/views/avaliador/parecerInterno.blade.php
resources/views/evento/criarEvento.blade.php
+1
-1
resources/views/evento/criarEvento.blade.php
resources/views/evento/formulario/participantes.blade.php
+104
-37
resources/views/evento/formulario/participantes.blade.php
resources/views/evento/visualizarEvento.blade.php
+3
-1
resources/views/evento/visualizarEvento.blade.php
resources/views/projeto/editaFormulario/participantes.blade.php
+99
-37
...ces/views/projeto/editaFormulario/participantes.blade.php
resources/views/projeto/editar.blade.php
+0
-25
resources/views/projeto/editar.blade.php
resources/views/projeto/formularioVisualizar/proponente2.blade.php
+13
-3
.../views/projeto/formularioVisualizar/proponente2.blade.php
resources/views/projeto/visualizar.blade.php
+1
-1
resources/views/projeto/visualizar.blade.php
with
227 additions
and
109 deletions
+227
-109
app/Http/Controllers/AdministradorController.php
View file @
458bf888
...
...
@@ -393,7 +393,7 @@ class AdministradorController extends Controller
$validated
=
$request
->
validate
([
'name'
=>
[
'required'
,
'string'
,
'max:255'
],
'tipo'
=>
[
'required'
],
'email'
=>
[
'required'
,
'string'
,
'email'
,
'max:255'
,
'unique:users'
],
'email'
=>
[
'required'
,
'string'
,
'email'
,
'max:255'
],
'instituicao'
=>
[
'required_if:instituicaoSelect,Outra'
,
'max:255'
],
'instituicaoSelect'
=>
[
'required_without:instituicao'
],
'celular'
=>
(
$request
[
'celular'
]
!=
null
?
'required|string|telefone'
:
'nullable'
),
...
...
This diff is collapsed.
Click to expand it.
app/Http/Controllers/TrabalhoController.php
View file @
458bf888
...
...
@@ -362,6 +362,7 @@ class TrabalhoController extends Controller
$grandeAreas
=
GrandeArea
::
all
();
$areas
=
Area
::
all
();
$subareas
=
Subarea
::
all
();
$areasTematicas
=
AreaTematica
::
all
();
$funcaoParticipantes
=
FuncaoParticipantes
::
all
();
$participantes
=
$projeto
->
participantes
;
$participantesUsersIds
=
Participante
::
where
(
'trabalho_id'
,
$id
)
->
select
(
'user_id'
)
->
get
();
...
...
@@ -379,6 +380,7 @@ class TrabalhoController extends Controller
'estados'
=>
$this
->
estados
,
'visualizar'
=>
true
,
'enum_turno'
=>
Participante
::
ENUM_TURNO
,
'areasTematicas'
=>
$areasTematicas
,
]);
}
...
...
This diff is collapsed.
Click to expand it.
resources/views/administrador/editar_user.blade.php
View file @
458bf888
...
...
@@ -282,7 +282,7 @@
<
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
=
"
/
"
style
=
"width:100%"
>
Cancelar
</
a
>
<
a
class
=
"btn btn-secondary botao-form"
href
=
"
{{ route('admin.usuarios') }}
"
style
=
"width:100%"
>
Cancelar
</
a
>
</
div
>
<
div
class
=
"col-md-6"
style
=
"padding-right:0"
>
<
button
type
=
"submit"
class
=
"btn btn-primary botao-form"
style
=
"width:100%"
>
...
...
@@ -446,7 +446,7 @@
<
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
=
"
/
"
style
=
"width:100%"
>
Cancelar
</
a
>
<
a
class
=
"btn btn-secondary botao-form"
href
=
"
{{ route('admin.usuarios') }}
"
style
=
"width:100%"
>
Cancelar
</
a
>
</
div
>
<
div
class
=
"col-md-6"
style
=
"padding-right:0"
>
<
button
type
=
"submit"
class
=
"btn btn-primary botao-form"
style
=
"width:100%"
>
...
...
This diff is collapsed.
Click to expand it.
resources/views/avaliador/parecerInterno.blade.php
View file @
458bf888
...
...
@@ -12,7 +12,7 @@
</
div
>
<
div
class
=
"col-md-10"
style
=
"padding: 0px"
@
component
(
'projeto.formularioVisualizar.proponente2'
,
[
'projeto'
=>
$trabalho
])
@
component
(
'projeto.formularioVisualizar.proponente2'
,
[
'edital'
=>
$trabalho
->
evento
,
'projeto'
=>
$trabalho
])
@
endcomponent
</
div
>
...
...
This diff is collapsed.
Click to expand it.
resources/views/evento/criarEvento.blade.php
View file @
458bf888
...
...
@@ -95,7 +95,7 @@
<
div
class
=
"col-sm-12"
>
<
div
class
=
"form-group"
>
<
label
for
=
"exampleFormControlTextarea1"
>
Descrição
*:</
label
>
<
textarea
class
=
"form-control @error('descricao') is-invalid @enderror"
required
autocomplete
=
"descricao"
autofocus
id
=
"descricao"
name
=
"descricao"
rows
=
"
3
"
>
{{
old
(
'descricao'
)
}}
</
textarea
>
<
textarea
class
=
"form-control @error('descricao') is-invalid @enderror"
required
autocomplete
=
"descricao"
autofocus
id
=
"descricao"
name
=
"descricao"
rows
=
"
6
"
>
{{
old
(
'descricao'
)
}}
</
textarea
>
@
error
(
'descricao'
)
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
<
strong
>
{{
$message
}}
</
strong
>
...
...
This diff is collapsed.
Click to expand it.
resources/views/evento/formulario/participantes.blade.php
View file @
458bf888
...
...
@@ -124,76 +124,69 @@
<div
class=
"col-md-12"
><h5>
Endereço
</h5></div>
<div
class=
"col-6"
>
@component('componentes.input', ['label' => 'CEP'])
<input
type=
"text"
class=
"form-control cep"
value=
"{{old('cep')[$i] ?? "
"
}}"
name=
"cep[{{$i}}]"
placeholder=
"CEP"
/>
<input
name=
"cep[{{$i}}]"
type=
"text"
id=
"cep{{$i}}"
value=
"{{ old('cep')[$i] ?? ''}}"
class=
"form-control cep"
onblur=
"pesquisacep(this.value, {{$i}})"
/>
@error('cep.'.$i)
<span
class=
"invalid-feedback"
role=
"alert"
style=
"overflow: visible; display:block"
>
<strong>
{{ $message }}
</strong>
</span>
<span
class=
"invalid-feedback"
role=
"alert"
style=
"overflow: visible; display:block"
><strong>
{{ $message }}
</strong></span>
@enderror
@endcomponent
</div>
<div
class=
"col-6"
>
@component('componentes.select', ['label' => 'Estado'])
<select
name=
"uf[{{$i}}]"
id=
"estado"
class=
"form-control"
style=
"visibility: visible"
>
<option
value=
""
selected
>
-- Selecione uma opção --
</option>
@foreach ($estados as $sigla => $nome)
<option
@
if
(
old
('
uf
')[$
i
]
??
""
==
$
sigla
)
selected
@
endif
value=
"{{ $sigla }}"
>
{{ $nome }}
</option>
@endforeach
</select>
@component('componentes.input', ['label' => 'Estado'])
<input
name=
"uf[{{$i}}]"
type=
"text"
class=
"form-control"
value=
"{{ old('uf')[$i] ?? '' }}"
id=
"uf{{$i}}"
/>
@error('uf.'.$i)
<span
class=
"invalid-feedback"
role=
"alert"
style=
"overflow: visible; display:block"
>
<strong>
{{ $message }}
</strong>
</span>
<span
class=
"invalid-feedback"
role=
"alert"
style=
"overflow: visible; display:block"
><strong>
{{ $message }}
</strong></span>
@enderror
@endcomponent
</div>
<div
class=
"col-6"
>
@component('componentes.input', ['label' => 'Cidade'])
<input
type=
"text"
class=
"form-control"
value=
"{{old('cidade')[$i] ?? "
"
}}"
name=
"cidade[{{$i}}]"
placeholder=
"Cidade"
maxlength=
"50"
id=
"cidade{{$i}}"
/>
<span
style=
"color: red; font-size: 12px"
id=
"caracsRestantescidade{{$i}}"
>
</span>
<input
name=
"cidade[{{$i}}]"
type=
"text"
id=
"cidade{{$i}}"
class=
"form-control"
value=
"{{ old('cidade')[$i] ?? '' }}"
/>
@error('cidade.'.$i)
<span
class=
"invalid-feedback"
role=
"alert"
style=
"overflow: visible; display:block"
>
<strong>
{{ $message }}
</strong>
</span>
<span
class=
"invalid-feedback"
role=
"alert"
style=
"overflow: visible; display:block"
><strong>
{{ $message }}
</strong></span>
@enderror
@endcomponent
</div>
<div
class=
"col-6"
>
@component('componentes.input', ['label' => 'Bairro'])
<input
type=
"text"
class=
"form-control"
value=
"{{old('bairro')[$i] ?? "
"
}}"
name=
"bairro[{{$i}}]"
placeholder=
"Bairro"
maxlength=
"50"
id=
"bairro{{$i}}"
/>
<span
style=
"color: red; font-size: 12px"
id=
"caracsRestantesbairro{{$i}}"
>
</span>
<input
name=
"bairro[{{$i}}]"
type=
"text"
id=
"bairro{{$i}}"
class=
"form-control"
value=
"{{ old('bairro')[$i] ?? '' }}"
/>
@error('bairro.'.$i)
<span
class=
"invalid-feedback"
role=
"alert"
style=
"overflow: visible; display:block"
>
<strong>
{{ $message }}
</strong>
</span>
<span
class=
"invalid-feedback"
role=
"alert"
style=
"overflow: visible; display:block"
><strong>
{{ $message }}
</strong></span>
@enderror
@endcomponent
</div>
<div
class=
"col-6"
>
@component('componentes.input', ['label' => 'Rua'])
<input
type=
"text"
class=
"form-control"
value=
"{{old('rua')[$i] ?? "
"
}}"
name=
"rua[{{$i}}]"
placeholder=
"Rua"
maxlength=
"100"
id=
"rua{{$i}}"
/>
<span
style=
"color: red; font-size: 12px"
id=
"caracsRestantesrua{{$i}}"
>
</span>
<input
name=
"rua[{{$i}}]"
type=
"text"
id=
"rua{{$i}}"
class=
"form-control"
value=
"{{ old('rua')[$i] ?? '' }}"
/>
@error('rua.'.$i)
<span
class=
"invalid-feedback"
role=
"alert"
style=
"overflow: visible; display:block"
>
<strong>
{{ $message }}
</strong>
</span>
<span
class=
"invalid-feedback"
role=
"alert"
style=
"overflow: visible; display:block"
><strong>
{{ $message }}
</strong></span>
@enderror
@endcomponent
</div>
<div
class=
"col-6"
>
@component('componentes.input', ['label' => 'Número'])
<input
type=
"text"
class=
"form-control"
value=
"{{old('numero')[$i] ?? "
"
}}"
name=
"numero[{{$i}}]"
placeholder=
"Número"
/>
<input
name=
"numero[{{$i}}]"
type=
"text"
class=
"form-control"
value=
"{{ old('numero')[$i] ?? '' }}"
/>
@error('numero.'.$i)
<span
class=
"invalid-feedback"
role=
"alert"
style=
"overflow: visible; display:block"
>
<strong>
{{ $message }}
</strong>
</span>
<span
class=
"invalid-feedback"
role=
"alert"
style=
"overflow: visible; display:block"
><strong>
{{ $message }}
</strong></span>
@enderror
@endcomponent
</div>
<div
class=
"col-12"
>
<div
class=
"form-group"
>
<label
class=
" control-label"
for=
"firstname"
>
Complemento
</label>
...
...
@@ -402,4 +395,78 @@
</script>
<!--X Participantes X-->
<!-- Adicionando Javascript -->
<script>
function
limpa_formulário_cep
(
id
)
{
//Limpa valores do formulário de cep.
document
.
getElementById
(
`rua
${
id
}
`
).
value
=
(
""
);
document
.
getElementById
(
`bairro
${
id
}
`
).
value
=
(
""
);
document
.
getElementById
(
`cidade
${
id
}
`
).
value
=
(
""
);
document
.
getElementById
(
`uf
${
id
}
`
).
value
=
(
""
);
//document.getElementById('ibge').value=("");
}
let
cont
=
0
;
//Esse cont representa a adição de cada aluno
function
meu_callback
(
conteudo
)
{
if
(
!
(
"
erro
"
in
conteudo
))
{
//Atualiza os campos com os valores.
document
.
getElementById
(
`rua
${
cont
}
`
).
value
=
(
conteudo
.
logradouro
);
document
.
getElementById
(
`bairro
${
cont
}
`
).
value
=
(
conteudo
.
bairro
);
document
.
getElementById
(
`cidade
${
cont
}
`
).
value
=
(
conteudo
.
localidade
);
document
.
getElementById
(
`uf
${
cont
}
`
).
value
=
(
conteudo
.
uf
);
//document.getElementById('ibge').value=(conteudo.ibge);
}
//end if.
else
{
//CEP não Encontrado.
limpa_formulário_cep
(
cont
);
alert
(
"
CEP não encontrado.
"
);
}
}
function
pesquisacep
(
valor
,
id
)
{
//Nova variável "cep" somente com dígitos.
var
cep
=
valor
.
replace
(
/
\D
/g
,
''
);
//Verifica se campo cep possui valor informado.
if
(
cep
!=
""
)
{
//Expressão regular para validar o CEP.
var
validacep
=
/^
[
0-9
]{8}
$/
;
//Valida o formato do CEP.
if
(
validacep
.
test
(
cep
))
{
//Preenche os campos com "..." enquanto consulta webservice.
document
.
getElementById
(
`rua
${
id
}
`
).
value
=
"
...
"
;
document
.
getElementById
(
`bairro
${
id
}
`
).
value
=
"
...
"
;
document
.
getElementById
(
`cidade
${
id
}
`
).
value
=
"
...
"
;
document
.
getElementById
(
`uf
${
id
}
`
).
value
=
"
...
"
;
//document.getElementById('ibge').value="...";
//Cria um elemento javascript.
var
script
=
document
.
createElement
(
'
script
'
);
//Sincroniza com o callback.
cont
=
id
script
.
src
=
'
https://viacep.com.br/ws/
'
+
cep
+
'
/json/?callback=meu_callback
'
;
//Insere script no documento e carrega o conteúdo.
document
.
body
.
appendChild
(
script
);
}
//end if.
else
{
//cep é inválido.
limpa_formulário_cep
(
id
);
alert
(
"
Formato de CEP inválido.
"
);
}
}
//end if.
else
{
//cep sem valor, limpa formulário.
limpa_formulário_cep
(
id
);
}
};
</script>
This diff is collapsed.
Click to expand it.
resources/views/evento/visualizarEvento.blade.php
View file @
458bf888
...
...
@@ -34,7 +34,9 @@
<
div
class
=
"col-md-12"
style
=
"margin-top: 5px"
>
<
div
><
h5
class
=
"card-title mb-0"
style
=
"font-size:20px; font-family:Arial, Helvetica, sans-serif; color:#1492E6;"
>
Descrição
</
h5
></
div
>
<
pre
wrap
>
<
div
style
=
"margin-top: 10px"
><
h5
style
=
"font-size: 16px; font-weight:normal; text-align:justify; font-family:Arial, Helvetica, sans-serif"
>
{{
$evento
->
descricao
}}
</
h5
></
div
>
</
pre
>
</
div
>
</
div
>
</
div
>
...
...
This diff is collapsed.
Click to expand it.
resources/views/projeto/editaFormulario/participantes.blade.php
View file @
458bf888
...
...
@@ -131,78 +131,70 @@
@endcomponent
</div>
<div
class=
"col-md-12"
><h5>
Endereço
</h5></div>
<div
class=
"col-6"
>
@component('componentes.input', ['label' => 'CEP'])
<input
type=
"text"
class=
"form-control cep"
value=
"{{old('cep')[$i] ?? ($participante->user->endereco->cep ?? "
")
}}"
name=
"cep[{{$i}}]"
placeholder=
"CEP"
/>
<input
name=
"cep[{{$i}}]"
type=
"text"
id=
"cep{{$i}}"
value=
"{{ old('cep')[$i] ?? ($participante->user->endereco->cep ?? '') }}"
class=
"form-control cep"
onblur=
"pesquisacep(this.value, {{$i}})"
/>
@error('cep.'.$i)
<span
class=
"invalid-feedback"
role=
"alert"
style=
"overflow: visible; display:block"
>
<strong>
{{ $message }}
</strong>
</span>
<span
class=
"invalid-feedback"
role=
"alert"
style=
"overflow: visible; display:block"
><strong>
{{ $message }}
</strong></span>
@enderror
@endcomponent
</div>
<div
class=
"col-6"
>
@component('componentes.select', ['label' => 'Estado'])
<select
name=
"uf[{{$i}}]"
id=
"estado"
class=
"form-control"
style=
"visibility: visible"
>
<option
value=
""
selected
>
-- Selecione uma opção --
</option>
@foreach ($estados as $sigla => $nome)
<option
@
if
(
old
('
uf
')[$
i
]
??
($
participante-
>
user->endereco->uf ?? "") ) == $sigla ) selected @endif value="{{ $sigla }}">{{ $nome }}
</option>
@endforeach
</select>
@component('componentes.input', ['label' => 'Estado'])
<input
name=
"uf[{{$i}}]"
type=
"text"
class=
"form-control"
value=
"{{ old('uf')[$i] ?? ($participante->user->endereco->uf ?? '') }}"
id=
"uf{{$i}}"
/>
@error('uf.'.$i)
<span
class=
"invalid-feedback"
role=
"alert"
style=
"overflow: visible; display:block"
>
<strong>
{{ $message }}
</strong>
</span>
<span
class=
"invalid-feedback"
role=
"alert"
style=
"overflow: visible; display:block"
><strong>
{{ $message }}
</strong></span>
@enderror
@endcomponent
</div>
<div
class=
"col-6"
>
@component('componentes.input', ['label' => 'Cidade'])
<input
type=
"text"
class=
"form-control"
value=
"{{old('cidade')[$i] ?? ($participante->user->endereco->cidade ?? "
")
}}"
name=
"cidade[{{$i}}]"
placeholder=
"Cidade"
maxlength=
"50"
id=
"cidade{{$i}}"
/>
<span
style=
"color: red; font-size: 12px"
id=
"caracsRestantescidade{{$i}}"
>
</span>
<input
name=
"cidade[{{$i}}]"
type=
"text"
id=
"cidade{{$i}}"
class=
"form-control"
value=
"{{ old('cidade')[$i] ?? ($participante->user->endereco->cidade ?? '') }}"
/>
@error('cidade.'.$i)
<span
class=
"invalid-feedback"
role=
"alert"
style=
"overflow: visible; display:block"
>
<strong>
{{ $message }}
</strong>
</span>
<span
class=
"invalid-feedback"
role=
"alert"
style=
"overflow: visible; display:block"
><strong>
{{ $message }}
</strong></span>
@enderror
@endcomponent
</div>
<div
class=
"col-6"
>
@component('componentes.input', ['label' => 'Bairro'])
<input
type=
"text"
class=
"form-control"
value=
"{{old('bairro')[$i] ?? ($participante->user->endereco->bairro ?? "
")
}}"
name=
"bairro[{{$i}}]"
placeholder=
"Bairro"
maxlength=
"50"
id=
"bairro{{$i}}"
/>
<span
style=
"color: red; font-size: 12px"
id=
"caracsRestantesbairro{{$i}}"
>
</span>
<input
name=
"bairro[{{$i}}]"
type=
"text"
id=
"bairro{{$i}}"
class=
"form-control"
value=
"{{ old('bairro')[$i] ?? ($participante->user->endereco->bairro ?? '') }}"
/>
@error('bairro.'.$i)
<span
class=
"invalid-feedback"
role=
"alert"
style=
"overflow: visible; display:block"
>
<strong>
{{ $message }}
</strong>
</span>
<span
class=
"invalid-feedback"
role=
"alert"
style=
"overflow: visible; display:block"
><strong>
{{ $message }}
</strong></span>
@enderror
@endcomponent
</div>
<div
class=
"col-6"
>
@component('componentes.input', ['label' => 'Rua'])
<input
type=
"text"
class=
"form-control"
value=
"{{old('rua')[$i] ?? ($participante->user->endereco->rua ?? "
")}}"
name=
"rua[{{$i}}]"
placeholder=
"Rua"
maxlength=
"100"
id=
"rua{{$i}}"
/>
<span
style=
"color: red; font-size: 12px"
id=
"caracsRestantesrua{{$i}}"
>
</span>
<input
name=
"rua[{{$i}}]"
type=
"text"
id=
"rua{{$i}}"
class=
"form-control"
value=
"{{ old('rua')[$i] ?? ($participante->user->endereco->rua ?? '') }}"
/>
@error('rua.'.$i)
<span
class=
"invalid-feedback"
role=
"alert"
style=
"overflow: visible; display:block"
>
<strong>
{{ $message }}
</strong>
</span>
<span
class=
"invalid-feedback"
role=
"alert"
style=
"overflow: visible; display:block"
><strong>
{{ $message }}
</strong></span>
@enderror
@endcomponent
</div>
<div
class=
"col-6"
>
@component('componentes.input', ['label' => 'Número'])
<input
type=
"text"
class=
"form-control"
value=
"{{old('numero')[$i] ?? ($participante->user->endereco->numero ?? "
")
}}"
name=
"numero[{{$i}}]"
placeholder=
"Número"
/>
<input
name=
"numero[{{$i}}]"
type=
"text"
class=
"form-control"
value=
"{{ old('numero')[$i] ?? ($participante->user->endereco->numero ?? '') }}"
/>
@error('numero.'.$i)
<span
class=
"invalid-feedback"
role=
"alert"
style=
"overflow: visible; display:block"
>
<strong>
{{ $message }}
</strong>
</span>
<span
class=
"invalid-feedback"
role=
"alert"
style=
"overflow: visible; display:block"
><strong>
{{ $message }}
</strong></span>
@enderror
@endcomponent
</div>
<div
class=
"col-12"
>
<div
class=
"form-group"
>
<label
class=
" control-label"
for=
"firstname"
>
Complemento
</label>
...
...
@@ -419,6 +411,76 @@
</div>
<script>
function
limpa_formulário_cep
(
id
)
{
//Limpa valores do formulário de cep.
document
.
getElementById
(
`rua
${
id
}
`
).
value
=
(
""
);
document
.
getElementById
(
`bairro
${
id
}
`
).
value
=
(
""
);
document
.
getElementById
(
`cidade
${
id
}
`
).
value
=
(
""
);
document
.
getElementById
(
`uf
${
id
}
`
).
value
=
(
""
);
//document.getElementById('ibge').value=("");
}
let
cont
=
0
;
//Esse cont representa a adição de cada aluno
function
meu_callback
(
conteudo
)
{
if
(
!
(
"
erro
"
in
conteudo
))
{
//Atualiza os campos com os valores.
document
.
getElementById
(
`rua
${
cont
}
`
).
value
=
(
conteudo
.
logradouro
);
document
.
getElementById
(
`bairro
${
cont
}
`
).
value
=
(
conteudo
.
bairro
);
document
.
getElementById
(
`cidade
${
cont
}
`
).
value
=
(
conteudo
.
localidade
);
document
.
getElementById
(
`uf
${
cont
}
`
).
value
=
(
conteudo
.
uf
);
//document.getElementById('ibge').value=(conteudo.ibge);
}
//end if.
else
{
//CEP não Encontrado.
limpa_formulário_cep
(
cont
);
alert
(
"
CEP não encontrado.
"
);
}
}
function
pesquisacep
(
valor
,
id
)
{
//Nova variável "cep" somente com dígitos.
var
cep
=
valor
.
replace
(
/
\D
/g
,
''
);
//Verifica se campo cep possui valor informado.
if
(
cep
!=
""
)
{
//Expressão regular para validar o CEP.
var
validacep
=
/^
[
0-9
]{8}
$/
;
//Valida o formato do CEP.
if
(
validacep
.
test
(
cep
))
{
//Preenche os campos com "..." enquanto consulta webservice.
document
.
getElementById
(
`rua
${
id
}
`
).
value
=
"
...
"
;
document
.
getElementById
(
`bairro
${
id
}
`
).
value
=
"
...
"
;
document
.
getElementById
(
`cidade
${
id
}
`
).
value
=
"
...
"
;
document
.
getElementById
(
`uf
${
id
}
`
).
value
=
"
...
"
;
//document.getElementById('ibge').value="...";
//Cria um elemento javascript.
var
script
=
document
.
createElement
(
'
script
'
);
//Sincroniza com o callback.
cont
=
id
script
.
src
=
'
https://viacep.com.br/ws/
'
+
cep
+
'
/json/?callback=meu_callback
'
;
//Insere script no documento e carrega o conteúdo.
document
.
body
.
appendChild
(
script
);
}
//end if.
else
{
//cep é inválido.
limpa_formulário_cep
(
id
);
alert
(
"
Formato de CEP inválido.
"
);
}
}
//end if.
else
{
//cep sem valor, limpa formulário.
limpa_formulário_cep
(
id
);
}
};
</script>
<!--X Participantes X-->
This diff is collapsed.
Click to expand it.
resources/views/projeto/editar.blade.php
View file @
458bf888
...
...
@@ -257,31 +257,6 @@
<
script
>
$
(
'input'
)
.
on
(
"input"
,
function
(){
var
maxlength
=
$
(
this
)
.
attr
(
"maxlength"
);
var
currentLength
=
$
(
this
)
.
val
()
.
length
;
var
idInput
=
$
(
this
)
.
attr
(
"id"
);
if
(
currentLength
>=
maxlength
){
$
(
"#caracsRestantes"
+
idInput
)
.
html
(
"Caracteres restantes: "
+
(
maxlength
-
this
.
value
.
length
));
}
else
if
(
currentLength
==
0
){
$
(
"#caracsRestantes"
+
idInput
)
.
html
(
""
);
}
else
{
$
(
"#caracsRestantes"
+
idInput
)
.
html
(
"Caracteres restantes: "
+
(
maxlength
-
this
.
value
.
length
));
}
});
$
(
document
)
.
ready
(
function
()
{
$
(
'#nomeParticipante'
)
.
keyup
(
function
()
{
$
(
'#display'
)
.
text
(
$
(
this
)
.
val
());
if
(
$
(
'#nomeParticipante'
)
.
val
()
==
""
){
$
(
'#display'
)
.
hide
();
$
(
'#pontos'
)
.
hide
();
}
else
{
$
(
'#display'
)
.
show
();
$
(
'#pontos'
)
.
show
();
}
});
$
.
validator
.
addMethod
(
"alpha"
,
function
(
value
,
element
)
{
return
this
.
optional
(
element
)
||
value
==
value
.
match
(
/^
[
A
-
Za
-
záàâãéèêíïóôõöúçñÁÀÂÃÉÈÍÏÓÔÕÖÚÇÑ
]
+
$
/
);
...
...
This diff is collapsed.
Click to expand it.
resources/views/projeto/formularioVisualizar/proponente2.blade.php
View file @
458bf888
...
...
@@ -20,8 +20,9 @@
@endif
</div>
@if( (Auth::user()->avaliadors != null)
&&
(Auth::user()->avaliadors->tipo != 'Externo' || Auth::user()->avaliadors->tipo == null))
@if( (Auth::user()->avaliadors != null)
&&
(Auth::user()->avaliadors->tipo != 'Externo' || Auth::user()->avaliadors->tipo == null)
&&
($edital->natureza_id != 3 || $projeto->status != "rascunho"))
<!-- só pagar oq tem dps do || para funcionar para submetido e rascunho! EXTENSÃO(3)!!! -->
<div
class=
"col-md-12"
>
<br>
<b
style=
"color: #4D4D4D;"
>
Grupo de Pesquisa:
</b>
...
...
@@ -36,6 +37,15 @@
<a
style=
"color: #4D4D4D;"
>
{{$projeto->pontuacaoPlanilha}}
</a>
</div>
@endif
@if($edital->natureza_id == 3)
<div
class=
"col-md-12"
>
<br>
<b
style=
"color: #4D4D4D;"
>
Área Temática:
</b>
<a
style=
"color: #4D4D4D;"
>
{{App\AreaTematica::where('id', $projeto->area_tematica_id)->first()->nome}}
</a>
</div>
@endif
@if($projeto->modalidade!=null)
<div
class=
"col-md-12"
>
<br>
...
...
This diff is collapsed.
Click to expand it.
resources/views/projeto/visualizar.blade.php
View file @
458bf888
...
...
@@ -21,7 +21,7 @@
[
'edital'
=>
$edital
,
'projeto'
=>
$projeto
])
@
endcomponent
@
component
(
'projeto.formularioVisualizar.proponente2'
,
[
'projeto'
=>
$projeto
])
@
component
(
'projeto.formularioVisualizar.proponente2'
,
[
'projeto'
=>
$projeto
,
'edital'
=>
$edital
,
'areasTematicas'
=>
$areasTematicas
])
@
endcomponent
@
component
(
'projeto.formularioVisualizar.anexos2'
,
[
'edital'
=>
$edital
,
'projeto'
=>
$projeto
])
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help