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
458bf888
Commit
458bf888
authored
Jun 09, 2022
by
Guilherme Silva
Browse files
Merge branch 'master' of
https://github.com/antonioDurval/submeta
parents
91436362
c5f23c53
Changes
11
Hide whitespace changes
Inline
Side-by-side
app/Http/Controllers/AdministradorController.php
View file @
458bf888
...
@@ -393,7 +393,7 @@ class AdministradorController extends Controller
...
@@ -393,7 +393,7 @@ class AdministradorController extends Controller
$validated
=
$request
->
validate
([
$validated
=
$request
->
validate
([
'name'
=>
[
'required'
,
'string'
,
'max:255'
],
'name'
=>
[
'required'
,
'string'
,
'max:255'
],
'tipo'
=>
[
'required'
],
'tipo'
=>
[
'required'
],
'email'
=>
[
'required'
,
'string'
,
'email'
,
'max:255'
,
'unique:users'
],
'email'
=>
[
'required'
,
'string'
,
'email'
,
'max:255'
],
'instituicao'
=>
[
'required_if:instituicaoSelect,Outra'
,
'max:255'
],
'instituicao'
=>
[
'required_if:instituicaoSelect,Outra'
,
'max:255'
],
'instituicaoSelect'
=>
[
'required_without:instituicao'
],
'instituicaoSelect'
=>
[
'required_without:instituicao'
],
'celular'
=>
(
$request
[
'celular'
]
!=
null
?
'required|string|telefone'
:
'nullable'
),
'celular'
=>
(
$request
[
'celular'
]
!=
null
?
'required|string|telefone'
:
'nullable'
),
...
...
app/Http/Controllers/TrabalhoController.php
View file @
458bf888
...
@@ -362,6 +362,7 @@ class TrabalhoController extends Controller
...
@@ -362,6 +362,7 @@ class TrabalhoController extends Controller
$grandeAreas
=
GrandeArea
::
all
();
$grandeAreas
=
GrandeArea
::
all
();
$areas
=
Area
::
all
();
$areas
=
Area
::
all
();
$subareas
=
Subarea
::
all
();
$subareas
=
Subarea
::
all
();
$areasTematicas
=
AreaTematica
::
all
();
$funcaoParticipantes
=
FuncaoParticipantes
::
all
();
$funcaoParticipantes
=
FuncaoParticipantes
::
all
();
$participantes
=
$projeto
->
participantes
;
$participantes
=
$projeto
->
participantes
;
$participantesUsersIds
=
Participante
::
where
(
'trabalho_id'
,
$id
)
->
select
(
'user_id'
)
->
get
();
$participantesUsersIds
=
Participante
::
where
(
'trabalho_id'
,
$id
)
->
select
(
'user_id'
)
->
get
();
...
@@ -379,6 +380,7 @@ class TrabalhoController extends Controller
...
@@ -379,6 +380,7 @@ class TrabalhoController extends Controller
'estados'
=>
$this
->
estados
,
'estados'
=>
$this
->
estados
,
'visualizar'
=>
true
,
'visualizar'
=>
true
,
'enum_turno'
=>
Participante
::
ENUM_TURNO
,
'enum_turno'
=>
Participante
::
ENUM_TURNO
,
'areasTematicas'
=>
$areasTematicas
,
]);
]);
}
}
...
...
resources/views/administrador/editar_user.blade.php
View file @
458bf888
...
@@ -282,7 +282,7 @@
...
@@ -282,7 +282,7 @@
<
div
class
=
"row justify-content-center"
style
=
"margin: 20px 0 20px 0"
>
<
div
class
=
"row justify-content-center"
style
=
"margin: 20px 0 20px 0"
>
<
div
class
=
"col-md-6"
style
=
"padding-left: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
>
<
div
class
=
"col-md-6"
style
=
"padding-right:0"
>
<
div
class
=
"col-md-6"
style
=
"padding-right:0"
>
<
button
type
=
"submit"
class
=
"btn btn-primary botao-form"
style
=
"width:100%"
>
<
button
type
=
"submit"
class
=
"btn btn-primary botao-form"
style
=
"width:100%"
>
...
@@ -446,7 +446,7 @@
...
@@ -446,7 +446,7 @@
<
div
class
=
"row justify-content-center"
style
=
"margin: 20px 0 20px 0"
>
<
div
class
=
"row justify-content-center"
style
=
"margin: 20px 0 20px 0"
>
<
div
class
=
"col-md-6"
style
=
"padding-left: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
>
<
div
class
=
"col-md-6"
style
=
"padding-right:0"
>
<
div
class
=
"col-md-6"
style
=
"padding-right:0"
>
<
button
type
=
"submit"
class
=
"btn btn-primary botao-form"
style
=
"width:100%"
>
<
button
type
=
"submit"
class
=
"btn btn-primary botao-form"
style
=
"width:100%"
>
...
...
resources/views/avaliador/parecerInterno.blade.php
View file @
458bf888
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
</
div
>
</
div
>
<
div
class
=
"col-md-10"
style
=
"padding: 0px"
<
div
class
=
"col-md-10"
style
=
"padding: 0px"
@
component
(
'projeto.formularioVisualizar.proponente2'
,
[
'projeto'
=>
$trabalho
])
@
component
(
'projeto.formularioVisualizar.proponente2'
,
[
'edital'
=>
$trabalho
->
evento
,
'projeto'
=>
$trabalho
])
@
endcomponent
@
endcomponent
</
div
>
</
div
>
...
...
resources/views/evento/criarEvento.blade.php
View file @
458bf888
...
@@ -95,7 +95,7 @@
...
@@ -95,7 +95,7 @@
<
div
class
=
"col-sm-12"
>
<
div
class
=
"col-sm-12"
>
<
div
class
=
"form-group"
>
<
div
class
=
"form-group"
>
<
label
for
=
"exampleFormControlTextarea1"
>
Descrição
*:</
label
>
<
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'
)
@
error
(
'descricao'
)
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
<
strong
>
{{
$message
}}
</
strong
>
<
strong
>
{{
$message
}}
</
strong
>
...
...
resources/views/evento/formulario/participantes.blade.php
View file @
458bf888
...
@@ -124,76 +124,69 @@
...
@@ -124,76 +124,69 @@
<div
class=
"col-md-12"
><h5>
Endereço
</h5></div>
<div
class=
"col-md-12"
><h5>
Endereço
</h5></div>
<div
class=
"col-6"
>
<div
class=
"col-6"
>
@component('componentes.input', ['label' => 'CEP'])
@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)
@error('cep.'.$i)
<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></span>
<strong>
{{ $message }}
</strong>
</span>
@enderror
@enderror
@endcomponent
@endcomponent
</div>
</div>
<div
class=
"col-6"
>
<div
class=
"col-6"
>
@component('componentes.select', ['label' => 'Estado'])
@component('componentes.input', ['label' => 'Estado'])
<select
name=
"uf[{{$i}}]"
id=
"estado"
class=
"form-control"
style=
"visibility: visible"
>
<input
name=
"uf[{{$i}}]"
type=
"text"
class=
"form-control"
<option
value=
""
selected
>
-- Selecione uma opção --
</option>
value=
"{{ old('uf')[$i] ?? '' }}"
id=
"uf{{$i}}"
/>
@foreach ($estados as $sigla => $nome)
<option
@
if
(
old
('
uf
')[$
i
]
??
""
==
$
sigla
)
selected
@
endif
value=
"{{ $sigla }}"
>
{{ $nome }}
</option>
@endforeach
</select>
@error('uf.'.$i)
@error('uf.'.$i)
<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></span>
<strong>
{{ $message }}
</strong>
</span>
@enderror
@enderror
@endcomponent
@endcomponent
</div>
</div>
<div
class=
"col-6"
>
<div
class=
"col-6"
>
@component('componentes.input', ['label' => 'Cidade'])
@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}}"
/>
<input
name=
"cidade[{{$i}}]"
type=
"text"
id=
"cidade{{$i}}"
class=
"form-control"
<span
style=
"color: red; font-size: 12px"
id=
"caracsRestantescidade{{$i}}"
>
value=
"{{ old('cidade')[$i] ?? '' }}"
/>
</span>
@error('cidade.'.$i)
@error('cidade.'.$i)
<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></span>
<strong>
{{ $message }}
</strong>
</span>
@enderror
@enderror
@endcomponent
@endcomponent
</div>
</div>
<div
class=
"col-6"
>
<div
class=
"col-6"
>
@component('componentes.input', ['label' => 'Bairro'])
@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}}"
/>
<input
name=
"bairro[{{$i}}]"
type=
"text"
id=
"bairro{{$i}}"
class=
"form-control"
<span
style=
"color: red; font-size: 12px"
id=
"caracsRestantesbairro{{$i}}"
>
value=
"{{ old('bairro')[$i] ?? '' }}"
/>
</span>
@error('bairro.'.$i)
@error('bairro.'.$i)
<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></span>
<strong>
{{ $message }}
</strong>
</span>
@enderror
@enderror
@endcomponent
@endcomponent
</div>
</div>
<div
class=
"col-6"
>
<div
class=
"col-6"
>
@component('componentes.input', ['label' => 'Rua'])
@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}}"
/>
<input
name=
"rua[{{$i}}]"
type=
"text"
id=
"rua{{$i}}"
class=
"form-control"
<span
style=
"color: red; font-size: 12px"
id=
"caracsRestantesrua{{$i}}"
>
value=
"{{ old('rua')[$i] ?? '' }}"
/>
</span>
@error('rua.'.$i)
@error('rua.'.$i)
<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></span>
<strong>
{{ $message }}
</strong>
</span>
@enderror
@enderror
@endcomponent
@endcomponent
</div>
</div>
<div
class=
"col-6"
>
<div
class=
"col-6"
>
@component('componentes.input', ['label' => 'Número'])
@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)
@error('numero.'.$i)
<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></span>
<strong>
{{ $message }}
</strong>
</span>
@enderror
@enderror
@endcomponent
@endcomponent
</div>
</div>
<div
class=
"col-12"
>
<div
class=
"col-12"
>
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<label
class=
" control-label"
for=
"firstname"
>
Complemento
</label>
<label
class=
" control-label"
for=
"firstname"
>
Complemento
</label>
...
@@ -402,4 +395,78 @@
...
@@ -402,4 +395,78 @@
</script>
</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>
resources/views/evento/visualizarEvento.blade.php
View file @
458bf888
...
@@ -34,7 +34,9 @@
...
@@ -34,7 +34,9 @@
<
div
class
=
"col-md-12"
style
=
"margin-top: 5px"
>
<
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
>
<
div
><
h5
class
=
"card-title mb-0"
style
=
"font-size:20px; font-family:Arial, Helvetica, sans-serif; color:#1492E6;"
>
Descrição
</
h5
></
div
>
<
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
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
>
</
div
>
</
div
>
</
div
>
...
...
resources/views/projeto/editaFormulario/participantes.blade.php
View file @
458bf888
...
@@ -131,78 +131,70 @@
...
@@ -131,78 +131,70 @@
@endcomponent
@endcomponent
</div>
</div>
<div
class=
"col-md-12"
><h5>
Endereço
</h5></div>
<div
class=
"col-md-12"
><h5>
Endereço
</h5></div>
<div
class=
"col-6"
>
<div
class=
"col-6"
>
@component('componentes.input', ['label' => 'CEP'])
@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)
@error('cep.'.$i)
<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></span>
<strong>
{{ $message }}
</strong>
</span>
@enderror
@enderror
@endcomponent
@endcomponent
</div>
</div>
<div
class=
"col-6"
>
<div
class=
"col-6"
>
@component('componentes.select', ['label' => 'Estado'])
@component('componentes.input', ['label' => 'Estado'])
<select
name=
"uf[{{$i}}]"
id=
"estado"
class=
"form-control"
style=
"visibility: visible"
>
<input
name=
"uf[{{$i}}]"
type=
"text"
class=
"form-control"
<option
value=
""
selected
>
-- Selecione uma opção --
</option>
value=
"{{ old('uf')[$i] ?? ($participante->user->endereco->uf ?? '') }}"
id=
"uf{{$i}}"
/>
@foreach ($estados as $sigla => $nome)
<option
@
if
(
old
('
uf
')[$
i
]
??
($
participante-
>
user->endereco->uf ?? "") ) == $sigla ) selected @endif value="{{ $sigla }}">{{ $nome }}
</option>
@endforeach
</select>
@error('uf.'.$i)
@error('uf.'.$i)
<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></span>
<strong>
{{ $message }}
</strong>
</span>
@enderror
@enderror
@endcomponent
@endcomponent
</div>
</div>
<div
class=
"col-6"
>
<div
class=
"col-6"
>
@component('componentes.input', ['label' => 'Cidade'])
@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}}"
/>
<input
name=
"cidade[{{$i}}]"
type=
"text"
id=
"cidade{{$i}}"
class=
"form-control"
<span
style=
"color: red; font-size: 12px"
id=
"caracsRestantescidade{{$i}}"
>
value=
"{{ old('cidade')[$i] ?? ($participante->user->endereco->cidade ?? '') }}"
/>
</span>
@error('cidade.'.$i)
@error('cidade.'.$i)
<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></span>
<strong>
{{ $message }}
</strong>
</span>
@enderror
@enderror
@endcomponent
@endcomponent
</div>
</div>
<div
class=
"col-6"
>
<div
class=
"col-6"
>
@component('componentes.input', ['label' => 'Bairro'])
@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}}"
/>
<input
name=
"bairro[{{$i}}]"
type=
"text"
id=
"bairro{{$i}}"
class=
"form-control"
<span
style=
"color: red; font-size: 12px"
id=
"caracsRestantesbairro{{$i}}"
>
value=
"{{ old('bairro')[$i] ?? ($participante->user->endereco->bairro ?? '') }}"
/>
</span>
@error('bairro.'.$i)
@error('bairro.'.$i)
<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></span>
<strong>
{{ $message }}
</strong>
</span>
@enderror
@enderror
@endcomponent
@endcomponent
</div>
</div>
<div
class=
"col-6"
>
<div
class=
"col-6"
>
@component('componentes.input', ['label' => 'Rua'])
@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}}"
/>
<input
name=
"rua[{{$i}}]"
type=
"text"
id=
"rua{{$i}}"
class=
"form-control"
<span
style=
"color: red; font-size: 12px"
id=
"caracsRestantesrua{{$i}}"
>
value=
"{{ old('rua')[$i] ?? ($participante->user->endereco->rua ?? '') }}"
/>
</span>
@error('rua.'.$i)
@error('rua.'.$i)
<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></span>
<strong>
{{ $message }}
</strong>
</span>
@enderror
@enderror
@endcomponent
@endcomponent
</div>
</div>
<div
class=
"col-6"
>
<div
class=
"col-6"
>
@component('componentes.input', ['label' => 'Número'])
@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)
@error('numero.'.$i)
<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></span>
<strong>
{{ $message }}
</strong>
</span>
@enderror
@enderror
@endcomponent
@endcomponent
</div>
</div>
<div
class=
"col-12"
>
<div
class=
"col-12"
>
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<label
class=
" control-label"
for=
"firstname"
>
Complemento
</label>
<label
class=
" control-label"
for=
"firstname"
>
Complemento
</label>
...
@@ -418,7 +410,77 @@
...
@@ -418,7 +410,77 @@
</div>
</div>
</div>
</div>
<script>
<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>
</script>
<!--X Participantes X-->
resources/views/projeto/editar.blade.php
View file @
458bf888
...
@@ -257,31 +257,6 @@
...
@@ -257,31 +257,6 @@
<
script
>
<
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
)
{
$
.
validator
.
addMethod
(
"alpha"
,
function
(
value
,
element
)
{
return
this
.
optional
(
element
)
||
value
==
value
.
match
(
/^
[
A
-
Za
-
záàâãéèêíïóôõöúçñÁÀÂÃÉÈÍÏÓÔÕÖÚÇÑ
]
+
$
/
);
return
this
.
optional
(
element
)
||
value
==
value
.
match
(
/^
[
A
-
Za
-
záàâãéèêíïóôõöúçñÁÀÂÃÉÈÍÏÓÔÕÖÚÇÑ
]
+
$
/
);
...
...
resources/views/projeto/formularioVisualizar/proponente2.blade.php
View file @
458bf888
...
@@ -19,9 +19,10 @@
...
@@ -19,9 +19,10 @@
>
{{ App\Proponente::where('id', $projeto->proponente_id)->first()->linkLattes }}
</a>
>
{{ App\Proponente::where('id', $projeto->proponente_id)->first()->linkLattes }}
</a>
@endif
@endif
</div>
</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"
>
<div
class=
"col-md-12"
>
<br>
<br>
<b
style=
"color: #4D4D4D;"
>
Grupo de Pesquisa:
</b>
<b
style=
"color: #4D4D4D;"
>
Grupo de Pesquisa:
</b>
...
@@ -36,6 +37,15 @@
...
@@ -36,6 +37,15 @@
<a
style=
"color: #4D4D4D;"
>
{{$projeto->pontuacaoPlanilha}}
</a>
<a
style=
"color: #4D4D4D;"
>
{{$projeto->pontuacaoPlanilha}}
</a>
</div>
</div>
@endif
@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)
@if($projeto->modalidade!=null)
<div
class=
"col-md-12"
>
<div
class=
"col-md-12"
>
<br>
<br>
...
...
resources/views/projeto/visualizar.blade.php
View file @
458bf888
...
@@ -21,7 +21,7 @@
...
@@ -21,7 +21,7 @@
[
'edital'
=>
$edital
,
'projeto'
=>
$projeto
])
[
'edital'
=>
$edital
,
'projeto'
=>
$projeto
])
@
endcomponent
@
endcomponent
@
component
(
'projeto.formularioVisualizar.proponente2'
,
[
'projeto'
=>
$projeto
])
@
component
(
'projeto.formularioVisualizar.proponente2'
,
[
'projeto'
=>
$projeto
,
'edital'
=>
$edital
,
'areasTematicas'
=>
$areasTematicas
])
@
endcomponent
@
endcomponent
@
component
(
'projeto.formularioVisualizar.anexos2'
,
[
'edital'
=>
$edital
,
'projeto'
=>
$projeto
])
@
component
(
'projeto.formularioVisualizar.anexos2'
,
[
'edital'
=>
$edital
,
'projeto'
=>
$projeto
])
...
...
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