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
bb684a4e
Commit
bb684a4e
authored
Jun 08, 2022
by
Guilherme Silva
Browse files
Adicionado .zip nas extensões aceitas no formulario do avaliador ad hoc
parent
254ae2d6
Changes
3
Hide whitespace changes
Inline
Side-by-side
app/Http/Controllers/EventoController.php
View file @
bb684a4e
...
@@ -128,7 +128,7 @@ class EventoController extends Controller
...
@@ -128,7 +128,7 @@ class EventoController extends Controller
'dt_fimRelatorioParcial'
=>
[
'required'
,
'date'
],
'dt_fimRelatorioParcial'
=>
[
'required'
,
'date'
],
'dt_inicioRelatorioFinal'
=>
[
'required'
,
'date'
],
'dt_inicioRelatorioFinal'
=>
[
'required'
,
'date'
],
'dt_fimRelatorioFinal'
=>
[
'required'
,
'date'
],
'dt_fimRelatorioFinal'
=>
[
'required'
,
'date'
],
'pdfFormAvalExterno'
=>
[(
$request
->
pdfFormAvalExternoPreenchido
!==
'sim'
?
'required'
:
''
),
'file'
,
'mimes:pdf,doc,docx,xlsx,xls,csv'
,
'max:2048'
],
'pdfFormAvalExterno'
=>
[(
$request
->
pdfFormAvalExternoPreenchido
!==
'sim'
?
'required'
:
''
),
'file'
,
'mimes:pdf,doc,docx,xlsx,xls,csv
,zip
'
,
'max:2048'
],
'pdfEdital'
=>
[(
$request
->
pdfEditalPreenchido
!==
'sim'
?
'required'
:
''
),
'file'
,
'mimes:pdf'
,
'max:2048'
],
'pdfEdital'
=>
[(
$request
->
pdfEditalPreenchido
!==
'sim'
?
'required'
:
''
),
'file'
,
'mimes:pdf'
,
'max:2048'
],
'inicioProjeto'
=>
[
'required'
,
'date'
],
'inicioProjeto'
=>
[
'required'
,
'date'
],
'fimProjeto'
=>
[
'required'
,
'date'
],
'fimProjeto'
=>
[
'required'
,
'date'
],
...
@@ -159,7 +159,7 @@ class EventoController extends Controller
...
@@ -159,7 +159,7 @@ class EventoController extends Controller
'dt_fimRelatorioParcial'
=>
[
'required'
,
'date'
,
'after_or_equal:dt_inicioRelatorioParcial'
],
'dt_fimRelatorioParcial'
=>
[
'required'
,
'date'
,
'after_or_equal:dt_inicioRelatorioParcial'
],
'dt_inicioRelatorioFinal'
=>
[
'required'
,
'date'
,
'after:dt_fimRelatorioParcial'
],
'dt_inicioRelatorioFinal'
=>
[
'required'
,
'date'
,
'after:dt_fimRelatorioParcial'
],
'dt_fimRelatorioFinal'
=>
[
'required'
,
'date'
,
'after_or_equal:dt_inicioRelatorioFinal'
],
'dt_fimRelatorioFinal'
=>
[
'required'
,
'date'
,
'after_or_equal:dt_inicioRelatorioFinal'
],
'pdfFormAvalExterno'
=>
[(
$request
->
pdfFormAvalExternoPreenchido
!==
'sim'
?
'required'
:
''
),
'file'
,
'mimes:pdf,doc,docx,xlsx,xls,csv'
,
'max:2048'
],
'pdfFormAvalExterno'
=>
[(
$request
->
pdfFormAvalExternoPreenchido
!==
'sim'
?
'required'
:
''
),
'file'
,
'mimes:pdf,doc,docx,xlsx,xls,csv
,zip
'
,
'max:2048'
],
'pdfEdital'
=>
[(
$request
->
pdfEditalPreenchido
!==
'sim'
?
'required'
:
''
),
'file'
,
'mimes:pdf'
,
'max:2048'
],
'pdfEdital'
=>
[(
$request
->
pdfEditalPreenchido
!==
'sim'
?
'required'
:
''
),
'file'
,
'mimes:pdf'
,
'max:2048'
],
'inicioProjeto'
=>
[
'required'
,
'date'
,
'after:yesterday'
],
'inicioProjeto'
=>
[
'required'
,
'date'
,
'after:yesterday'
],
'fimProjeto'
=>
[
'required'
,
'date'
,
'after_or_equal:fimSubmissao'
],
'fimProjeto'
=>
[
'required'
,
'date'
,
'after_or_equal:fimSubmissao'
],
...
@@ -430,7 +430,7 @@ class EventoController extends Controller
...
@@ -430,7 +430,7 @@ class EventoController extends Controller
'dt_fimRelatorioFinal'
=>
[
'required'
,
'date'
],
'dt_fimRelatorioFinal'
=>
[
'required'
,
'date'
],
'pdfEdital'
=>
[
'file'
,
'mimes:pdf'
,
'max:2048'
],
'pdfEdital'
=>
[
'file'
,
'mimes:pdf'
,
'max:2048'
],
'modeloDocumento'
=>
[
'file'
,
'mimes:zip,doc,docx,odt,pdf'
,
'max:2048'
],
'modeloDocumento'
=>
[
'file'
,
'mimes:zip,doc,docx,odt,pdf'
,
'max:2048'
],
'pdfFormAvalExterno'
=>
[
'file'
,
'mimes:pdf,doc,docx,xlsx,xls,csv'
,
'max:2048'
],
'pdfFormAvalExterno'
=>
[
'file'
,
'mimes:pdf,doc,docx,xlsx,xls,csv
,zip
'
,
'max:2048'
],
'pdfFormAvalRelatorio'
=>
[
'file'
,
'mimes:pdf'
,
'max:2048'
],
'pdfFormAvalRelatorio'
=>
[
'file'
,
'mimes:pdf'
,
'max:2048'
],
'inicioProjeto'
=>
[
'required'
,
'date'
],
'inicioProjeto'
=>
[
'required'
,
'date'
],
'fimProjeto'
=>
[
'required'
,
'date'
],
'fimProjeto'
=>
[
'required'
,
'date'
],
...
@@ -456,7 +456,7 @@ class EventoController extends Controller
...
@@ -456,7 +456,7 @@ class EventoController extends Controller
'dt_inicioRelatorioFinal'
=>
[
'required'
,
'date'
,
'after:dt_fimRelatorioParcial'
],
'dt_inicioRelatorioFinal'
=>
[
'required'
,
'date'
,
'after:dt_fimRelatorioParcial'
],
'dt_fimRelatorioFinal'
=>
[
'required'
,
'date'
,
'after_or_equal:dt_inicioRelatorioFinal'
],
'dt_fimRelatorioFinal'
=>
[
'required'
,
'date'
,
'after_or_equal:dt_inicioRelatorioFinal'
],
'modeloDocumento'
=>
[
'file'
,
'mimes:zip,doc,docx,odt,pdf'
,
'max:2048'
],
'modeloDocumento'
=>
[
'file'
,
'mimes:zip,doc,docx,odt,pdf'
,
'max:2048'
],
'pdfFormAvalExterno'
=>
[
'file'
,
'mimes:pdf,doc,docx,xlsx,xls,csv'
,
'max:2048'
],
'pdfFormAvalExterno'
=>
[
'file'
,
'mimes:pdf,doc,docx,xlsx,xls,csv
,zip
'
,
'max:2048'
],
'pdfFormAvalRelatorio'
=>
[
'file'
,
'mimes:pdf'
,
'max:2048'
],
'pdfFormAvalRelatorio'
=>
[
'file'
,
'mimes:pdf'
,
'max:2048'
],
'inicioProjeto'
=>
[
'required'
,
'date'
,
'after:resultado_final'
],
'inicioProjeto'
=>
[
'required'
,
'date'
,
'after:resultado_final'
],
'fimProjeto'
=>
[
'required'
,
'date'
,
'after:inicioProjeto'
],
'fimProjeto'
=>
[
'required'
,
'date'
,
'after:inicioProjeto'
],
...
...
resources/views/evento/criarEvento.blade.php
View file @
bb684a4e
...
@@ -426,7 +426,7 @@
...
@@ -426,7 +426,7 @@
<
a
id
=
"pdfFormAvalExternoTemp"
href
=
"{{ route('baixar.evento.temp', ['nomeAnexo' => 'formAvaliacaoExterno' ])}}"
>
Arquivo
atual
</
a
>
<
a
id
=
"pdfFormAvalExternoTemp"
href
=
"{{ route('baixar.evento.temp', ['nomeAnexo' => 'formAvaliacaoExterno' ])}}"
>
Arquivo
atual
</
a
>
@
endif
@
endif
<
input
type
=
"hidden"
id
=
"pdfFormAvalExternoPreenchido"
name
=
"pdfFormAvalExternoPreenchido"
value
=
"{{ old('pdfFormAvalExternoPreenchido') }}"
>
<
input
type
=
"hidden"
id
=
"pdfFormAvalExternoPreenchido"
name
=
"pdfFormAvalExternoPreenchido"
value
=
"{{ old('pdfFormAvalExternoPreenchido') }}"
>
<
input
type
=
"file"
accept
=
".pdf,.doc,.docx,.xlsx,
.xls,
.csv"
class
=
"form-control-file @error('pdfFormAvalExterno') is-invalid @enderror"
name
=
"pdfFormAvalExterno"
value
=
"{{ old('pdfFormAvalExterno') }}"
id
=
"pdfFormAvalExterno"
onchange
=
"exibirAnexoTemp(this)"
>
<
input
type
=
"file"
accept
=
".pdf,.doc,.docx,.xlsx,.xls,.csv
,.zip
"
class
=
"form-control-file @error('pdfFormAvalExterno') is-invalid @enderror"
name
=
"pdfFormAvalExterno"
value
=
"{{ old('pdfFormAvalExterno') }}"
id
=
"pdfFormAvalExterno"
onchange
=
"exibirAnexoTemp(this)"
>
<
small
>
O
arquivo
selecionado
deve
ter
até
2
mb
.
</
small
>
<
small
>
O
arquivo
selecionado
deve
ter
até
2
mb
.
</
small
>
@
error
(
'pdfFormAvalExterno'
)
@
error
(
'pdfFormAvalExterno'
)
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
...
...
resources/views/evento/editarEvento.blade.php
View file @
bb684a4e
...
@@ -405,7 +405,7 @@
...
@@ -405,7 +405,7 @@
<
a
href
=
"{{route('download', ['file' =>
$evento->formAvaliacaoExterno
])}}"
target
=
"_new"
style
=
"font-size: 20px; color: #114048ff;"
>
<
a
href
=
"{{route('download', ['file' =>
$evento->formAvaliacaoExterno
])}}"
target
=
"_new"
style
=
"font-size: 20px; color: #114048ff;"
>
<
img
class
=
""
src
=
"
{
{asset('img/icons/file-download-solid.svg')}
}
"
style
=
"width:20px"
>
<
img
class
=
""
src
=
"
{
{asset('img/icons/file-download-solid.svg')}
}
"
style
=
"width:20px"
>
</
a
>
</
a
>
<
input
type
=
"file"
accept
=
".pdf,.doc,.docx,.xlsx,
.xls,
.csv"
class
=
"form-control-file @error('pdfFormAvalExterno') is-invalid @enderror"
name
=
"pdfFormAvalExterno"
value
=
"{{ old('pdfFormAvalExterno') }}"
id
=
"pdfFormAvalExterno"
>
<
input
type
=
"file"
accept
=
".pdf,.doc,.docx,.xlsx,.xls,.csv
,.zip
"
class
=
"form-control-file @error('pdfFormAvalExterno') is-invalid @enderror"
name
=
"pdfFormAvalExterno"
value
=
"{{ old('pdfFormAvalExterno') }}"
id
=
"pdfFormAvalExterno"
>
<
small
>
O
arquivo
selecionado
deve
ter
até
2
mb
.
</
small
>
<
small
>
O
arquivo
selecionado
deve
ter
até
2
mb
.
</
small
>
@
error
(
'pdfFormAvalExterno'
)
@
error
(
'pdfFormAvalExterno'
)
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
...
...
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