From f768735792499751666a3ce4eb9db96dc708d38d Mon Sep 17 00:00:00 2001 From: Yuri Resende <yresendeo@gmail.com> Date: Wed, 19 Apr 2023 22:12:24 -0300 Subject: [PATCH] =?UTF-8?q?Atualizando=20a=20edi=C3=A7=C3=A3o=20de=20subms?= =?UTF-8?q?=C3=A3o=20de=20projetos=20para=20editas=20de=20fluxo=20cont?= =?UTF-8?q?=C3=ADnuo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Http/Requests/UpdateTrabalho.php | 9 +- .../views/evento/formulario/anexos.blade.php | 6 +- .../views/evento/formulario/projeto.blade.php | 6 +- .../evento/formulario/proponente.blade.php | 4 +- .../projeto/editaFormulario/anexos.blade.php | 260 ++++++++++-------- .../projeto/editaFormulario/projeto.blade.php | 44 +-- .../editaFormulario/proponente.blade.php | 7 +- 7 files changed, 183 insertions(+), 153 deletions(-) diff --git a/app/Http/Requests/UpdateTrabalho.php b/app/Http/Requests/UpdateTrabalho.php index 83534ac..fd4bc18 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 745fe4c..af6d3bc 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") - <div class="form-group col-md-6" style="margin-top: 10px"> + <div class="form-group col-md-8" style="margin-top: 10px"> <label for="anexo_SIPAC" class="col-form-label font-tam" style="font-weight: bold">{{ __('Processo SIPAC: ') }}<span style="color: red; font-weight:bold">*</span></label> - <input type="file" class="input-group-text" name="anexo_SIPAC" placeholder="PDF do processo SIPAC" accept=".pdf" /> + <input type="file" class="input-group-text" name="anexo_SIPAC" placeholder="PDF do processo SIPAC" accept=".pdf" /> + <span>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.</span> @error('anexo_SIPAC') <span class="invalid-feedback" role="alert" style="overflow: visible; display:block"> <strong>{{ $message }}</strong> diff --git a/resources/views/evento/formulario/projeto.blade.php b/resources/views/evento/formulario/projeto.blade.php index ba12b6c..358302c 100755 --- a/resources/views/evento/formulario/projeto.blade.php +++ b/resources/views/evento/formulario/projeto.blade.php @@ -4,13 +4,15 @@ <div class="card-body" style="padding-top: 0.2rem;"> <div class="container"> <div class="form-row mt-3"> - <div class="col-md-12"><h5 style="color: #234B8B; font-weight: bold">Informações do Projeto</h5></div> + + <div class="col-md-12"><h5 style="color: #234B8B; font-weight: bold">@if($edital->tipo == 'CONTINUO')Informações da Atividade de Extensão: @else Informações do Projeto @endif</h5></div> </div> <hr style="border-top: 1px solid#1492E6"> <div class="row"> <div class="form-group col-md-12" style="margin-top: 10px"> - <label for="titulo" class="col-form-label" style="font-weight: bold">{{ __('Nome do Projeto') }} <span style="color: red; font-weight:bold">*</span></label> + <label for="titulo" class="col-form-label" style="font-weight: bold">@if($edital->tipo == 'CONTINUO'){{__('Nome da Atividade de Extensão')}} + @else{{ __('Nome do Projeto') }}@endif <span style="color: red; font-weight:bold">*</span></label> <input id="titulo" type="text" class="form-control @error('titulo') is-invalid @enderror" name="titulo" placeholder="Digite o nome do projeto" value="{{old('titulo')}}" autocomplete="titulo" maxlength="255" > @error('titulo') diff --git a/resources/views/evento/formulario/proponente.blade.php b/resources/views/evento/formulario/proponente.blade.php index 9a22244..5e0a16c 100755 --- a/resources/views/evento/formulario/proponente.blade.php +++ b/resources/views/evento/formulario/proponente.blade.php @@ -34,7 +34,7 @@ @enderror </div> - @if($edital->tipo != "PIBEX") + @if($edital->tipo != "PIBEX" && $edital->tipo !='CONTINUO') <div class="col-md-2"> <br> <label for="lattes" class="col-form-label font-tam" style="font-weight: bold">{{ __('Grupo de Pesquisa: ') }}<span style="color: red; font-weight:bold">*</span></label> @@ -51,7 +51,7 @@ </div> @endif - @if($edital->tipo != "PIBEX") + @if($edital->tipo != "PIBEX" && $edital->tipo !='CONTINUO') <div class="col-md-3"> <br> <label for="lattes" class="col-form-label font-tam" style="font-weight: bold">{{ __('Valor da Planilha de Pontuação: ') }}<span style="color: red; font-weight:bold">*</span></label> diff --git a/resources/views/projeto/editaFormulario/anexos.blade.php b/resources/views/projeto/editaFormulario/anexos.blade.php index 7b35ec3..532d76d 100755 --- a/resources/views/projeto/editaFormulario/anexos.blade.php +++ b/resources/views/projeto/editaFormulario/anexos.blade.php @@ -12,169 +12,189 @@ <div class="row justify-content-start"> {{-- Arquivo --}} - <div class="form-group col-md-6"> - <label for="anexoProjeto" class="col-form-label font-tam" style="font-weight: bold">{{ __('Projeto: ') }} </label> - @if($projeto->anexoProjeto) - <a href="{{ route('baixar.anexo.projeto', ['id' => $projeto->id])}}"><i class="fas fa-file-pdf fa-2x"></i></a> - @else - <p><i class="fas fa-times-circle fa-2x"></i></p> - @endif - <input type="file" class="input-group-text" name="anexoProjeto" placeholder="nomeProjeto" accept="application/pdf" /> - @error('anexoProjeto') - <span class="invalid-feedback" role="alert" style="overflow: visible; display:block"> - <strong>{{ $message }}</strong> - </span> - @enderror - - </div> - - @if($edital->tipo != "PIBEX") - <div class="form-group col-md-6" style="margin-top: 10px"> - <label for="anexoLatterCoordenador" class="col-form-label font-tam" style="font-weight: bold">{{ __('Lattes do Coordenador: ') }}</label> - @if($projeto->anexoLattesCoordenador) - <a href="{{ route('baixar.anexo.lattes', ['id' => $projeto->id]) }}"><i class="fas fa-file-pdf fa-2x"></i></a> + @if($edital->tipo == "CONTINUO") + <div class="form-group col-md-8" style="margin-top: 10px"> + <label for="anexo_SIPAC" class="col-form-label font-tam" style="font-weight: bold">{{ __('Processo SIPAC: ') }}<span style="color: red; font-weight:bold">*</span></label> + @if($projeto->anexo_SIPAC) + <a href="{{ route('baixar.anexo.SIPAC', ['id' => $projeto->id])}}"><i class="fas fa-file-pdf fa-2x"></i></a> @else - <i class="fas fa-times-circle fa-2x"></i> + <p><i class="fas fa-times-circle fa-2x"></i></p> @endif - <input type="file" class="input-group-text" name="anexoLattesCoordenador" placeholder="anexoPlanoTrabalho" accept=".pdf" /> - @error('anexoLattesCoordenador') + <input type="file" class="input-group-text" name="anexo_SIPAC" placeholder="PDF do processo SIPAC" accept=".pdf" /> + <span>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.</span> + @error('anexo_SIPAC') <span class="invalid-feedback" role="alert" style="overflow: visible; display:block"> <strong>{{ $message }}</strong> </span> @enderror </div> - @endif - - - @if($edital->tipo != "PIBEX") - <div class="form-group col-md-6"> - <label for="anexoPlanilhaPontuacao" class="col-form-label font-tam" style="font-weight: bold">{{ __('Planilha de Pontuação: ') }}</label> - @if($projeto->anexoPlanilhaPontuacao) - <a href="{{ route('baixar.anexo.planilha', ['id' => $projeto->id]) }}"><i class="fas fa-file-pdf fa-2x"></i></a> - @else - <i class="fas fa-times-circle fa-2x"></i> - @endif - <input type="file" class="input-group-text" name="anexoPlanilhaPontuacao" placeholder="anexoPlanilhaPontuacao" accept=".xlsx, .xls, .ods" /> - @error('anexoPlanilhaPontuacao') - <span class="invalid-feedback" role="alert" style="overflow: visible; display:block"> - <strong>{{ $message }}</strong> - </span> - @enderror - - </div> - @endif - - @if($edital->consu) - <div class="form-group col-md-6"> - <label title="Decisão da Câmara ou Conselho Pertinente" for="anexoCONSU" class="col-form-label font-tam" style="font-weight: bold">{{ __('Decisão da Câmara ou Conselho Pertinente: ') }}<span style="color: red; font-weight:bold">*</span></label> - @if($projeto->anexoDecisaoCONSU) - <a href="{{ route('baixar.anexo.consu', ['id' => $projeto->id]) }}"><i class="fas fa-file-pdf fa-2x"></i></a> - @else - <i class="fas fa-times-circle fa-2x"></i> - @endif - <input type="file" class="input-group-text" name="anexoDecisaoCONSU" accept=".pdf" /> - @error('anexoDecisaoCONSU') - <span class="invalid-feedback" role="alert" style="overflow: visible; display:block"> - <strong>{{ $message }}</strong> - </span> - @enderror - </div> @else + <div class="form-group col-md-6"> - <label title="Decisão da Câmara ou Conselho Pertinente" for="anexoCONSU" class="col-form-label font-tam" style="font-weight: bold">{{ __('Decisão da Câmara ou Conselho Pertinente: ') }}</label> - @if($projeto->anexoDecisaoCONSU) - <a href="{{ route('baixar.anexo.consu', ['id' => $projeto->id]) }}"><i class="fas fa-file-pdf fa-2x"></i></a> + <label for="anexoProjeto" class="col-form-label font-tam" style="font-weight: bold">{{ __('Projeto: ') }} </label> + @if($projeto->anexoProjeto) + <a href="{{ route('baixar.anexo.projeto', ['id' => $projeto->id])}}"><i class="fas fa-file-pdf fa-2x"></i></a> @else - <i class="fas fa-times-circle fa-2x"></i> + <p><i class="fas fa-times-circle fa-2x"></i></p> @endif - <input type="file" class="input-group-text" name="anexoDecisaoCONSU" accept=".pdf" /> - @error('anexoDecisaoCONSU') + <input type="file" class="input-group-text" name="anexoProjeto" placeholder="nomeProjeto" accept="application/pdf" /> + @error('anexoProjeto') <span class="invalid-feedback" role="alert" style="overflow: visible; display:block"> <strong>{{ $message }}</strong> </span> @enderror + </div> - @endif - @if($edital->tipo != "PIBEX") - <div class="form-group col-md-6" style="margin-top: 10px"> - <label for="nomeTrabalho" class="col-form-label font-tam" style="font-weight: bold">{{ __('Grupo de Pesquisa: ') }}</label> - @if($projeto->anexoGrupoPesquisa) - <a href="{{ route('baixar.anexoGrupoPesquisa', ['id' => $projeto->id]) }}"><i class="fas fa-file-pdf fa-2x"></i></a> - @else + @if($edital->tipo != "PIBEX") + <div class="form-group col-md-6" style="margin-top: 10px"> + <label for="anexoLatterCoordenador" class="col-form-label font-tam" style="font-weight: bold">{{ __('Lattes do Coordenador: ') }}</label> + @if($projeto->anexoLattesCoordenador) + <a href="{{ route('baixar.anexo.lattes', ['id' => $projeto->id]) }}"><i class="fas fa-file-pdf fa-2x"></i></a> + @else <i class="fas fa-times-circle fa-2x"></i> - @endif - <input type="file" class="input-group-text" name="anexoGrupoPesquisa" placeholder="Anexo do Grupo de Pesquisa" accept="application/pdf" /> - @error('anexoGrupoPesquisa') - <span class="invalid-feedback" role="alert" style="overflow: visible; display:block"> + @endif + <input type="file" class="input-group-text" name="anexoLattesCoordenador" placeholder="anexoPlanoTrabalho" accept=".pdf" /> + @error('anexoLattesCoordenador') + <span class="invalid-feedback" role="alert" style="overflow: visible; display:block"> <strong>{{ $message }}</strong> </span> - @enderror - </div> - @endif + @enderror + </div> + @endif @if($edital->tipo != "PIBEX") - <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">{{ __('Possui autorizações especiais?') }} <span style="color: red; font-weight:bold">*</span></label> - <input type="radio" @if($projeto->anexoAutorizacaoComiteEtica != null) checked @endif id="radioSim" onchange="displayAutorizacoesEspeciais('sim')" name="autorizacaoFlag" value="sim"> - <label for="radioSim" style="margin-right: 5px">Sim</label> - <input type="radio" @if($projeto->anexoAutorizacaoComiteEtica == null) checked @endif id="radioNao" onchange="displayAutorizacoesEspeciais('nao')" name="autorizacaoFlag" value="nao"> - <label for="radioNao" style="margin-right: 5px">Não</label><br> - <span id="idAvisoAutorizacaoEspecial" class="invalid-feedback" role="alert" style="overflow: visible; display:none"> - <strong>Selecione a autorização e envie o arquivo!</strong> - </span> - - <div class="form-group" id="displaySim" style="display: block; margin-top:-1rem"> - <label for="nomeTrabalho" class="col-form-label font-tam" style="font-weight: bold;font-size: 13px">{{ __('Sim, declaro que necessito de autorizações especiais') }}</label> - @if($projeto->anexoAutorizacaoComiteEtica ) - - <a href="{{ route('baixar.anexo.comite', ['id' => $projeto->id]) }}"><i class="fas fa-file-pdf fa-2x"></i></a> - + <div class="form-group col-md-6"> + <label for="anexoPlanilhaPontuacao" class="col-form-label font-tam" style="font-weight: bold">{{ __('Planilha de Pontuação: ') }}</label> + @if($projeto->anexoPlanilhaPontuacao) + <a href="{{ route('baixar.anexo.planilha', ['id' => $projeto->id]) }}"><i class="fas fa-file-pdf fa-2x"></i></a> @else <i class="fas fa-times-circle fa-2x"></i> @endif - <input type="file" class="input-group-text" name="anexoAutorizacaoComiteEtica" placeholder="anexoComiteEtica" accept=".pdf" /> - @error('anexoAutorizacaoComiteEtica') + <input type="file" class="input-group-text" name="anexoPlanilhaPontuacao" placeholder="anexoPlanilhaPontuacao" accept=".xlsx, .xls, .ods" /> + @error('anexoPlanilhaPontuacao') <span class="invalid-feedback" role="alert" style="overflow: visible; display:block"> <strong>{{ $message }}</strong> </span> @enderror + </div> + @endif - <div class="form-group" id="displayNao" style="display: none; margin-top:-1rem"> - <label for="nomeTrabalho" class="col-form-label font-tam" style="font-weight: bold">{{ __('Declaração de que não necessito de autorização especiais ') }}</label> - @if($projeto->justificativaAutorizacaoEtica) - <a href="{{ route('baixar.anexo.justificativa', ['id' => $projeto->id]) }}"><i class="fas fa-file-pdf fa-2x"></i></a> + @if($edital->consu) + <div class="form-group col-md-6"> + <label title="Decisão da Câmara ou Conselho Pertinente" for="anexoCONSU" class="col-form-label font-tam" style="font-weight: bold">{{ __('Decisão da Câmara ou Conselho Pertinente: ') }}<span style="color: red; font-weight:bold">*</span></label> + @if($projeto->anexoDecisaoCONSU) + <a href="{{ route('baixar.anexo.consu', ['id' => $projeto->id]) }}"><i class="fas fa-file-pdf fa-2x"></i></a> @else <i class="fas fa-times-circle fa-2x"></i> @endif - <input type="file" class="input-group-text" name="justificativaAutorizacaoEtica" placeholder="justificativaAutorizacaoEtica" accept=".pdf" /> - @error('justificativaAutorizacaoEtica') + <input type="file" class="input-group-text" name="anexoDecisaoCONSU" accept=".pdf" /> + @error('anexoDecisaoCONSU') + <span class="invalid-feedback" role="alert" style="overflow: visible; display:block"> + <strong>{{ $message }}</strong> + </span> + @enderror + </div> + @else + <div class="form-group col-md-6"> + <label title="Decisão da Câmara ou Conselho Pertinente" for="anexoCONSU" class="col-form-label font-tam" style="font-weight: bold">{{ __('Decisão da Câmara ou Conselho Pertinente: ') }}</label> + @if($projeto->anexoDecisaoCONSU) + <a href="{{ route('baixar.anexo.consu', ['id' => $projeto->id]) }}"><i class="fas fa-file-pdf fa-2x"></i></a> + @else + <i class="fas fa-times-circle fa-2x"></i> + @endif + <input type="file" class="input-group-text" name="anexoDecisaoCONSU" accept=".pdf" /> + @error('anexoDecisaoCONSU') <span class="invalid-feedback" role="alert" style="overflow: visible; display:block"> <strong>{{ $message }}</strong> </span> @enderror </div> - </div> @endif - @if($edital->nome_docExtra != null) - <div class="form-group col-md-6" style="margin-top: 10px"> - <label 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> - @if($projeto->anexo_docExtra != null) - <a href="{{ route('baixar.anexo.docExtra', ['id' => $projeto->id]) }}"><i class="fas fa-file-pdf fa-2x"></i></a> - @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"/> - @error('anexo_docExtra') - <span class="invalid-feedback" role="alert" style="overflow: visible; display:block"> - <strong>{{ $message }}</strong> - </span> - @enderror + + @if($edital->tipo != "PIBEX") + <div class="form-group col-md-6" style="margin-top: 10px"> + <label for="nomeTrabalho" class="col-form-label font-tam" style="font-weight: bold">{{ __('Grupo de Pesquisa: ') }}</label> + @if($projeto->anexoGrupoPesquisa) + <a href="{{ route('baixar.anexoGrupoPesquisa', ['id' => $projeto->id]) }}"><i class="fas fa-file-pdf fa-2x"></i></a> + @else + <i class="fas fa-times-circle fa-2x"></i> + @endif + <input type="file" class="input-group-text" name="anexoGrupoPesquisa" placeholder="Anexo do Grupo de Pesquisa" accept="application/pdf" /> + @error('anexoGrupoPesquisa') + <span class="invalid-feedback" role="alert" style="overflow: visible; display:block"> + <strong>{{ $message }}</strong> + </span> + @enderror + </div> + @endif + + + @if($edital->tipo != "PIBEX") + <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">{{ __('Possui autorizações especiais?') }} <span style="color: red; font-weight:bold">*</span></label> + <input type="radio" @if($projeto->anexoAutorizacaoComiteEtica != null) checked @endif id="radioSim" onchange="displayAutorizacoesEspeciais('sim')" name="autorizacaoFlag" value="sim"> + <label for="radioSim" style="margin-right: 5px">Sim</label> + <input type="radio" @if($projeto->anexoAutorizacaoComiteEtica == null) checked @endif id="radioNao" onchange="displayAutorizacoesEspeciais('nao')" name="autorizacaoFlag" value="nao"> + <label for="radioNao" style="margin-right: 5px">Não</label><br> + <span id="idAvisoAutorizacaoEspecial" class="invalid-feedback" role="alert" style="overflow: visible; display:none"> + <strong>Selecione a autorização e envie o arquivo!</strong> + </span> + + <div class="form-group" id="displaySim" style="display: block; margin-top:-1rem"> + <label for="nomeTrabalho" class="col-form-label font-tam" style="font-weight: bold;font-size: 13px">{{ __('Sim, declaro que necessito de autorizações especiais') }}</label> + @if($projeto->anexoAutorizacaoComiteEtica ) + + <a href="{{ route('baixar.anexo.comite', ['id' => $projeto->id]) }}"><i class="fas fa-file-pdf fa-2x"></i></a> + + @else + <i class="fas fa-times-circle fa-2x"></i> + @endif + <input type="file" class="input-group-text" name="anexoAutorizacaoComiteEtica" placeholder="anexoComiteEtica" accept=".pdf" /> + @error('anexoAutorizacaoComiteEtica') + <span class="invalid-feedback" role="alert" style="overflow: visible; display:block"> + <strong>{{ $message }}</strong> + </span> + @enderror + </div> + + <div class="form-group" id="displayNao" style="display: none; margin-top:-1rem"> + <label for="nomeTrabalho" class="col-form-label font-tam" style="font-weight: bold">{{ __('Declaração de que não necessito de autorização especiais ') }}</label> + @if($projeto->justificativaAutorizacaoEtica) + <a href="{{ route('baixar.anexo.justificativa', ['id' => $projeto->id]) }}"><i class="fas fa-file-pdf fa-2x"></i></a> + @else + <i class="fas fa-times-circle fa-2x"></i> + @endif + <input type="file" class="input-group-text" name="justificativaAutorizacaoEtica" placeholder="justificativaAutorizacaoEtica" accept=".pdf" /> + @error('justificativaAutorizacaoEtica') + <span class="invalid-feedback" role="alert" style="overflow: visible; display:block"> + <strong>{{ $message }}</strong> + </span> + @enderror </div> + </div> @endif + @if($edital->nome_docExtra != null) + <div class="form-group col-md-6" style="margin-top: 10px"> + <label 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> + @if($projeto->anexo_docExtra != null) + <a href="{{ route('baixar.anexo.docExtra', ['id' => $projeto->id]) }}"><i class="fas fa-file-pdf fa-2x"></i></a> + @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"/> + @error('anexo_docExtra') + <span class="invalid-feedback" role="alert" style="overflow: visible; display:block"> + <strong>{{ $message }}</strong> + </span> + @enderror + </div> + @endif + @endif </div> </div> </div> diff --git a/resources/views/projeto/editaFormulario/projeto.blade.php b/resources/views/projeto/editaFormulario/projeto.blade.php index 42abc40..4b0ab11 100755 --- a/resources/views/projeto/editaFormulario/projeto.blade.php +++ b/resources/views/projeto/editaFormulario/projeto.blade.php @@ -4,13 +4,14 @@ <div class="card-body" style="padding-top: 0.2rem;"> <div class="container"> <div class="form-row mt-3"> - <div class="col-md-12"><h5 style="color: #234B8B; font-weight: bold">Informações do Projeto</h5></div> + <div class="col-md-12"><h5 style="color: #234B8B; font-weight: bold">@if($edital->tipo == 'CONTINUO')Informações da Atividade de Extensão: @else Informações do Projeto @endif</h5></div> </div> <hr style="border-top: 1px solid#1492E6"> <div class="row"> <div class="form-group col-md-12" style="margin-top: 10px"> - <label for="titulo" class="col-form-label" style="font-weight: bold">{{ __('Nome do Projeto') }} <span style="color: red; font-weight:bold">*</span></label> + <label for="titulo" class="col-form-label" style="font-weight: bold">@if($edital->tipo == 'CONTINUO'){{__('Nome da Atividade de Extensão')}} + @else{{ __('Nome do Projeto') }}@endif <span style="color: red; font-weight:bold">*</span></label> <input id="titulo" type="text" class="form-control @error('titulo') is-invalid @enderror" name="titulo" placeholder="Digite o nome do projeto" value="{{old('titulo') ?? $projeto->titulo}}" autocomplete="titulo" maxlength="255" > <span style="color: red; font-size: 12px" id="caracsRestantestitulo"> </span> @@ -88,25 +89,28 @@ </div> <div class="row col-md-12"> - <div class="form-group col-md-12"> - <label for="ods" class="col-form-label" style="font-weight: bold">{{ __('Objetivo de Densenvolvimento Sustentável') }} <span style="color: red; font-weight:bold">*</span></label><br> - <div class="row col-md-12"> - @foreach($listaOds as $ods) - <div class="col-md-6"> - <input type="checkbox" name="ods[]" id="ods{{$ods->id}}" value="{{$ods->id}}" @if((empty(old('ods')) && $projeto->ods->contains($ods->id)) || (!empty(old('ods')) && in_array($ods->id, old('ods')))) checked @endif > - <label class="form-check-label" for="ods{{$ods->id}}"> - {{ $ods->nome }} - </label> - </div> - @endforeach - </div> - @error('ods') - <span class="invalid-feedback" role="alert" style="overflow: visible; display:block"> - <strong>{{ $message }}</strong> - </span> - @enderror + <div class="form-group col-md-12"> + <label for="ods" class="col-form-label" style="font-weight: bold">{{ __('Objetivo de Densenvolvimento Sustentável') }} <span style="color: red; font-weight:bold">*</span></label> + <span>É possÃvel selecionar um ou mais ODS. Para outras informações, + <a href="https://brasil.un.org/pt-br/sdgs" rel='external' target='_blank'> acesse o link.</a></span><br> + + <div class="row col-md-12"> + @foreach($listaOds as $ods) + <div class="col-md-6"> + <input type="checkbox" name="ods[]" id="ods{{$ods->id}}" value="{{$ods->id}}" @if((empty(old('ods')) && $projeto->ods->contains($ods->id)) || (!empty(old('ods')) && in_array($ods->id, old('ods')))) checked @endif > + <label class="form-check-label" for="ods{{$ods->id}}"> + {{ $ods->nome }} + </label> </div> - </div> + @endforeach + </div> + @error('ods') + <span class="invalid-feedback" role="alert" style="overflow: visible; display:block"> + <strong>{{ $message }}</strong> + </span> + @enderror + </div> + </div> @endif </div> diff --git a/resources/views/projeto/editaFormulario/proponente.blade.php b/resources/views/projeto/editaFormulario/proponente.blade.php index 1fdb146..7bee067 100755 --- a/resources/views/projeto/editaFormulario/proponente.blade.php +++ b/resources/views/projeto/editaFormulario/proponente.blade.php @@ -40,7 +40,7 @@ @enderror </div> - @if($edital->tipo != "PIBEX") + @if($edital->tipo != "PIBEX" && $edital->tipo !='CONTINUO') <div class="col-md-2"> <br> <label for="lattes" class="col-form-label font-tam" style="font-weight: bold">{{ __('Grupo de Pesquisa: ') }}</label> @@ -57,7 +57,7 @@ </div> @endif - @if($edital->tipo != "PIBEX") + @if($edital->tipo != "PIBEX" && $edital->tipo !='CONTINUO') <div class="col-md-3"> <br> <label for="lattes" class="col-form-label font-tam" style="font-weight: bold">{{ __('Valor da Planilha de Pontuação: ') }}</label> @@ -139,6 +139,7 @@ </div> @endif + @if($edital->tipo !='CONTINUO') <div class="col-md-2"> <br> <label for="conflitosInteresse" class="col-form-label font-tam" @@ -154,7 +155,7 @@ </span> @enderror </div> - + @endif </div> </div> </div> -- GitLab