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
743a0f82
Commit
743a0f82
authored
Mar 17, 2022
by
Guilherme Silva
Browse files
Adição de campos para recebimento de documentos dos formulários de avaliação
parent
60fa5589
Changes
2
Show whitespace changes
Inline
Side-by-side
resources/views/evento/criarEvento.blade.php
View file @
743a0f82
...
@@ -319,6 +319,39 @@
...
@@ -319,6 +319,39 @@
@enderror
@enderror
</div>
</div>
</div>
</div>
<div class="
col
-
sm
-
6
">
<div class="
form
-
group
">
<label for="
pdfFormAvalExterno
">Formulário de avaliação externo:</label>
@if(old('pdfFormAvalExternoPreenchido') != null)
<a id="
pdfFormAvalExternoTemp
" href="
{{
route
(
'baixar.evento.temp'
,
[
'nomeAnexo'
=>
'formAvaliacaoExterno'
])}}
">Arquivo atual</a>
@endif
<input type="
hidden
" id="
pdfFormAvalExternoPreenchido
" name="
pdfFormAvalExternoPreenchido
" value="
{{
old
(
'pdfFormAvalExternoPreenchido'
)
}}
" >
<input type="
file
" accept="
.
pdf
" class="
form
-
control
-
file
pdf
@
error
(
'pdfFormAvalExterno'
)
is
-
invalid
@
enderror
" name="
pdfFormAvalExterno
" value="
{{
old
(
'pdfFormAvalExterno'
)
}}
" id="
pdfFormAvalExterno
" onchange="
exibirAnexoTemp
(
this
)
">
<small>O arquivo selecionado deve ser no formato PDF de até 2mb.</small>
@error('pdfFormAvalExterno')
<span class="
invalid
-
feedback
" role="
alert
">
<strong>{{
$message
}}</strong>
</span>
@enderror
</div>
</div>
<div class="
col
-
sm
-
6
">
<div class="
form
-
group
">
<label for="
pdfFormAvalExterno
">Formulário de avaliação interno:</label>
@if(old('pdfFormAvalInternoPreenchido') != null)
<a id="
pdfFormAvalExternoTemp
" href="
{{
route
(
'baixar.evento.temp'
,
[
'nomeAnexo'
=>
'formAvaliacaoInterno'
])}}
">Arquivo atual</a>
@endif
<input type="
hidden
" id="
pdfFormAvalInternoPreenchido
" name="
pdfFormAvalInternoPreenchido
" value="
{{
old
(
'pdfFormAvalInternoPreenchido'
)
}}
" >
<input type="
file
" accept="
.
pdf
" class="
form
-
control
-
file
pdf
@
error
(
'pdfFormAvalInterno'
)
is
-
invalid
@
enderror
" name="
pdfFormAvalInterno
" value="
{{
old
(
'pdfFormAvalInterno'
)
}}
" id="
pdfFormAvalInterno
" onchange="
exibirAnexoTemp
(
this
)
">
<small>O arquivo selecionado deve ser no formato PDF de até 2mb.</small>
@error('pdfFormAvalInterno')
<span class="
invalid
-
feedback
" role="
alert
">
<strong>{{
$message
}}</strong>
</span>
@enderror
</div>
</div>
</div>
</div>
<div class="
row
justify
-
content
-
center
" style="
margin
:
20
px
0
20
px
0
">
<div class="
row
justify
-
content
-
center
" style="
margin
:
20
px
0
20
px
0
">
...
@@ -349,6 +382,14 @@
...
@@ -349,6 +382,14 @@
var modeloDocumentoPreenchido = document.getElementById('modeloDocumentoPreenchido');
var modeloDocumentoPreenchido = document.getElementById('modeloDocumentoPreenchido');
modeloDocumentoPreenchido.value = "
sim
";
modeloDocumentoPreenchido.value = "
sim
";
}
}
if(file.id === "
pdfFormAvalExterno
"){
var pdfFormAvalExternoPreenchido = document.getElementById('pdfFormAvalExternoPreenchido');
pdfFormAvalExternoPreenchido.value = "
sim
";
}
if(file.id === "
pdfFormAvalInterno
"){
var pdfFormAvalInternoPreenchido = document.getElementById('pdfFormAvalInternoPreenchido');
pdfFormAvalInternoPreenchido.value = "
sim
";
}
}
}
$("
input
[
type
=
'file'
]
").on("
change
", function () {
$("
input
[
type
=
'file'
]
").on("
change
", function () {
...
...
resources/views/evento/editarEvento.blade.php
View file @
743a0f82
...
@@ -311,6 +311,38 @@
...
@@ -311,6 +311,38 @@
@
enderror
@
enderror
</
div
>
</
div
>
</
div
>
</
div
>
<
div
class
=
"col-sm-6"
>
<
div
class
=
"form-group"
>
<
label
for
=
"pdfEdital"
>
Formulário
de
avaliação
externo
:</
label
>
<
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"
>
</
a
>
<
input
type
=
"file"
class
=
"form-control-file @error('pdfFormAvalExterno') is-invalid @enderror"
name
=
"pdfFormAvalExterno"
value
=
"{{ old('pdfFormAvalExterno') }}"
id
=
"pdfFormAvalExterno"
>
<
small
>
O
arquivo
selecionado
deve
ser
no
formato
PDF
de
até
2
mb
.
</
small
>
@
error
(
'pdfFormAvalExterno'
)
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
<
strong
>
{{
$message
}}
</
strong
>
</
span
>
@
enderror
</
div
>
</
div
>
<
div
class
=
"col-sm-6"
>
<
div
class
=
"form-group"
>
<
label
for
=
"pdfEdital"
>
Formulário
de
avaliação
interno
:</
label
>
<
a
href
=
"{{route('download', ['file' =>
$evento->formAvaliacaoInterno
])}}"
target
=
"_new"
style
=
"font-size: 20px; color: #114048ff;"
>
<
img
class
=
""
src
=
"
{
{asset('img/icons/file-download-solid.svg')}
}
"
style
=
"width:20px"
>
</
a
>
<
input
type
=
"file"
class
=
"form-control-file @error('pdfFormAvalInterno') is-invalid @enderror"
name
=
"pdfFormAvalInterno"
value
=
"{{ old('pdfFormAvalInterno') }}"
id
=
"pdfFormAvalInterno"
>
<
small
>
O
arquivo
selecionado
deve
ser
no
formato
PDF
de
até
2
mb
.
</
small
>
@
error
(
'pdfFormAvalInterno'
)
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
<
strong
>
{{
$message
}}
</
strong
>
</
span
>
@
enderror
</
div
>
</
div
>
</
div
>
</
div
>
...
...
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