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
6d24884d
Commit
6d24884d
authored
Jun 25, 2023
by
unknown
Browse files
Adição de novos campos de arquivos para o Projeto do tipo PIBITI
parent
7d2d854a
Changes
2
Hide whitespace changes
Inline
Side-by-side
app/Http/Requests/StoreTrabalho.php
View file @
6d24884d
...
...
@@ -112,7 +112,7 @@ class StoreTrabalho extends FormRequest
$rules
[
'justificativaAutorizacaoEtica'
]
=
[
Rule
::
requiredIf
(
$this
->
autorizacaoFlag
==
'nao'
)];
$rules
[
'pontuacaoPlanilha'
]
=
[
'required'
,
'string'
];
$rules
[
'linkGrupoPesquisa'
]
=
[
'required'
,
'string'
];
if
(
$evento
->
tipo
==
"PIBIC"
){
if
(
$evento
->
tipo
==
"PIBIC"
||
$evento
->
tipo
==
"PIBITI"
){
$rules
[
'preenchimentoFormFlag'
]
=
[
Rule
::
in
([
'sim'
]),
'required'
];
}
$rules
[
'anexo_acao_afirmativa'
]
=
[
Rule
::
requiredIf
(
$this
->
radioAcoesAfirmativas
==
'sim'
)];
...
...
@@ -184,7 +184,9 @@ class StoreTrabalho extends FormRequest
'ods.*'
=>
'Deve ser selecionada pelo menos uma ODS'
,
'linkLattesEstudante.*'
=>
"O link do currículo lattes do estudante é obrigatório"
,
'anexoDecisaoCONSU.*'
=>
'anexoDecisaoCONSU'
,
'anexo_SIPAC.*'
=>
'anexo_SIPAC'
'anexo_SIPAC.*'
=>
'anexo_SIPAC'
,
'preenchimentoFormFlag.*'
=>
'Preencha o questionário de pesquisa de prospecção interna.'
,
'anexo_acao_afirmativa.*'
=>
'O anexo de ação afirmativa deve ser anexado'
];
}
}
resources/views/evento/formulario/anexos.blade.php
View file @
6d24884d
...
...
@@ -133,7 +133,7 @@
</div>
@endif
@if($edital->tipo == "PIBIC"
&&
$edital->natureza_id == 2)
@if(
(
$edital->tipo == "PIBIC"
|| $edital->tipo == "PIBITI")
&&
$edital->natureza_id == 2)
<div
class=
"form-group col-md-6"
>
<label
for=
"botao"
class=
"col-form-label font-tam @error('botao') is-invalid @enderror"
data-toggle=
"tooltip"
data-placement=
"bottom"
title=
"Se possuir, coloque todas em único arquivo pdf."
style=
"font-weight: bold;"
>
...
...
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