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
7081d13f
"resources/vscode:/vscode.git/clone" did not exist on "7bc0c0e7bc297b7d336c7b30ce3f6684e66cb097"
Commit
7081d13f
authored
Apr 20, 2022
by
Guilherme Silva
Browse files
Atualização dos requisios de atualização da proposta
parent
6cf03177
Changes
2
Hide whitespace changes
Inline
Side-by-side
app/Http/Controllers/TrabalhoController.php
View file @
7081d13f
...
@@ -236,7 +236,6 @@ class TrabalhoController extends Controller
...
@@ -236,7 +236,6 @@ class TrabalhoController extends Controller
//Anexo Decisão CONSU
//Anexo Decisão CONSU
// if ($evento->tipo == 'PIBIC' || $evento->tipo == 'PIBIC-EM') {
// if ($evento->tipo == 'PIBIC' || $evento->tipo == 'PIBIC-EM') {
if
(
isset
(
$request
->
anexoDecisaoCONSU
))
{
if
(
isset
(
$request
->
anexoDecisaoCONSU
))
{
dd
(
$request
->
anexoDecisaoCONSU
);
if
(
Storage
::
disk
()
->
exists
(
$trabalho
->
anexoDecisaoCONSU
))
{
if
(
Storage
::
disk
()
->
exists
(
$trabalho
->
anexoDecisaoCONSU
))
{
Storage
::
delete
(
$trabalho
->
anexoDecisaoCONSU
);
Storage
::
delete
(
$trabalho
->
anexoDecisaoCONSU
);
}
}
...
...
app/Http/Requests/UpdateTrabalho.php
View file @
7081d13f
...
@@ -66,28 +66,29 @@ class UpdateTrabalho extends FormRequest
...
@@ -66,28 +66,29 @@ class UpdateTrabalho extends FormRequest
$rules
=
[];
$rules
=
[];
return
$rules
;
return
$rules
;
}
else
{
}
else
{
$rules
=
[
'editalId'
=>
[
'required'
,
'string'
],
$rules
=
[];
'marcado.*'
=>
[
'required'
],
if
(
$evento
->
tipo
!=
"PIBEX"
){
'titulo'
=>
[
'required'
,
'string'
],
$rules
[
'anexoPlanilhaPontuacao'
]
=
[
'required'
];
'grande_area_id'
=>
[
'required'
,
'string'
],
$rules
[
'anexoLattesCoordenador'
]
=
[
'required'
,
'mimes:pdf'
];
'area_id'
=>
[
'required'
,
'string'
],
$rules
[
'anexoGrupoPesquisa'
]
=
[
'required'
,
'mimes:pdf'
];
'linkLattesEstudante'
=>
[
'required'
,
'string'
],
$rules
[
'anexoAutorizacaoComiteEtica'
]
=
[
Rule
::
requiredIf
(
$this
->
justificativaAutorizacaoEtica
==
null
)];
'pontuacaoPlanilha'
=>
[
'required'
,
'string'
],
$rules
[
'justificativaAutorizacaoEtica'
]
=
[
Rule
::
requiredIf
(
$this
->
anexoAutorizacaoComiteEtica
==
null
)];
'linkGrupoPesquisa'
=>
[
'required'
,
'string'
],
$rules
[
'pontuacaoPlanilha'
]
=
[
'required'
,
'string'
];
'anexoProjeto'
=>
[[
Rule
::
requiredIf
(
!
$this
->
has
(
'rascunho'
)
&&
$projeto
->
anexoProjeto
==
null
)],
'mimes:pdf'
],
$rules
[
'linkGrupoPesquisa'
]
=
[
'required'
,
'string'
];
'anexoDecisaoCONSU'
=>
[
Rule
::
requiredIf
(
$evento
->
consu
&&
$projeto
->
anexoDecisaoCONSU
==
null
),
'mimes:pdf'
],
}
'anexoPlanilhaPontuacao'
=>
[[
Rule
::
requiredIf
(
!
$this
->
has
(
'rascunho'
)
&&
$projeto
->
anexoPlanilhaPontuacao
==
null
)]],
$rules
[
'editalId'
]
=
[
'required'
,
'string'
];
'anexoLattesCoordenador'
=>
[[
Rule
::
requiredIf
(
!
$this
->
has
(
'rascunho'
)
&&
$projeto
->
anexoLattesCoordenador
==
null
)],
'mimes:pdf'
],
$rules
[
'marcado.*'
]
=
[
'required'
];
'anexoGrupoPesquisa'
=>
[[
Rule
::
requiredIf
(
!
$this
->
has
(
'rascunho'
)
&&
$projeto
->
anexoGrupoPesquisa
==
null
)],
'mimes:pdf'
],
$rules
[
'titulo'
]
=
[
'required'
,
'string'
];
'anexoAutorizacaoComiteEtica'
=>
[
$rules
[
'grande_area_id'
]
=
[
'required'
,
'string'
];
Rule
::
requiredIf
((
!
$this
->
has
(
'rascunho'
)
&&
$projeto
->
justificativaAutorizacaoEtica
==
null
&&
$projeto
->
anexoAutorizacaoComiteEtica
==
null
)
)
$rules
[
'area_id'
]
=
[
'required'
,
'string'
];
],
'justificativaAutorizacaoEtica'
=>
[
$rules
[
'linkLattesEstudante'
]
=
[
'required'
,
'string'
];
Rule
::
requiredIf
((
!
$this
->
has
(
'rascunho'
)
&&
$projeto
->
anexoAutorizacaoComiteEtica
==
null
&&
$projeto
->
justificativaAutorizacaoEtica
==
null
))
],
$rules
[
'anexoProjeto'
]
=
[
'required'
,
'mimes:pdf'
];
];
$rules
[
'anexoDecisaoCONSU'
]
=
[
Rule
::
requiredIf
(
$evento
->
consu
),
'mimes:pdf'
];
return
$rules
;
return
$rules
;
}
}
}
}
...
...
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