Unverified Commit 00e71ab0 authored by Antônio Durval's avatar Antônio Durval Committed by GitHub
Browse files

Merge pull request #928 from antonioDurval/master

Adição do novo tipo de edital PIACEX
parents 56111263 0ded9715
...@@ -34,8 +34,8 @@ class Evento extends Model ...@@ -34,8 +34,8 @@ class Evento extends Model
'fim_recurso' => ['required', 'date'], 'fim_recurso' => ['required', 'date'],
'resultado_final' => ['required', 'date'], 'resultado_final' => ['required', 'date'],
'resultado_preliminar' => ['required', 'date'], 'resultado_preliminar' => ['required', 'date'],
'dt_inicioRelatorioParcial' => ['exclude_if:tipo,PIBEX', 'required', 'date'], 'dt_inicioRelatorioParcial' => ['exclude_if:tipo,PIBEX,PIACEX', 'required', 'date'],
'dt_fimRelatorioParcial' => ['exclude_if:tipo,PIBEX', 'required', 'date'], 'dt_fimRelatorioParcial' => ['exclude_if:tipo,PIBEX,PIACEX', 'required', 'date'],
'dt_inicioRelatorioFinal' => ['required', 'date'], 'dt_inicioRelatorioFinal' => ['required', 'date'],
'dt_fimRelatorioFinal' => ['required', 'date'], 'dt_fimRelatorioFinal' => ['required', 'date'],
'inicioProjeto' => ['required', 'date'], 'inicioProjeto' => ['required', 'date'],
...@@ -67,8 +67,8 @@ class Evento extends Model ...@@ -67,8 +67,8 @@ class Evento extends Model
'inicio_recurso' => ['required', 'date', 'after_or_equal:resultado_preliminar'], 'inicio_recurso' => ['required', 'date', 'after_or_equal:resultado_preliminar'],
'fim_recurso' => ['required', 'date', 'after:inicio_recurso'], 'fim_recurso' => ['required', 'date', 'after:inicio_recurso'],
'resultado_final' => ['required', 'date', 'after:fim_recurso'], 'resultado_final' => ['required', 'date', 'after:fim_recurso'],
'dt_inicioRelatorioParcial' => ['exclude_if:tipo,PIBEX', 'required', 'date', 'after:resultado_final'], 'dt_inicioRelatorioParcial' => ['exclude_if:tipo,PIBEX,PIACEX', 'required', 'date', 'after:resultado_final'],
'dt_fimRelatorioParcial' => ['exclude_if:tipo,PIBEX', 'required', 'date', 'after_or_equal:dt_inicioRelatorioParcial'], 'dt_fimRelatorioParcial' => ['exclude_if:tipo,PIBEX,PIACEX', 'required', 'date', 'after_or_equal:dt_inicioRelatorioParcial'],
'dt_inicioRelatorioFinal' => ['required', 'date', 'after:dt_fimRelatorioParcial'], 'dt_inicioRelatorioFinal' => ['required', 'date', 'after:dt_fimRelatorioParcial'],
'dt_fimRelatorioFinal' => ['required', 'date', 'after_or_equal:dt_inicioRelatorioFinal'], 'dt_fimRelatorioFinal' => ['required', 'date', 'after_or_equal:dt_inicioRelatorioFinal'],
'pdfEdital' => [('pdfEditalPreenchido'!=='sim'?'required':''), 'file', 'mimes:pdf', 'max:2048'], 'pdfEdital' => [('pdfEditalPreenchido'!=='sim'?'required':''), 'file', 'mimes:pdf', 'max:2048'],
...@@ -106,8 +106,8 @@ class Evento extends Model ...@@ -106,8 +106,8 @@ class Evento extends Model
'inicio_recurso' => ['required', 'date', 'after_or_equal:resultado_preliminar'], 'inicio_recurso' => ['required', 'date', 'after_or_equal:resultado_preliminar'],
'fim_recurso' => ['required', 'date', 'after:inicio_recurso'], 'fim_recurso' => ['required', 'date', 'after:inicio_recurso'],
'resultado_final' => ['required', 'date', 'after:fim_recurso'], 'resultado_final' => ['required', 'date', 'after:fim_recurso'],
'dt_inicioRelatorioParcial' => ['exclude_if:tipo,PIBEX', 'required', 'date', 'after:resultado_final'], 'dt_inicioRelatorioParcial' => ['exclude_if:tipo,PIBEX,PIACEX', 'required', 'date', 'after:resultado_final'],
'dt_fimRelatorioParcial' => ['exclude_if:tipo,PIBEX', 'required', 'date', 'after_or_equal:dt_inicioRelatorioParcial'], 'dt_fimRelatorioParcial' => ['exclude_if:tipo,PIBEX,PIACEX', 'required', 'date', 'after_or_equal:dt_inicioRelatorioParcial'],
'dt_inicioRelatorioFinal' => ['required', 'date', 'after:dt_fimRelatorioParcial'], 'dt_inicioRelatorioFinal' => ['required', 'date', 'after:dt_fimRelatorioParcial'],
'dt_fimRelatorioFinal' => ['required', 'date', 'after_or_equal:dt_inicioRelatorioFinal'], 'dt_fimRelatorioFinal' => ['required', 'date', 'after_or_equal:dt_inicioRelatorioFinal'],
'modeloDocumento.*' => ['file', 'mimes:zip,doc,docx,odt,pdf', 'max:2048'], 'modeloDocumento.*' => ['file', 'mimes:zip,doc,docx,odt,pdf', 'max:2048'],
......
...@@ -181,7 +181,8 @@ class EventoController extends Controller ...@@ -181,7 +181,8 @@ class EventoController extends Controller
$evento['fim_recurso'] = $request->fim_recurso; $evento['fim_recurso'] = $request->fim_recurso;
$evento['resultado_preliminar']= $request->resultado_preliminar; $evento['resultado_preliminar']= $request->resultado_preliminar;
$evento['resultado_final'] = $request->resultado_final; $evento['resultado_final'] = $request->resultado_final;
if($request->tipo != "PIBEX"){
if($request->tipo != "PIBEX" || $request->tipo != "PIACEX"){
$evento['dt_inicioRelatorioParcial'] = $request->dt_inicioRelatorioParcial; $evento['dt_inicioRelatorioParcial'] = $request->dt_inicioRelatorioParcial;
$evento['dt_fimRelatorioParcial'] = $request->dt_fimRelatorioParcial; $evento['dt_fimRelatorioParcial'] = $request->dt_fimRelatorioParcial;
} }
......
...@@ -1072,18 +1072,17 @@ class TrabalhoController extends Controller ...@@ -1072,18 +1072,17 @@ class TrabalhoController extends Controller
$data['instituicao'] = $request->outrainstituicao[$part]; $data['instituicao'] = $request->outrainstituicao[$part];
} }
$data['total_periodos'] = $request->total_periodos[$part];
if ($request->curso[$part] != "Outro") { if ($request->curso[$part] != "Outro") {
$data['curso'] = $request->curso[$part]; $data['curso'] = $request->curso[$part];
} else { } else {
$data['curso'] = $request->outrocurso[$part]; $data['curso'] = $request->outrocurso[$part];
} }
$data['turno'] = $request->turno[$part]; if($evento->tipo != "PIBEX" && $evento->tipo != "PIACEX") {
$data['periodo_atual'] = $request->periodo_atual[$part]; $data['turno'] = $request->turno[$part];
$data['ordem_prioridade'] = $request->ordem_prioridade[$part]; $data['periodo_atual'] = $request->periodo_atual[$part];
if($evento->tipo!="PIBEX") { $data['ordem_prioridade'] = $request->ordem_prioridade[$part];
$data['total_periodos'] = $request->total_periodos[$part];
$data['media_do_curso'] = $request->media_do_curso[$part]; $data['media_do_curso'] = $request->media_do_curso[$part];
} }
$data['nomePlanoTrabalho'] = $request->nomePlanoTrabalho[$part]; $data['nomePlanoTrabalho'] = $request->nomePlanoTrabalho[$part];
...@@ -1218,6 +1217,7 @@ class TrabalhoController extends Controller ...@@ -1218,6 +1217,7 @@ class TrabalhoController extends Controller
} catch (\Throwable $th) { } catch (\Throwable $th) {
DB::rollback(); DB::rollback();
return redirect(route('proponente.projetos'))->with(['mensagem' => $th->getMessage()]); return redirect(route('proponente.projetos'))->with(['mensagem' => $th->getMessage()]);
} }
...@@ -1347,7 +1347,7 @@ class TrabalhoController extends Controller ...@@ -1347,7 +1347,7 @@ class TrabalhoController extends Controller
DB::beginTransaction(); DB::beginTransaction();
if($evento->tipo=="PIBEX"){ if($evento->tipo=="PIBEX" || $evento->tipo=="PIACEX"){
$trabalho = Auth::user()->proponentes->trabalhos() $trabalho = Auth::user()->proponentes->trabalhos()
->create($request->except([ ->create($request->except([
'anexoProjeto', 'anexoDecisaoCONSU','modalidade','anexo_docExtra', 'anexo_SIPAC' 'anexoProjeto', 'anexoDecisaoCONSU','modalidade','anexo_docExtra', 'anexo_SIPAC'
...@@ -1413,7 +1413,7 @@ class TrabalhoController extends Controller ...@@ -1413,7 +1413,7 @@ class TrabalhoController extends Controller
} }
if($evento->tipo != "CONTINUO"){ if($evento->tipo != "CONTINUO"){
if($evento->tipo != "PIBEX") { if($evento->tipo != "PIBEX" && $evento->tipo != "PIACEX") {
$data['media_do_curso'] = $request->media_do_curso[$part]; $data['media_do_curso'] = $request->media_do_curso[$part];
} }
$data['nomePlanoTrabalho'] = $request->nomePlanoTrabalho[$part]; $data['nomePlanoTrabalho'] = $request->nomePlanoTrabalho[$part];
...@@ -1547,7 +1547,7 @@ class TrabalhoController extends Controller ...@@ -1547,7 +1547,7 @@ class TrabalhoController extends Controller
} }
} catch (\Throwable $th) { } catch (\Throwable $th) {
DB::rollback(); DB::rollback();
return redirect(route('proponente.projetos'))->with(['mensagem' => $th->getMessage()]); return redirect(route('proponente.projetos'))->withErrors(['mensagem' => 'Não foi possível realizar a submissão do Projeto!']);
} }
......
...@@ -103,7 +103,7 @@ class StoreTrabalho extends FormRequest ...@@ -103,7 +103,7 @@ class StoreTrabalho extends FormRequest
} }
if ($evento->tipo != "PIBEX" && $evento->tipo != "CONTINUO") { if ($evento->tipo != "PIBEX" && $evento->tipo != "CONTINUO" && $evento->tipo != "PIACEX") {
//dd($this->preenchimentoFormFlag); //dd($this->preenchimentoFormFlag);
$rules['anexoPlanilhaPontuacao'] = ['required']; $rules['anexoPlanilhaPontuacao'] = ['required'];
$rules['anexoLattesCoordenador'] = ['required', 'mimes:pdf']; $rules['anexoLattesCoordenador'] = ['required', 'mimes:pdf'];
......
...@@ -60,15 +60,17 @@ class UpdateTrabalho extends FormRequest ...@@ -60,15 +60,17 @@ class UpdateTrabalho extends FormRequest
$rules['curso.'.$value] = ['required', 'string']; $rules['curso.'.$value] = ['required', 'string'];
if($evento->tipo != "PIBEX" && $evento->tipo != "CONTINUO") { if($evento->tipo != "PIBEX" && $evento->tipo != "CONTINUO" && $evento->tipo != "PIACEX") {
$rules['media_do_curso.' . $value] = ['required', 'string']; $rules['media_do_curso.' . $value] = ['required', 'string'];
} }
if($evento->tipo != "CONTINUO"){ if($evento->tipo != "CONTINUO"){
$rules['turno.'.$value] = ['required', 'string']; if($evento->tipo != "PIBEX" && $evento->tipo != "PIACEX"){
$rules['ordem_prioridade.'.$value] = ['required', 'string']; $rules['turno.'.$value] = ['required', 'string'];
$rules['periodo_atual.'.$value] = ['required', 'string']; $rules['ordem_prioridade.'.$value] = ['required', 'string'];
$rules['total_periodos.'.$value] = ['required', 'string']; $rules['periodo_atual.'.$value] = ['required', 'string'];
$rules['total_periodos.'.$value] = ['required', 'string'];
}
$rules['anexoPlanoTrabalho.'.$value] = [Rule::requiredIf($participante->planoTrabalho == null)]; $rules['anexoPlanoTrabalho.'.$value] = [Rule::requiredIf($participante->planoTrabalho == null)];
$rules['nomePlanoTrabalho.'.$value] = ['required', 'string']; $rules['nomePlanoTrabalho.'.$value] = ['required', 'string'];
} }
...@@ -88,7 +90,7 @@ class UpdateTrabalho extends FormRequest ...@@ -88,7 +90,7 @@ class UpdateTrabalho extends FormRequest
}else{ }else{
//$rules = []; //$rules = [];
if($evento->tipo!="PIBEX" && $evento->tipo!="CONTINUO"){ if($evento->tipo!="PIBEX" && $evento->tipo!="CONTINUO" && $evento->tipo != "PIACEX"){
$rules['anexoPlanilhaPontuacao'] = [Rule::requiredIf($projeto->anexoPlanilhaPontuacao == null)]; $rules['anexoPlanilhaPontuacao'] = [Rule::requiredIf($projeto->anexoPlanilhaPontuacao == null)];
$rules['anexoLattesCoordenador'] = [Rule::requiredIf($projeto->anexoLattesCoordenador == null), 'mimes:pdf']; $rules['anexoLattesCoordenador'] = [Rule::requiredIf($projeto->anexoLattesCoordenador == null), 'mimes:pdf'];
$rules['anexoGrupoPesquisa'] = [Rule::requiredIf($projeto->anexoGrupoPesquisa == null), 'mimes:pdf']; $rules['anexoGrupoPesquisa'] = [Rule::requiredIf($projeto->anexoGrupoPesquisa == null), 'mimes:pdf'];
......
...@@ -143,7 +143,7 @@ ...@@ -143,7 +143,7 @@
@endif @endif
</div> </div>
@if($evento->tipo != "PIBEX" && $evento->tipo != "CONTINUO") @if($evento->tipo != "PIBEX" && $evento->tipo != "CONTINUO" && $evento->tipo != "PIACEX")
<div class="col-md-12"> <div class="col-md-12">
<br> <br>
<b style="color: #4D4D4D;">Grupo de Pesquisa: </b> <b style="color: #4D4D4D;">Grupo de Pesquisa: </b>
...@@ -471,7 +471,7 @@ ...@@ -471,7 +471,7 @@
</div> </div>
@if($evento->tipo != "PIBEX") @if($evento->tipo != "PIBEX" && $evento->tipo != "PIACEX")
<div class="col-sm-4"> <div class="col-sm-4">
<label for="anexoLatterCoordenador" class="col-form-label font-tam" <label for="anexoLatterCoordenador" class="col-form-label font-tam"
style="font-weight: bold">{{ __('Lattes do Coordenador: ') }}</label> style="font-weight: bold">{{ __('Lattes do Coordenador: ') }}</label>
...@@ -483,7 +483,7 @@ ...@@ -483,7 +483,7 @@
</div> </div>
@endif @endif
@if($evento->tipo != "PIBEX") @if($evento->tipo != "PIBEX" && $evento->tipo != "PIACEX")
<div class="col-sm-4"> <div class="col-sm-4">
@if($trabalho->anexoAutorizacaoComiteEtica != null) @if($trabalho->anexoAutorizacaoComiteEtica != null)
<label title="Declaração da autorização especial" for="nomeTrabalho" class="col-form-label font-tam" style="font-weight: bold">{{ __('Autorização Especial: ') }}</label> <label title="Declaração da autorização especial" for="nomeTrabalho" class="col-form-label font-tam" style="font-weight: bold">{{ __('Autorização Especial: ') }}</label>
...@@ -499,7 +499,7 @@ ...@@ -499,7 +499,7 @@
</div> </div>
@endif @endif
@if($evento->tipo != "PIBEX") @if($evento->tipo != "PIBEX" && $evento->tipo != "PIACEX")
<div class="col-sm-4"> <div class="col-sm-4">
<label for="anexoPlanilha" class="col-form-label font-tam" <label for="anexoPlanilha" class="col-form-label font-tam"
style="font-weight: bold">{{ __('Planilha de Pontuação: ') }}</label> style="font-weight: bold">{{ __('Planilha de Pontuação: ') }}</label>
...@@ -510,7 +510,7 @@ ...@@ -510,7 +510,7 @@
</div> </div>
@endif @endif
@if($evento->tipo != "PIBEX") @if($evento->tipo != "PIBEX" && $evento->tipo != "PIACEX")
<div class="col-sm-4"> <div class="col-sm-4">
<label for="nomeTrabalho" class="col-form-label font-tam" <label for="nomeTrabalho" class="col-form-label font-tam"
style="font-weight: bold">{{ __('Grupo de Pesquisa: ') }}</label> style="font-weight: bold">{{ __('Grupo de Pesquisa: ') }}</label>
...@@ -524,7 +524,7 @@ ...@@ -524,7 +524,7 @@
</div> </div>
@endif @endif
@if($evento->tipo == 'PIBIC' || $evento->tipo == 'PIBIC-EM' || $evento->tipo == "PIBEX") @if($evento->tipo == 'PIBIC' || $evento->tipo == 'PIBIC-EM' || $evento->tipo == "PIBEX" || $evento->tipo == "PIACEX")
{{-- Decisão do CONSU --}} {{-- Decisão do CONSU --}}
<div class="col-sm-4"> <div class="col-sm-4">
<label title="Decisão da Câmara ou Conselho Pertinente" for="anexoCONSU" class="col-form-label font-tam" <label title="Decisão da Câmara ou Conselho Pertinente" for="anexoCONSU" class="col-form-label font-tam"
...@@ -598,7 +598,7 @@ ...@@ -598,7 +598,7 @@
<div class="row justify-content-center"> <div class="row justify-content-center">
{{-- Relatório Parcial --}} {{-- Relatório Parcial --}}
@if($evento->tipo != 'PIBEX') @if($evento->tipo != 'PIBEX' && $evento->tipo != 'PIACEX')
<div class="col-sm-3"> <div class="col-sm-3">
<label for="dt_inicioRelatorioParcial" class="col-form-label font-tam" <label for="dt_inicioRelatorioParcial" class="col-form-label font-tam"
style="font-weight: bold">{{ __('Início do Relatório Parcial: ') }}</label> style="font-weight: bold">{{ __('Início do Relatório Parcial: ') }}</label>
...@@ -695,7 +695,7 @@ ...@@ -695,7 +695,7 @@
@csrf @csrf
<input type="hidden" name="trabalho_id" value="{{ $trabalho->id }}"> <input type="hidden" name="trabalho_id" value="{{ $trabalho->id }}">
<input type="hidden" name="evento_id" value="{{ $evento->id }}"> <input type="hidden" name="evento_id" value="{{ $evento->id }}">
@if($evento->tipo != "PIBEX" && $evento->dt_fimRelatorioParcial < $hoje && $hoje<$evento->dt_inicioRelatorioFinal) @if(($evento->tipo != "PIBEX" && $evento->tipo != "PIACEX") && $evento->dt_fimRelatorioParcial < $hoje && $hoje<$evento->dt_inicioRelatorioFinal)
<input type="hidden" name="tipo_relatorio" value="Parcial"> <input type="hidden" name="tipo_relatorio" value="Parcial">
@php $tipoTemp = "Parcial"; @endphp @php $tipoTemp = "Parcial"; @endphp
@else @else
...@@ -705,7 +705,7 @@ ...@@ -705,7 +705,7 @@
<div class="form-group"> <div class="form-group">
<div class="row" style="margin-left: 2px;margin-bottom: 1px"> <div class="row" style="margin-left: 2px;margin-bottom: 1px">
<div class="col-md-6"> <div class="col-md-6">
@if($evento->tipo != "PIBEX" && $evento->dt_fimRelatorioParcial < $hoje && $hoje<$evento->dt_inicioRelatorioFinal) @if(($evento->tipo != "PIBEX" && $evento->tipo != "PIACEX") && $evento->dt_fimRelatorioParcial < $hoje && $hoje<$evento->dt_inicioRelatorioFinal)
<label for="exampleFormControlSelect2" <label for="exampleFormControlSelect2"
style="font-size: 16px;">Selecione o(s) avaliador(es) style="font-size: 16px;">Selecione o(s) avaliador(es)
para a(s) avaliacões de relatorio parcial</label> para a(s) avaliacões de relatorio parcial</label>
...@@ -788,7 +788,7 @@ ...@@ -788,7 +788,7 @@
</div> </div>
<hr style="border-top: 1px solid#1492E6"> <hr style="border-top: 1px solid#1492E6">
@if(count($arquivos) > 0 && $evento->tipo != "PIBEX") @if(count($arquivos) > 0 && ($evento->tipo != "PIBEX" && $evento->tipo != "PIACEX"))
<div class="row justify-content-start" style="alignment: center"> <div class="row justify-content-start" style="alignment: center">
<div class="col-md-11"><h6 style="color: #234B8B; font-weight: bold">Avaliações de Relatórios Parciais</h6></div> <div class="col-md-11"><h6 style="color: #234B8B; font-weight: bold">Avaliações de Relatórios Parciais</h6></div>
</div> </div>
......
...@@ -34,6 +34,7 @@ ...@@ -34,6 +34,7 @@
<option @if(old('tipo')=='PIBIC-AF' ) selected @endif value="PIBIC-AF">PIBIC-AF</option> <option @if(old('tipo')=='PIBIC-AF' ) selected @endif value="PIBIC-AF">PIBIC-AF</option>
<option @if(old('tipo')=='PIBITI' ) selected @endif value="PIBITI">PIBITI</option> <option @if(old('tipo')=='PIBITI' ) selected @endif value="PIBITI">PIBITI</option>
<option @if(old('tipo')=='PIBEX' ) selected @endif value="PIBEX">PIBEX</option> <option @if(old('tipo')=='PIBEX' ) selected @endif value="PIBEX">PIBEX</option>
<option @if(old('tipo')=='PIACEX' ) selected @endif value="PIACEX">PIACEX</option>
<option @if(old('tipo')=='CONTINUO' ) selected @endif value="CONTINUO">Fluxo Contínuo</option> <option @if(old('tipo')=='CONTINUO' ) selected @endif value="CONTINUO">Fluxo Contínuo</option>
</select> </select>
...@@ -896,8 +897,8 @@ ...@@ -896,8 +897,8 @@
} }
//retirada das datas dos relatórios parciais para o PIBEX //retirada das datas dos relatórios parciais para o PIBEX e PIACEX
if(tipo.value === 'PIBEX'){ if(tipo.value === 'PIBEX' || tipo.value === 'PIACEX'){
document.getElementById('div-inicio-relat-parcial').style.display = "none"; document.getElementById('div-inicio-relat-parcial').style.display = "none";
document.getElementById('div-fim-relat-parcial').style.display = "none"; document.getElementById('div-fim-relat-parcial').style.display = "none";
......
...@@ -47,6 +47,7 @@ ...@@ -47,6 +47,7 @@
<option value="PIBIC-AF" {{ $evento->tipo == "PIBIC-AF" ? 'selected' :'' }}>PIBIC-AF</option> <option value="PIBIC-AF" {{ $evento->tipo == "PIBIC-AF" ? 'selected' :'' }}>PIBIC-AF</option>
<option value="PIBITI" {{ $evento->tipo == "PIBITI" ? 'selected' :'' }}>PIBITI</option> <option value="PIBITI" {{ $evento->tipo == "PIBITI" ? 'selected' :'' }}>PIBITI</option>
<option value="PIBEX" {{ $evento->tipo == "PIBEX" ? 'selected' :'' }}>PIBEX</option> <option value="PIBEX" {{ $evento->tipo == "PIBEX" ? 'selected' :'' }}>PIBEX</option>
<option value="PIACEX" {{ $evento->tipo == "PIACEX" ? 'selected' :'' }}>PIACEX</option>
<option value="CONTINUO" {{ $evento->tipo == "CONTINUO" ? 'selected' :'' }}>Fluxo Contínuo</option> <option value="CONTINUO" {{ $evento->tipo == "CONTINUO" ? 'selected' :'' }}>Fluxo Contínuo</option>
</select> </select>
@error('tipo') @error('tipo')
...@@ -1016,8 +1017,8 @@ ...@@ -1016,8 +1017,8 @@
}) })
} }
//retirada das datas dos relatórios parciais para o PIBEX //retirada das datas dos relatórios parciais para o PIBEX e PIACEX
if(tipo.value === 'PIBEX'){ if(tipo.value === 'PIBEX' || tipo.value === 'PIACEX'){
document.getElementById('div-inicio-relat-parcial').style.display = "none"; document.getElementById('div-inicio-relat-parcial').style.display = "none";
document.getElementById('div-fim-relat-parcial').style.display = "none"; document.getElementById('div-fim-relat-parcial').style.display = "none";
......
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
</div> </div>
@if($edital->tipo != "PIBEX") @if($edital->tipo != "PIBEX" && $edital->tipo != "PIACEX")
<div class="form-group col-md-6" style="margin-top: 10px"> <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: ') }}<span style="color: red; font-weight:bold">*</span></label> <label for="anexoLatterCoordenador" class="col-form-label font-tam" style="font-weight: bold">{{ __('Lattes do Coordenador: ') }}<span style="color: red; font-weight:bold">*</span></label>
<input type="file" class="input-group-text" name="anexoLattesCoordenador" placeholder="anexoPlanoTrabalho" accept=".pdf" /> <input type="file" class="input-group-text" name="anexoLattesCoordenador" placeholder="anexoPlanoTrabalho" accept=".pdf" />
...@@ -47,7 +47,7 @@ ...@@ -47,7 +47,7 @@
</div> </div>
@endif @endif
@if($edital->tipo != "PIBEX") @if($edital->tipo != "PIBEX" && $edital->tipo != "PIACEX")
<div class="form-group col-md-6"> <div class="form-group col-md-6">
<label for="anexoPlanilhaPontuacao" class="col-form-label font-tam" style="font-weight: bold">{{ __('Planilha de Pontuação: ') }}<span style="color: red; font-weight:bold">*</span></label> <label for="anexoPlanilhaPontuacao" class="col-form-label font-tam" style="font-weight: bold">{{ __('Planilha de Pontuação: ') }}<span style="color: red; font-weight:bold">*</span></label>
<input type="file" class="input-group-text" name="anexoPlanilhaPontuacao" placeholder="anexoPlanilhaPontuacao" accept=".xlsx, .xls, .ods" /> <input type="file" class="input-group-text" name="anexoPlanilhaPontuacao" placeholder="anexoPlanilhaPontuacao" accept=".xlsx, .xls, .ods" />
...@@ -82,7 +82,7 @@ ...@@ -82,7 +82,7 @@
</div> </div>
@endif @endif
@if($edital->tipo != "PIBEX") @if($edital->tipo != "PIBEX" && $edital->tipo != "PIACEX")
<div class="form-group col-md-6" style="margin-top: 10px"> <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: ') }}<span style="color: red; font-weight:bold">*</span></label> <label for="nomeTrabalho" class="col-form-label font-tam" style="font-weight: bold">{{ __('Grupo de Pesquisa: ') }}<span style="color: red; font-weight:bold">*</span></label>
<input type="file" class="input-group-text" name="anexoGrupoPesquisa" placeholder="Anexo do Grupo de Pesquisa" accept="application/pdf" /> <input type="file" class="input-group-text" name="anexoGrupoPesquisa" placeholder="Anexo do Grupo de Pesquisa" accept="application/pdf" />
...@@ -94,7 +94,7 @@ ...@@ -94,7 +94,7 @@
</div> </div>
@endif @endif
@if($edital->tipo != "PIBEX") @if($edital->tipo != "PIBEX" && $edital->tipo != "PIACEX")
<div class="form-group col-md-6"> <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> <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>
......
...@@ -57,7 +57,7 @@ ...@@ -57,7 +57,7 @@
@if($funcao->nome == "Vice-coordenador" || $funcao->nome == "Colaborador") @if($funcao->nome == "Vice-coordenador" || $funcao->nome == "Colaborador")
<option value="{{$funcao->id}}">{{ $funcao->nome }}</option> <option value="{{$funcao->id}}">{{ $funcao->nome }}</option>
@endif @endif
@elseif($edital->natureza_id == 3 && $edital->tipo == "PIBEX") @elseif($edital->natureza_id == 3 && ($edital->tipo == "PIBEX" || $edital->tipo == "PIACEX"))
@if($funcao->nome == "Vice-coordenador" || $funcao->nome == "Colaborador" || $funcao->nome == "Bolsista") @if($funcao->nome == "Vice-coordenador" || $funcao->nome == "Colaborador" || $funcao->nome == "Bolsista")
<option value="{{$funcao->id}}">{{ $funcao->nome }}</option> <option value="{{$funcao->id}}">{{ $funcao->nome }}</option>
@endif @endif
......
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
@enderror @enderror
</div> </div>
@if($edital->tipo != "PIBEX" && $edital->tipo !='CONTINUO') @if($edital->tipo != "PIBEX" && $edital->tipo !='CONTINUO' && $edital->tipo != "PIACEX")
<div class="col-md-2"> <div class="col-md-2">
<br> <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> <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 @@ ...@@ -51,7 +51,7 @@
</div> </div>
@endif @endif
@if($edital->tipo != "PIBEX" && $edital->tipo !='CONTINUO') @if($edital->tipo != "PIBEX" && $edital->tipo !='CONTINUO' && $edital->tipo != "PIACEX")
<div class="col-md-3"> <div class="col-md-3">
<br> <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> <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>
...@@ -117,7 +117,7 @@ ...@@ -117,7 +117,7 @@
</div> </div>
@endif @endif
@if($edital->tipo != "CONTINUO" && $edital->tipo != "PIBEX") @if($edital->tipo != "CONTINUO" && $edital->tipo != "PIBEX" && $edital->tipo != "PIACEX")
<div class="col-md-2"> <div class="col-md-2">
<br> <br>
<label for="conflitosInteresse" class="col-form-label font-tam" <label for="conflitosInteresse" class="col-form-label font-tam"
......
...@@ -47,7 +47,7 @@ ...@@ -47,7 +47,7 @@
</div> </div>
@if($edital->tipo != "PIBEX") @if($edital->tipo != "PIBEX" && $edital->tipo != "PIACEX")
<div class="form-group col-md-6" style="margin-top: 10px"> <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> <label for="anexoLatterCoordenador" class="col-form-label font-tam" style="font-weight: bold">{{ __('Lattes do Coordenador: ') }}</label>
@if($projeto->anexoLattesCoordenador) @if($projeto->anexoLattesCoordenador)
...@@ -65,7 +65,7 @@ ...@@ -65,7 +65,7 @@
@endif @endif
@if($edital->tipo != "PIBEX") @if($edital->tipo != "PIBEX" && $edital->tipo != "PIACEX")
<div class="form-group col-md-6"> <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> <label for="anexoPlanilhaPontuacao" class="col-form-label font-tam" style="font-weight: bold">{{ __('Planilha de Pontuação: ') }}</label>
@if($projeto->anexoPlanilhaPontuacao) @if($projeto->anexoPlanilhaPontuacao)
...@@ -115,7 +115,7 @@ ...@@ -115,7 +115,7 @@
</div> </div>
@endif @endif
@if($edital->tipo != "PIBEX") @if($edital->tipo != "PIBEX" && $edital->tipo != "PIACEX")
<div class="form-group col-md-6" style="margin-top: 10px"> <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> <label for="nomeTrabalho" class="col-form-label font-tam" style="font-weight: bold">{{ __('Grupo de Pesquisa: ') }}</label>
@if($projeto->anexoGrupoPesquisa) @if($projeto->anexoGrupoPesquisa)
...@@ -133,7 +133,7 @@ ...@@ -133,7 +133,7 @@
@endif @endif
@if($edital->tipo != "PIBEX") @if($edital->tipo != "PIBEX" && $edital->tipo != "PIACEX")
<div class="form-group col-md-6"> <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> <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>
......
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
@enderror @enderror
</div> </div>
@if($edital->tipo != "PIBEX" && $edital->tipo !='CONTINUO') @if($edital->tipo != "PIBEX" && $edital->tipo !='CONTINUO' && $edital->tipo != "PIACEX")
<div class="col-md-2"> <div class="col-md-2">
<br> <br>
<label for="lattes" class="col-form-label font-tam" style="font-weight: bold">{{ __('Grupo de Pesquisa: ') }}</label> <label for="lattes" class="col-form-label font-tam" style="font-weight: bold">{{ __('Grupo de Pesquisa: ') }}</label>
...@@ -57,7 +57,7 @@ ...@@ -57,7 +57,7 @@
</div> </div>
@endif @endif
@if($edital->tipo != "PIBEX" && $edital->tipo !='CONTINUO') @if($edital->tipo != "PIBEX" && $edital->tipo !='CONTINUO' && $edital->tipo != "PIACEX")
<div class="col-md-3"> <div class="col-md-3">
<br> <br>
<label for="lattes" class="col-form-label font-tam" style="font-weight: bold">{{ __('Valor da Planilha de Pontuação: ') }}</label> <label for="lattes" class="col-form-label font-tam" style="font-weight: bold">{{ __('Valor da Planilha de Pontuação: ') }}</label>
...@@ -139,7 +139,7 @@ ...@@ -139,7 +139,7 @@
</div> </div>
@endif @endif
@if($edital->tipo !='CONTINUO' && $edital->tipo != "PIBEX") @if($edital->tipo !='CONTINUO' && $edital->tipo != "PIBEX" && $edital->tipo != "PIACEX")
<div class="col-md-2"> <div class="col-md-2">
<br> <br>
<label for="conflitosInteresse" class="col-form-label font-tam" <label for="conflitosInteresse" class="col-form-label font-tam"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment