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
6956aff0
Commit
6956aff0
authored
Nov 15, 2022
by
Lucas Henrique
Browse files
Adição de condicionais às funções relacionadas aos participantes
parent
71363f2d
Changes
3
Show whitespace changes
Inline
Side-by-side
resources/views/evento/submeterRascunho.blade.php
View file @
6956aff0
...
...
@@ -25,8 +25,10 @@
@
component
(
'evento.formulario.anexos'
)
@
endcomponent
@
if
(
$edital
->
numParticipantes
!=
0
)
@
component
(
'evento.formulario.participantes'
,
[
'estados'
=>
$estados
,
'enum_turno'
=>
$enum_turno
])
@
endcomponent
@
endif
@
component
(
'evento.formulario.finalizar'
)
@
endcomponent
...
...
@@ -34,11 +36,13 @@
</
div
>
</
div
>
</
form
>
@
if
(
$edital
->
numParticipantes
!=
0
)
<
div
id
=
"participanteFirst"
>
@
component
(
'componentes.participante'
,
[
'enum_turno'
=>
$enum_turno
,
'estados'
=>
$estados
,
])
@
endcomponent
</
div
>
@
endif
<!--
Modal
de
Aviso
Edit
-->
<
div
class
=
"modal fade"
id
=
"exampleModalAnexarDocumento"
tabindex
=
"-1"
role
=
"dialog"
aria
-
labelledby
=
"exampleModalLabel2"
aria
-
hidden
=
"true"
>
<
div
class
=
"modal-dialog modal-dialog-centered"
role
=
"document"
>
...
...
resources/views/evento/submeterTrabalho.blade.php
View file @
6956aff0
...
...
@@ -36,11 +36,13 @@
</
div
>
</
div
>
</
form
>
@
if
(
$edital
->
numParticipantes
!=
0
)
<
div
id
=
"participanteFirst"
>
@
component
(
'componentes.participante'
,
[
'enum_turno'
=>
$enum_turno
,
'estados'
=>
$estados
,
])
@
endcomponent
</
div
>
@
endif
<!--
Modal
de
Aviso
Edit
-->
<
div
class
=
"modal fade"
id
=
"exampleModalAnexarDocumento"
tabindex
=
"-1"
role
=
"dialog"
aria
-
labelledby
=
"exampleModalLabel2"
aria
-
hidden
=
"true"
>
<
div
class
=
"modal-dialog modal-dialog-centered"
role
=
"document"
>
...
...
@@ -97,9 +99,11 @@
let
buttonSubmit
=
document
.
getElementById
(
'idButtonSubmitProjeto'
);
let
buttonRascunho
=
document
.
getElementById
(
'idButtonSubmitRascunho'
);
@
if
(
$edital
->
numParticipantes
!=
0
)
let
parts
=
document
.
getElementById
(
'participante'
);
let
partsFirst
=
document
.
getElementById
(
'participanteFirst'
);
const
participante
=
partsFirst
.
firstElementChild
;
@
endif
let
contador
=
0
;
buttonSubmit
.
addEventListener
(
'click'
,
(
e
)
=>
{
...
...
@@ -112,6 +116,7 @@
$
(
"#criarProjetoForm"
)
.
append
(
input
);
})
@
if
(
$edital
->
numParticipantes
!=
0
)
function
gerarPeriodo
(
e
){
var
select
=
e
.
parentElement
.
parentElement
.
nextElementSibling
;
selectPeriodos
=
select
.
children
[
0
]
.
children
[
1
];
...
...
@@ -224,14 +229,14 @@
$
(
"#atribuir1"
)
.
attr
(
'data-target'
,
'#exampleModal'
+
(
id
));
document
.
getElementById
(
"exampleModal"
+
id
)
.
modal
(
'hide'
);
}
@
endif
</
script
>
<
script
>
$
(
document
)
.
ready
(
function
()
{
@
if
(
$edital
->
numParticipantes
!=
0
)
$
(
'#nomeParticipante'
)
.
keyup
(
function
()
{
$
(
'#display'
)
.
text
(
$
(
this
)
.
val
());
if
(
$
(
'#nomeParticipante'
)
.
val
()
==
""
){
...
...
@@ -242,11 +247,13 @@
$
(
'#pontos'
)
.
show
();
}
});
@
endif
$
.
validator
.
addMethod
(
"alpha"
,
function
(
value
,
element
)
{
return
this
.
optional
(
element
)
||
value
==
value
.
match
(
/^
[
A
-
Za
-
záàâãéèêíïóôõöúçñÁÀÂÃÉÈÍÏÓÔÕÖÚÇÑ
]
+
$
/
);
});
@
if
(
$edital
->
numParticipantes
!=
0
)
$
(
'input.cep:text'
)
.
mask
(
'00000-000'
);
$
(
'input.cpf:text'
)
.
mask
(
'000.000.000-00'
);
$
(
'.numero'
)
.
mask
(
'0000000000000'
);
...
...
@@ -269,7 +276,7 @@
}
});
@
endif
// $.validator.setDefaults( {
...
...
resources/views/projeto/editar.blade.php
View file @
6956aff0
...
...
@@ -34,7 +34,9 @@
@
include
(
'projeto.editaFormulario.proponente'
)
@
if
(
$edital
->
numParticipantes
!=
0
)
@
include
(
'projeto.editaFormulario.participantes'
)
@
endif
@
include
(
'projeto.editaFormulario.anexos'
)
...
...
@@ -44,11 +46,13 @@
</
div
>
</
div
>
</
form
>
@
if
(
$edital
->
numParticipantes
!=
0
)
<
div
id
=
"participanteFirst"
>
@
component
(
'componentes.participante'
,
[
'enum_turno'
=>
$enum_turno
,
'estados'
=>
$estados
,
])
@
endcomponent
</
div
>
@
endif
<!--
Modal
de
Aviso
Edit
-->
<
div
class
=
"modal fade"
id
=
"exampleModalAnexarDocumento"
tabindex
=
"-1"
role
=
"dialog"
aria
-
labelledby
=
"exampleModalLabel2"
aria
-
hidden
=
"true"
>
<
div
class
=
"modal-dialog modal-dialog-centered"
role
=
"document"
>
...
...
@@ -118,9 +122,11 @@
let
buttonSubmit
=
document
.
getElementById
(
'idButtonSubmitProjeto'
);
let
buttonRascunho
=
document
.
getElementById
(
'idButtonSubmitRascunho'
);
@
if
(
$edital
->
numParticipantes
!=
0
)
let
parts
=
document
.
getElementById
(
'participante'
);
let
partsFirst
=
document
.
getElementById
(
'participanteFirst'
);
const
participante
=
partsFirst
.
firstElementChild
;
@
endif
let
contador
=
0
;
buttonSubmit
.
addEventListener
(
'click'
,
(
e
)
=>
{
...
...
@@ -132,7 +138,7 @@
const
input
=
'<input id="input_rascunho" type="hidden" name="rascunho" value="true">'
;
$
(
"#updateProjetoForm"
)
.
append
(
input
);
})
@
if
(
$edital
->
numParticipantes
!=
0
)
function
gerarPeriodo
(
e
){
var
select
=
e
.
parentElement
.
parentElement
.
nextElementSibling
;
selectPeriodos
=
select
.
children
[
0
]
.
children
[
1
];
...
...
@@ -251,17 +257,17 @@
$
(
"#atribuir1"
)
.
attr
(
'data-target'
,
'#exampleModal'
+
(
id
));
document
.
getElementById
(
"exampleModal"
+
id
)
.
modal
(
'hide'
);
}
@
endif
</
script
>
<
script
>
$
(
document
)
.
ready
(
function
()
{
$
.
validator
.
addMethod
(
"alpha"
,
function
(
value
,
element
)
{
return
this
.
optional
(
element
)
||
value
==
value
.
match
(
/^
[
A
-
Za
-
záàâãéèêíïóôõöúçñÁÀÂÃÉÈÍÏÓÔÕÖÚÇÑ
]
+
$
/
);
});
@
if
(
$edital
->
numParticipantes
!=
0
)
$
(
'input.cep:text'
)
.
mask
(
'00000-000'
);
//$('input.cpf:text').mask('000.000.000-00');
$
(
'.numero'
)
.
mask
(
'0000000000000'
);
...
...
@@ -284,7 +290,7 @@
}
});
@
endif
// $.validator.setDefaults( {
...
...
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