diff --git a/app/Http/Requests/UpdateTrabalho.php b/app/Http/Requests/UpdateTrabalho.php index 83534ac6bce9723515cf2c87259bd6d3f522437d..fd4bc18819a3e8ce06fba3d513d17229ecb5d71b 100755 --- a/app/Http/Requests/UpdateTrabalho.php +++ b/app/Http/Requests/UpdateTrabalho.php @@ -83,7 +83,7 @@ class UpdateTrabalho extends FormRequest }else{ //$rules = []; - if($evento->tipo!="PIBEX"){ + if($evento->tipo!="PIBEX" && $evento->tipo!="CONTINUO"){ $rules['anexoPlanilhaPontuacao'] = [Rule::requiredIf($projeto->anexoPlanilhaPontuacao == null)]; $rules['anexoLattesCoordenador'] = [Rule::requiredIf($projeto->anexoLattesCoordenador == null), 'mimes:pdf']; $rules['anexoGrupoPesquisa'] = [Rule::requiredIf($projeto->anexoGrupoPesquisa == null), 'mimes:pdf']; @@ -109,9 +109,10 @@ class UpdateTrabalho extends FormRequest } $rules['linkLattesEstudante'] = ['required', 'string']; - - $rules['anexoProjeto'] = [Rule::requiredIf($projeto->anexoProjeto == null), 'mimes:pdf']; - $rules['anexoDecisaoCONSU'] = [Rule::requiredIf($evento->consu && $projeto->anexoDecisaoCONSU == null), 'mimes:pdf']; + if($evento->tipo!="CONTINUO"){ + $rules['anexoProjeto'] = [Rule::requiredIf($projeto->anexoProjeto == null), 'mimes:pdf']; + $rules['anexoDecisaoCONSU'] = [Rule::requiredIf($evento->consu && $projeto->anexoDecisaoCONSU == null), 'mimes:pdf']; + } return $rules; } diff --git a/resources/views/evento/formulario/anexos.blade.php b/resources/views/evento/formulario/anexos.blade.php index 745fe4c44e45c725b9691be07a921b2c0bc8660b..af6d3bcac295056d4253905f9df9605428a09062 100755 --- a/resources/views/evento/formulario/anexos.blade.php +++ b/resources/views/evento/formulario/anexos.blade.php @@ -12,9 +12,11 @@ {{-- Arquivo --}} @if($edital->tipo == "CONTINUO") -
+
- + + Processo completo registrado no SIPAC com o parecer da Comissão de Extensão e Cultura, + a decisão de aprovação na Câmara de Extensão e Cultura e a proposta de Atividade de Extensão. @error('anexo_SIPAC') {{ $message }} diff --git a/resources/views/evento/formulario/projeto.blade.php b/resources/views/evento/formulario/projeto.blade.php index ba12b6c1c290ed9013564ac5911d989808ec0791..358302c7dc6f33624e42412e233c3899c1d82069 100755 --- a/resources/views/evento/formulario/projeto.blade.php +++ b/resources/views/evento/formulario/projeto.blade.php @@ -4,13 +4,15 @@
-
Informações do Projeto
+ +
@if($edital->tipo == 'CONTINUO')Informações da Atividade de Extensão: @else Informações do Projeto @endif

- + @error('titulo') diff --git a/resources/views/evento/formulario/proponente.blade.php b/resources/views/evento/formulario/proponente.blade.php index 9a222441f7e922e5eebee9e289bcf8531a172ad8..5e0a16ce73e938c12a60b355b43780b9eadfa53c 100755 --- a/resources/views/evento/formulario/proponente.blade.php +++ b/resources/views/evento/formulario/proponente.blade.php @@ -34,7 +34,7 @@ @enderror
- @if($edital->tipo != "PIBEX") + @if($edital->tipo != "PIBEX" && $edital->tipo !='CONTINUO')

@@ -51,7 +51,7 @@
@endif - @if($edital->tipo != "PIBEX") + @if($edital->tipo != "PIBEX" && $edital->tipo !='CONTINUO')

diff --git a/resources/views/projeto/editaFormulario/anexos.blade.php b/resources/views/projeto/editaFormulario/anexos.blade.php index 7b35ec3e21741b66690f5c79acf1a6dae5329ff7..532d76dac8129191a08399152786b1411862487b 100755 --- a/resources/views/projeto/editaFormulario/anexos.blade.php +++ b/resources/views/projeto/editaFormulario/anexos.blade.php @@ -12,169 +12,189 @@
{{-- Arquivo --}} -
- - @if($projeto->anexoProjeto) - - @else -

- @endif - - @error('anexoProjeto') - - {{ $message }} - - @enderror - -
- - @if($edital->tipo != "PIBEX") -
- - @if($projeto->anexoLattesCoordenador) - + @if($edital->tipo == "CONTINUO") +
+ + @if($projeto->anexo_SIPAC) + @else - +

@endif - - @error('anexoLattesCoordenador') + + Processo completo registrado no SIPAC com o parecer da Comissão de Extensão e Cultura, + a decisão de aprovação na Câmara de Extensão e Cultura e a proposta de Atividade de Extensão. + @error('anexo_SIPAC') {{ $message }} @enderror
- @endif - - - @if($edital->tipo != "PIBEX") -
- - @if($projeto->anexoPlanilhaPontuacao) - - @else - - @endif - - @error('anexoPlanilhaPontuacao') - - {{ $message }} - - @enderror - -
- @endif - - @if($edital->consu) -
- - @if($projeto->anexoDecisaoCONSU) - - @else - - @endif - - @error('anexoDecisaoCONSU') - - {{ $message }} - - @enderror -
@else +
- - @if($projeto->anexoDecisaoCONSU) - + + @if($projeto->anexoProjeto) + @else - +

@endif - - @error('anexoDecisaoCONSU') + + @error('anexoProjeto') {{ $message }} @enderror +
- @endif - @if($edital->tipo != "PIBEX") -
- - @if($projeto->anexoGrupoPesquisa) - - @else + @if($edital->tipo != "PIBEX") +
+ + @if($projeto->anexoLattesCoordenador) + + @else - @endif - - @error('anexoGrupoPesquisa') - + @endif + + @error('anexoLattesCoordenador') + {{ $message }} - @enderror -
- @endif + @enderror +
+ @endif @if($edital->tipo != "PIBEX") -
- - - anexoAutorizacaoComiteEtica != null) checked @endif id="radioSim" onchange="displayAutorizacoesEspeciais('sim')" name="autorizacaoFlag" value="sim"> - - anexoAutorizacaoComiteEtica == null) checked @endif id="radioNao" onchange="displayAutorizacoesEspeciais('nao')" name="autorizacaoFlag" value="nao"> -
- - -
- - @if($projeto->anexoAutorizacaoComiteEtica ) - - - +
+ + @if($projeto->anexoPlanilhaPontuacao) + @else @endif - - @error('anexoAutorizacaoComiteEtica') + + @error('anexoPlanilhaPontuacao') {{ $message }} @enderror +
+ @endif - @endif - @if($edital->nome_docExtra != null) -
- - @if($projeto->anexo_docExtra != null) - - @else - - @endif - - @error('anexo_docExtra') - - {{ $message }} - - @enderror + + @if($edital->tipo != "PIBEX") +
+ + @if($projeto->anexoGrupoPesquisa) + + @else + + @endif + + @error('anexoGrupoPesquisa') + + {{ $message }} + + @enderror +
+ @endif + + + @if($edital->tipo != "PIBEX") +
+ + + anexoAutorizacaoComiteEtica != null) checked @endif id="radioSim" onchange="displayAutorizacoesEspeciais('sim')" name="autorizacaoFlag" value="sim"> + + anexoAutorizacaoComiteEtica == null) checked @endif id="radioNao" onchange="displayAutorizacoesEspeciais('nao')" name="autorizacaoFlag" value="nao"> +
+ + +
+ + @if($projeto->anexoAutorizacaoComiteEtica ) + + + + @else + + @endif + + @error('anexoAutorizacaoComiteEtica') + + {{ $message }} + + @enderror +
+ + +
@endif + @if($edital->nome_docExtra != null) +
+ + @if($projeto->anexo_docExtra != null) + + @else + + @endif + + @error('anexo_docExtra') + + {{ $message }} + + @enderror +
+ @endif + @endif
diff --git a/resources/views/projeto/editaFormulario/projeto.blade.php b/resources/views/projeto/editaFormulario/projeto.blade.php index 42abc404747c490918f8f40e86b2037794b23969..4b0ab113d0537868827a153d68020023ad6e0ddc 100755 --- a/resources/views/projeto/editaFormulario/projeto.blade.php +++ b/resources/views/projeto/editaFormulario/projeto.blade.php @@ -4,13 +4,14 @@
-
Informações do Projeto
+
@if($edital->tipo == 'CONTINUO')Informações da Atividade de Extensão: @else Informações do Projeto @endif

- + @@ -88,25 +89,28 @@
-
-
-
- @foreach($listaOds as $ods) -
- ods->contains($ods->id)) || (!empty(old('ods')) && in_array($ods->id, old('ods')))) checked @endif > - -
- @endforeach -
- @error('ods') - - {{ $message }} - - @enderror +
+ + É possível selecionar um ou mais ODS. Para outras informações, + acesse o link.
+ +
+ @foreach($listaOds as $ods) +
+ ods->contains($ods->id)) || (!empty(old('ods')) && in_array($ods->id, old('ods')))) checked @endif > +
-
+ @endforeach +
+ @error('ods') + + {{ $message }} + + @enderror +
+
@endif
diff --git a/resources/views/projeto/editaFormulario/proponente.blade.php b/resources/views/projeto/editaFormulario/proponente.blade.php index 1fdb146933e1eb5c194497be27fb8c508a8778b7..7bee067758bf8657817eb4d990e433f9bfb1d5e9 100755 --- a/resources/views/projeto/editaFormulario/proponente.blade.php +++ b/resources/views/projeto/editaFormulario/proponente.blade.php @@ -40,7 +40,7 @@ @enderror
- @if($edital->tipo != "PIBEX") + @if($edital->tipo != "PIBEX" && $edital->tipo !='CONTINUO')

@@ -57,7 +57,7 @@
@endif - @if($edital->tipo != "PIBEX") + @if($edital->tipo != "PIBEX" && $edital->tipo !='CONTINUO')

@@ -139,6 +139,7 @@
@endif + @if($edital->tipo !='CONTINUO')

- + @endif