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
291ab92b
Commit
291ab92b
authored
Jun 01, 2021
by
Danillo Bion
Browse files
Merge branch 'master' of
https://github.com/lmts-ufape/submeta
into modificacoes_layout_minha_conta
parents
fab660de
6f3e9f51
Changes
2
Show whitespace changes
Inline
Side-by-side
resources/views/evento/formulario/proponente.blade.php
View file @
291ab92b
...
@@ -45,7 +45,7 @@
...
@@ -45,7 +45,7 @@
</div>
</div>
<div
class=
"form-group col-md-6"
>
<div
class=
"form-group col-md-6"
>
<label
for=
"pontuacaoPlanilha"
>
Valor da planilha de pontuação
<span
style=
"color: red; font-weight:bold"
>
*
</span></label>
<label
for=
"pontuacaoPlanilha"
>
Valor da planilha de pontuação
<span
style=
"color: red; font-weight:bold"
>
*
</span></label>
<input
class=
"form-control @error('pontuacaoPlanilha') is-invalid @enderror"
type=
"
text
"
name=
"pontuacaoPlanilha"
<input
class=
"form-control @error('pontuacaoPlanilha') is-invalid @enderror"
type=
"
number
"
name=
"pontuacaoPlanilha"
value=
"{{old('pontuacaoPlanilha') !== null ? old('pontuacaoPlanilha') : (isset($rascunho) ? $rascunho->pontuacaoPlanilha : '')}}"
required
>
value=
"{{old('pontuacaoPlanilha') !== null ? old('pontuacaoPlanilha') : (isset($rascunho) ? $rascunho->pontuacaoPlanilha : '')}}"
required
>
@error('pontuacaoPlanilha')
@error('pontuacaoPlanilha')
...
...
resources/views/evento/submeterTrabalho.blade.php
View file @
291ab92b
...
@@ -398,7 +398,7 @@
...
@@ -398,7 +398,7 @@
// var participante $( "#participante" ).find( item1 )
// var participante $( "#participante" ).find( item1 )
const
participante
=
partsFirst
.
firstElementChild
;
const
participante
=
partsFirst
.
firstElementChild
;
// const participante = document.getElementById('participantePrimeiro');
// const participante = document.getElementById('participantePrimeiro');
let
contador
=
2
;
let
contador
=
0
;
// var validator = $( "#formPart" ).validate();
// var validator = $( "#formPart" ).validate();
buttonSubmit
.
addEventListener
(
'click'
,
(
e
)
=>
{
buttonSubmit
.
addEventListener
(
'click'
,
(
e
)
=>
{
...
@@ -442,6 +442,7 @@
...
@@ -442,6 +442,7 @@
}
else
{
}
else
{
parts
.
removeChild
(
e
.
parentElement
);
parts
.
removeChild
(
e
.
parentElement
);
contador
--
;
}
}
}
}
...
@@ -453,20 +454,33 @@
...
@@ -453,20 +454,33 @@
if
(
parts
.
children
.
length
>=
"{{
$edital->numParticipantes
}}"
){
if
(
parts
.
children
.
length
>=
"{{
$edital->numParticipantes
}}"
){
alert
(
'Limite de participante.'
)
alert
(
'Limite de participante.'
)
}
else
{
}
else
{
contador
++
;
var
cln
=
participante
.
cloneNode
(
true
);
var
cln
=
participante
.
cloneNode
(
true
);
cln
.
style
.
display
=
'block'
;
cln
.
style
.
display
=
'block'
;
// console.log(cln.children[2].firstElementChild.id)
// console.log(cln.children[1].firstElementChild.href)
// var id = cln.children[2].firstElementChild.id;
// var href = cln.children[1].firstElementChild.href;
// cln.children[2].firstElementChild.id = id + contador;
// cln.children[1].firstElementChild.href = href + contador;
// console.log(cln.children[2].firstElementChild.id)
// console.log(cln.children[1].firstElementChild.href)
// console.log(cln.style.display = 'block')
// console.log(cln.style.display = 'block')
for
(
i
=
0
;
i
<
cln
.
children
.
length
;
i
++
)
{
for
(
i
=
0
;
i
<
cln
.
children
.
length
;
i
++
)
{
for
(
let
index
=
0
;
index
<
cln
.
children
[
i
]
.
querySelectorAll
(
'input'
)
.
length
;
index
++
)
{
for
(
let
index
=
0
;
index
<
cln
.
children
[
i
]
.
querySelectorAll
(
'input'
)
.
length
;
index
++
)
{
let
input
=
cln
.
children
[
i
]
.
querySelectorAll
(
'input'
)[
index
];
let
input
=
cln
.
children
[
i
]
.
querySelectorAll
(
'input'
)[
index
];
let
name
=
input
.
getAttributeNode
(
"name"
)
.
value
;
let
name
=
input
.
getAttributeNode
(
"name"
)
.
value
;
input
.
getAttributeNode
(
"name"
)
.
value
=
name
+
'['
+
contador
+
']'
;
name
=
name
.
replace
(
"["
,
""
);
name
=
name
.
replace
(
"]"
,
""
);
input
.
getAttributeNode
(
"name"
)
.
value
=
name
+
'['
+
contador
+
']'
;
// input.getAttributeNode("disabled").value = " ";
// input.getAttributeNode("disabled").value = " ";
let
select
=
cln
.
children
[
i
]
.
querySelectorAll
(
'select'
)[
index
];
let
select
=
cln
.
children
[
i
]
.
querySelectorAll
(
'select'
)[
index
];
if
(
select
){
if
(
select
){
let
selectName
=
select
.
getAttributeNode
(
"name"
)
.
value
;
let
selectName
=
select
.
getAttributeNode
(
"name"
)
.
value
;
selectName
=
selectName
.
replace
(
"["
,
""
);
selectName
=
selectName
.
replace
(
"]"
,
""
);
// console.log(select.getAttributeNode("name").value)
// console.log(select.getAttributeNode("name").value)
select
.
getAttributeNode
(
"name"
)
.
value
=
selectName
+
'['
+
contador
+
']'
;
select
.
getAttributeNode
(
"name"
)
.
value
=
selectName
+
'['
+
contador
+
']'
;
}
}
}
}
...
@@ -534,7 +548,27 @@
...
@@ -534,7 +548,27 @@
form
.
submit
();
form
.
submit
();
}
}
}
);
}
);
jQuery
.
extend
(
jQuery
.
validator
.
messages
,
{
required
:
"Este campo é requerido."
,
remote
:
"Por favor, corrija este campo."
,
email
:
"Por favor, forneça um endereço eletrônico válido."
,
url
:
"Por favor, forneça uma URL válida."
,
date
:
"Por favor, forneça uma data válida."
,
dateISO
:
"Por favor, forneça uma data válida (ISO)."
,
number
:
"Por favor, forneça um número válido."
,
digits
:
"Por favor, forneça somente dígitos."
,
creditcard
:
"Por favor, forneça um cartão de crédito válido."
,
equalTo
:
"Por favor, forneça o mesmo valor novamente."
,
accept
:
"Por favor, forneça um valor com uma extensão válida."
,
maxlength
:
jQuery
.
validator
.
format
(
"Por favor, forneça não mais que
{
0
}
caracteres."
),
minlength
:
jQuery
.
validator
.
format
(
"Por favor, forneça ao menos
{
0
}
caracteres."
),
rangelength
:
jQuery
.
validator
.
format
(
"Por favor, forneça um valor entre
{
0
}
e
{
1
}
caracteres de comprimento."
),
range
:
jQuery
.
validator
.
format
(
"Por favor, forneça um valor entre
{
0
}
e
{
1
}
."
),
max
:
jQuery
.
validator
.
format
(
"Por favor, forneça um valor menor ou igual a
{
0
}
."
),
min
:
jQuery
.
validator
.
format
(
"Por favor, forneça um valor maior ou igual a
{
0
}
."
)
});
$
(
"#criarProjetoForm"
)
.
validate
(
{
$
(
"#criarProjetoForm"
)
.
validate
(
{
lang
:
'PT_BR'
,
rules
:
{
rules
:
{
firstname
:
"required"
,
firstname
:
"required"
,
username
:
{
username
:
{
...
@@ -571,61 +605,62 @@
...
@@ -571,61 +605,62 @@
agree
:
"required"
agree
:
"required"
},
},
messages
:
{
messages
:
{
nomeProjeto
:
"O nome do projeto é obrigatório."
,
// nomeProjeto: "O nome do projeto é obrigatório.",
'emailParticipante[]'
:
"Este campo é obrigatório."
,
'data_de_nascimento[]'
:
"Este campo é obrigatório."
,
// 'emailParticipante[]': "Este campo é obrigatório.",
'cpf[]'
:
"Este campo é obrigatório."
,
// 'data_de_nascimento[]': "Este campo é obrigatório.",
'rg[]'
:
{
// 'cpf[]': "Este campo é obrigatório.",
required
:
"Este campo é obrigatório."
,
// 'rg[]': {
maxlength
:
"Este campo deve conter no máximo 8 números."
// required: "Este campo é obrigatório.",
},
// maxlength: "Este campo deve conter no máximo 8 números."
'celular[]'
:
"Este campo é obrigatório."
,
// },
'cep[]'
:
"Este campo é obrigatório."
,
// 'celular[]': "Este campo é obrigatório.",
'uf[]'
:
"Este campo é obrigatório."
,
// 'cep[]': "Este campo é obrigatório.",
'cidade[]'
:
"Este campo é obrigatório."
,
// 'uf[]': "Este campo é obrigatório.",
'bairro[]'
:
"Este campo é obrigatório."
,
// 'cidade[]': "Este campo é obrigatório.",
'rua[]'
:
"Este campo é obrigatório."
,
// 'bairro[]': "Este campo é obrigatório.",
'numero[]'
:
"Este campo é obrigatório."
,
// 'rua[]': "Este campo é obrigatório.",
'complemento[]'
:
"Este campo é obrigatório."
,
// 'numero[]': "Este campo é obrigatório.",
'universidade[]'
:
"Este campo é obrigatório."
,
// 'complemento[]': "Este campo é obrigatório.",
'curso[]'
:
"Este campo é obrigatório."
,
// 'universidade[]': "Este campo é obrigatório.",
'turno[]'
:
"Este campo é obrigatório."
,
// 'curso[]': "Este campo é obrigatório.",
'total_periodos[]'
:
"Este campo é obrigatório."
,
// 'turno[]': "Este campo é obrigatório.",
'periodo_atual[]'
:
"Este campo é obrigatório."
,
// 'total_periodos[]': "Este campo é obrigatório.",
'ordem_prioridade[]'
:
"Este campo é obrigatório."
,
// 'periodo_atual[]': "Este campo é obrigatório.",
'media_geral_curso[]'
:
"Este campo é obrigatório."
,
// 'ordem_prioridade[]': "Este campo é obrigatório.",
'nomePlanoTrabalho[]'
:
"Este campo é obrigatório."
,
// 'media_geral_curso[]': "Este campo é obrigatório.",
'anexoPlanoTrabalho[]'
:
"Este campo é obrigatório."
,
// 'nomePlanoTrabalho[]': "Este campo é obrigatório.",
grandeArea
:
"Escolha uma grande área."
,
// 'anexoPlanoTrabalho[]': "Este campo é obrigatório.",
area
:
"Escolha uma área."
,
// grandeArea: "Escolha uma grande área.",
linkGrupo
:
"Este campo é obrigatório."
,
// area: "Escolha uma área.",
pontuacaoPlanilha
:
"Este campo é obrigatório."
,
// linkGrupo: "Este campo é obrigatório.",
anexoProjeto
:
"Este campo é obrigatório."
,
// pontuacaoPlanilha: "Este campo é obrigatório.",
anexoLattesCoordenador
:
"Este campo é obrigatório."
,
// anexoProjeto: "Este campo é obrigatório.",
anexoConsuPreenchido
:
"Este campo é obrigatório."
,
// anexoLattesCoordenador: "Este campo é obrigatório.",
anexoGrupoPesquisa
:
"Este campo é obrigatório."
,
// anexoConsuPreenchido: "Este campo é obrigatório.",
anexoPlanilha
:
"Este campo é obrigatório."
,
// anexoGrupoPesquisa: "Este campo é obrigatório.",
anexoComiteEtica
:
"Este campo é obrigatório."
,
// anexoPlanilha: "Este campo é obrigatório.",
inputJustificativa
:
"Este campo é obrigatório."
,
// anexoComiteEtica: "Este campo é obrigatório.",
"nomeParticipante[]"
:
{
// inputJustificativa: "Este campo é obrigatório.",
required
:
"O nome do participante é obrigatório."
,
// "nomeParticipante[]": {
alpha
:
"Não é permitido números."
// required: "O nome do participante é obrigatório.",
},
// alpha: "Não é permitido números."
username
:
{
// },
required
:
"Please enter a username"
,
// username: {
minlength
:
"Your username must consist of at least 2 characters"
// required: "Please enter a username",
},
// minlength: "Your username must consist of at least 2 characters"
password
:
{
// },
required
:
"Please provide a password"
,
// password: {
minlength
:
"Your password must be at least 5 characters long"
// required: "Please provide a password",
},
// minlength: "Your password must be at least 5 characters long"
confirm_password
:
{
// },
required
:
"Please provide a password"
,
// confirm_password: {
minlength
:
"Your password must be at least 5 characters long"
,
// required: "Please provide a password",
equalTo
:
"Please enter the same password as above"
// minlength: "Your password must be at least 5 characters long",
},
// equalTo: "Please enter the same password as above"
email
:
"Please enter a valid email address"
,
// },
agree
:
"Please accept our policy"
// email: "Please enter a valid email address",
// agree: "Please accept our policy"
},
},
errorElement
:
"em"
,
errorElement
:
"em"
,
errorPlacement
:
function
(
error
,
element
)
{
errorPlacement
:
function
(
error
,
element
)
{
...
...
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