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
6fbe2551
Unverified
Commit
6fbe2551
authored
May 09, 2023
by
José Fernando Mendes da Costa
Committed by
GitHub
May 09, 2023
Browse files
Merge pull request #786 from jofernando/cpfmask
carrega macara do cpf quando a página é carregada
parents
3481e714
5869d711
Changes
4
Hide whitespace changes
Inline
Side-by-side
app/Http/Controllers/AreaTematicaController.php
View file @
6fbe2551
...
@@ -18,7 +18,7 @@ class AreaTematicaController extends Controller
...
@@ -18,7 +18,7 @@ class AreaTematicaController extends Controller
$areaTematica
->
delete
();
$areaTematica
->
delete
();
return
redirect
(
route
(
'grandearea.index'
)
)
->
with
([
'mensagem'
=>
'Área Tem
a
tica excluida com sucesso'
]);
return
redirect
(
route
(
'grandearea.index'
)
)
->
with
([
'mensagem'
=>
'Área Tem
á
tica excluida com sucesso'
]);
}
}
public
function
update
(
Request
$request
,
$id
)
public
function
update
(
Request
$request
,
$id
)
...
@@ -27,7 +27,7 @@ class AreaTematicaController extends Controller
...
@@ -27,7 +27,7 @@ class AreaTematicaController extends Controller
$areaTematica
->
nome
=
$request
->
nome
;
$areaTematica
->
nome
=
$request
->
nome
;
$areaTematica
->
update
();
$areaTematica
->
update
();
return
redirect
(
route
(
'grandearea.index'
)
)
->
with
([
'mensagem'
=>
'Área Tem
a
tica editada com sucesso'
]);
return
redirect
(
route
(
'grandearea.index'
)
)
->
with
([
'mensagem'
=>
'Área Tem
á
tica editada com sucesso'
]);
}
}
public
function
edit
(
$id
)
public
function
edit
(
$id
)
...
@@ -51,6 +51,6 @@ class AreaTematicaController extends Controller
...
@@ -51,6 +51,6 @@ class AreaTematicaController extends Controller
$areaTematica
->
nome
=
$request
->
nome
;
$areaTematica
->
nome
=
$request
->
nome
;
$areaTematica
->
save
();
$areaTematica
->
save
();
return
redirect
(
route
(
'grandearea.index'
)
)
->
with
([
'mensagem'
=>
'Área Tem
a
tica cadastrada com sucesso'
]);
return
redirect
(
route
(
'grandearea.index'
)
)
->
with
([
'mensagem'
=>
'Área Tem
á
tica cadastrada com sucesso'
]);
}
}
}
}
resources/views/evento/formulario/integrantes.blade.php
View file @
6fbe2551
...
@@ -43,7 +43,7 @@
...
@@ -43,7 +43,7 @@
<div
class=
"form-row d-flex"
>
<div
class=
"form-row d-flex"
>
<label
for=
"cpf_consulta"
>
CPF:
</label>
<label
for=
"cpf_consulta"
>
CPF:
</label>
<input
type=
"text"
id=
"cpf_consulta"
name=
"cpf_consulta"
class=
"form-control"
onkeyup=
"mask_cpf();"
>
<input
type=
"text"
id=
"cpf_consulta"
name=
"cpf_consulta"
class=
"form-control"
>
</div>
</div>
<div
class=
"form-row d-flex"
style=
"margin-top:10px"
>
<div
class=
"form-row d-flex"
style=
"margin-top:10px"
>
...
@@ -135,26 +135,9 @@
...
@@ -135,26 +135,9 @@
<script>
<script>
function
mask_cpf
()
{
$
(
document
).
ready
(
function
()
{
$
(
"
#cpf_consulta
"
).
keydown
(
function
(){
$
(
"
#cpf_consulta
"
).
mask
(
"
999.999.999-99
"
);
try
{
});
$
(
"
#cpf_consulta
"
).
unmask
();
}
catch
(
e
)
{}
$
(
"
#cpf_consulta
"
).
mask
(
"
999.999.999-99
"
);
// ajustando foco
var
elem
=
this
;
setTimeout
(
function
(){
// mudo a posição do seletor
elem
.
selectionStart
=
elem
.
selectionEnd
=
10000
;
},
0
);
// reaplico o valor para mudar o foco
var
currentValue
=
$
(
this
).
val
();
$
(
this
).
val
(
''
);
$
(
this
).
val
(
currentValue
);
});
}
function
removerIntegrante
(
id
)
{
function
removerIntegrante
(
id
)
{
$
(
`#integrante
${
id
}
`
).
remove
()
$
(
`#integrante
${
id
}
`
).
remove
()
...
...
resources/views/evento/formulario/projeto.blade.php
View file @
6fbe2551
...
@@ -76,7 +76,7 @@
...
@@ -76,7 +76,7 @@
<div
class=
"form-group col-md-4"
>
<div
class=
"form-group col-md-4"
>
<label
for=
"areaTematica"
class=
"col-form-label"
style=
"font-weight: bold"
>
{{ __('Área Temática') }}
<span
style=
"color: red; font-weight:bold"
>
*
</span></label>
<label
for=
"areaTematica"
class=
"col-form-label"
style=
"font-weight: bold"
>
{{ __('Área Temática') }}
<span
style=
"color: red; font-weight:bold"
>
*
</span></label>
<select
class=
"form-control @error('area_tematica_id') is-invalid @enderror"
id=
"areaTematica"
name=
"area_tematica_id"
>
<select
class=
"form-control @error('area_tematica_id') is-invalid @enderror"
id=
"areaTematica"
name=
"area_tematica_id"
>
<option
value=
""
disabled
selected
hidden
>
-- Área Tem
a
tica--
</option>
<option
value=
""
disabled
selected
hidden
>
-- Área Tem
á
tica--
</option>
@foreach($areaTematicas as $areaTematica)
@foreach($areaTematicas as $areaTematica)
<option
@
if
((
old
('
area_tematica_id
')
??
""
) =
=
$
areaTematica-
>
id) selected @endif value="{{$areaTematica->id}}">{{$areaTematica->nome}}
</option>
<option
@
if
((
old
('
area_tematica_id
')
??
""
) =
=
$
areaTematica-
>
id) selected @endif value="{{$areaTematica->id}}">{{$areaTematica->nome}}
</option>
@endforeach
@endforeach
...
...
resources/views/projeto/editaFormulario/projeto.blade.php
View file @
6fbe2551
...
@@ -75,7 +75,7 @@
...
@@ -75,7 +75,7 @@
<div
class=
"form-group col-md-4"
>
<div
class=
"form-group col-md-4"
>
<label
for=
"areaTematica"
class=
"col-form-label"
style=
"font-weight: bold"
>
{{ __('Área Temática') }}
<span
style=
"color: red; font-weight:bold"
>
*
</span></label>
<label
for=
"areaTematica"
class=
"col-form-label"
style=
"font-weight: bold"
>
{{ __('Área Temática') }}
<span
style=
"color: red; font-weight:bold"
>
*
</span></label>
<select
class=
"form-control @error('area_tematica_id') is-invalid @enderror"
id=
"areaTematica"
name=
"area_tematica_id"
>
<select
class=
"form-control @error('area_tematica_id') is-invalid @enderror"
id=
"areaTematica"
name=
"area_tematica_id"
>
<option
value=
""
disabled
selected
hidden
>
-- Área Tem
a
tica--
</option>
<option
value=
""
disabled
selected
hidden
>
-- Área Tem
á
tica--
</option>
@foreach($areaTematicas as $areaTematica)
@foreach($areaTematicas as $areaTematica)
<option
@
if
(
old
('
area_tematica_id
')
!==
null
?
old
('
area_tematica_id
')
:
(
isset
($
rascunho
)
?
$
rascunho-
>
area_tematica_id : '')
<option
@
if
(
old
('
area_tematica_id
')
!==
null
?
old
('
area_tematica_id
')
:
(
isset
($
rascunho
)
?
$
rascunho-
>
area_tematica_id : '')
== $areaTematica->id ) selected @endif @if($projeto->area_tematica_id == $areaTematica->id ) selected @endif value="{{$areaTematica->id}}">{{$areaTematica->nome}}
</option>
== $areaTematica->id ) selected @endif @if($projeto->area_tematica_id == $areaTematica->id ) selected @endif value="{{$areaTematica->id}}">{{$areaTematica->nome}}
</option>
...
...
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