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
8a05eb02
"vscode:/vscode.git/clone" did not exist on "fc78a903e1b2e411ea98aeedca425e46b911ac57"
Commit
8a05eb02
authored
Jul 26, 2022
by
GuilhermeGz
Browse files
Ajuste na requisição de documento extra na criação do rascunho
parent
05aab7ed
Changes
3
Show whitespace changes
Inline
Side-by-side
app/Http/Requests/UpdateTrabalho.php
View file @
8a05eb02
...
...
@@ -92,7 +92,7 @@ class UpdateTrabalho extends FormRequest
$rules
[
'linkLattesEstudante'
]
=
[
'required'
,
'string'
];
$rules
[
'anexoProjeto'
]
=
[
Rule
::
requiredIf
(
$projeto
->
anexo
GrupoPesquisa
==
null
),
'mimes:pdf'
];
$rules
[
'anexoProjeto'
]
=
[
Rule
::
requiredIf
(
$projeto
->
anexo
Projeto
==
null
),
'mimes:pdf'
];
$rules
[
'anexoDecisaoCONSU'
]
=
[
Rule
::
requiredIf
(
$evento
->
consu
&&
$projeto
->
anexoDecisaoCONSU
==
null
),
'mimes:pdf'
];
return
$rules
;
...
...
resources/views/evento/formulario/anexos.blade.php
View file @
8a05eb02
...
...
@@ -118,7 +118,7 @@
@if($edital->nome_docExtra != null)
<div
class=
"form-group col-md-6"
>
<label
title=
"{{$edital->nome_docExtra}}"
for=
"anexo_docExtra"
class=
"col-form-label font-tam"
style=
"font-weight: bold"
>
{{$edital->nome_docExtra}}: @if($edital->obrigatoriedade_docExtra == true)
<span
style=
"color: red; font-weight:bold"
>
*
</span>
@endif
</label>
<input
type=
"file"
class=
"input-group-text"
name=
"anexo_docExtra"
accept=
".pdf,.docx,.doc,.zip "
@
if
($
edital-
>
obrigatoriedade_docExtra == true) required @endif
/>
<input
type=
"file"
class=
"input-group-text"
name=
"anexo_docExtra"
accept=
".pdf,.docx,.doc,.zip "
/>
@error('anexo_docExtra')
<span
class=
"invalid-feedback"
role=
"alert"
style=
"overflow: visible; display:block"
>
<strong>
{{ $message }}
</strong>
...
...
resources/views/projeto/editaFormulario/anexos.blade.php
View file @
8a05eb02
...
...
@@ -167,7 +167,7 @@
@else
<i
class=
"fas fa-times-circle fa-2x"
></i>
@endif
<input
type=
"file"
class=
"input-group-text"
name=
"anexo_docExtra"
placeholder=
"{{$edital->nome_docExtra}}"
accept=
".pdf,.docx,.doc,.zip"
@
if
($
edital-
>
obrigatoriedade_docExtra == true) required @endif
/>
<input
type=
"file"
class=
"input-group-text"
name=
"anexo_docExtra"
placeholder=
"{{$edital->nome_docExtra}}"
accept=
".pdf,.docx,.doc,.zip"
/>
@error('anexo_docExtra')
<span
class=
"invalid-feedback"
role=
"alert"
style=
"overflow: visible; display:block"
>
<strong>
{{ $message }}
</strong>
...
...
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