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
a33eecb4
Commit
a33eecb4
authored
Jun 01, 2021
by
Gabriel-31415
Browse files
ajustes
parent
8a8c2861
Changes
3
Hide whitespace changes
Inline
Side-by-side
resources/views/componentes/input.blade.php
View file @
a33eecb4
...
...
@@ -3,7 +3,7 @@
@
endphp
<
div
class
=
"form-group"
>
<
label
class
=
" control-label {{
$class
}}"
for
=
"firstname"
>
{{
$label
}}
<
span
style
=
"color: red; font-weight:bold"
>*</
span
></
label
>
<
div
class
=
""
>
<
div
class
=
"
col-sm-5
"
>
{{
$slot
}}
</
div
>
</
div
>
resources/views/evento/formulario/anexos.blade.php
View file @
a33eecb4
...
...
@@ -10,25 +10,25 @@
<div
class=
"col-md-12"
style=
"margin-bottom: -0.8rem;"
><hr
style=
"border-top: 1px solid#1492E6"
></div>
<div
class=
"form-group col-md-6"
style=
"margin-top: 10px"
>
@component('componentes.input', ['label' => 'Anexo do projeto'])
@component('componentes.input', ['label' => 'Anexo do projeto
(.pdf)
'])
<input
type=
"file"
class=
"input-group-text"
name=
"anexoProjeto"
placeholder=
"nomeProjeto"
accept=
"application/pdf"
required
/>
@endcomponent
</div>
<div
class=
"form-group col-md-6"
style=
"margin-top: 10px"
>
@component('componentes.input', ['label' => 'Anexo do currículo Lattes do Coordenador'])
<input
type=
"file"
class=
"input-group-text"
name=
"anexoLattesCoordenador"
placeholder=
"anexoPlanoTrabalho"
required
/>
@component('componentes.input', ['label' => 'Anexo do currículo Lattes do Coordenador
(.pdf)
'])
<input
type=
"file"
class=
"input-group-text"
name=
"anexoLattesCoordenador"
placeholder=
"anexoPlanoTrabalho"
accept=
".pdf"
required
/>
@endcomponent
</div>
<div
class=
"form-group col-md-6"
>
@component('componentes.input', ['label' => 'Anexo da Planilha de Pontuação'])
<input
type=
"file"
class=
"input-group-text"
name=
"anexo
LattesCoordenador
"
placeholder=
"anexoPlanoTrabalho"
required
/>
@component('componentes.input', ['label' => 'Anexo da Planilha de Pontuação
(.ods,.xls,.ods)
'])
<input
type=
"file"
class=
"input-group-text"
name=
"anexo
Planilha
"
placeholder=
"anexoPlanoTrabalho"
accept=
".ods, .xls, .ods"
required
/>
@endcomponent
</div>
<div
class=
"form-group col-md-6"
>
@component('componentes.input', ['label' => 'Decisão do CONSU'])
<input
type=
"file"
class=
"input-group-text"
name=
"anexoConsuPreenchido"
placeholder=
"anexoConsuPreenchido"
required
/>
@component('componentes.input', ['label' => 'Decisão do CONSU
(.pdf)
'])
<input
type=
"file"
class=
"input-group-text"
name=
"anexoConsuPreenchido"
placeholder=
"anexoConsuPreenchido"
accept=
".pdf"
required
/>
@endcomponent
</div>
<div
class=
"form-group col-md-6"
>
...
...
@@ -58,7 +58,7 @@
<div
class=
"input-group"
>
<div
class=
"custom-file"
>
<input
type=
"file"
class=
"custom-file-input @error('anexoComiteEtica') is-invalid @enderror"
id=
"inputEtica"
aria-describedby=
"inputGroupFileAddon01"
name=
"anexoComiteEtica"
onchange=
"verificarArquivoAnexado_pdf(this, 'anexoComiteEticaLegenda')"
>
<input
type=
"file"
class=
"custom-file-input @error('anexoComiteEtica') is-invalid @enderror"
accept=
".pdf"
id=
"inputEtica"
aria-describedby=
"inputGroupFileAddon01"
name=
"anexoComiteEtica"
onchange=
"verificarArquivoAnexado_pdf(this, 'anexoComiteEticaLegenda')"
>
<label
class=
"custom-file-label"
id=
"anexoComiteEticaLegenda"
for=
"inputEtica"
>
O arquivo deve ser no formato PDF de até 2MB.
</label>
</div>
</div>
...
...
@@ -81,7 +81,7 @@
<div
class=
"custom-file"
>
<input
type=
"file"
class=
"custom-file-input @error('justificativaAutorizacaoEtica') is-invalid @enderror"
id=
"inputJustificativa"
aria-describedby=
"inputGroupFileAddon01"
name=
"justificativaAutorizacaoEtica"
onchange=
"verificarArquivoAnexado_pdf(this, 'justificativaAutorizacaoEticaLegenda')"
required
>
<input
type=
"file"
class=
"custom-file-input @error('justificativaAutorizacaoEtica') is-invalid @enderror"
accept=
".pdf"
id=
"inputJustificativa"
aria-describedby=
"inputGroupFileAddon01"
name=
"justificativaAutorizacaoEtica"
onchange=
"verificarArquivoAnexado_pdf(this, 'justificativaAutorizacaoEticaLegenda')"
required
>
<label
class=
"custom-file-label"
id=
"justificativaAutorizacaoEticaLegenda"
for=
"inputJustificativa"
>
O arquivo deve ser no formato PDF de até 2MB.
</label>
</div>
</div>
...
...
resources/views/evento/submeterTrabalho.blade.php
View file @
a33eecb4
...
...
@@ -164,6 +164,16 @@
<
script
>
$
(
document
)
.
ready
(
function
()
{
$
(
"input[type='file']"
)
.
on
(
"change"
,
function
()
{
if
(
this
.
files
[
0
]
.
size
>
2000000
)
{
// console.log($(this).parents( ".col-sm-5" ))
alert
(
"O tamanho do arquivo deve ser menor que 2MB!"
);
$
(
this
)
.
val
(
''
);
}
});
$
.
validator
.
setDefaults
(
{
submitHandler
:
function
()
{
...
...
@@ -192,6 +202,7 @@
required
:
true
,
email
:
true
},
agree
:
"required"
},
messages
:
{
...
...
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