Commit 89755b32 authored by Yuri Resende's avatar Yuri Resende
Browse files

Atualizando a edição de submsão de projetos para editas de fluxo contínuo

parent 9ccc0dc5
...@@ -83,7 +83,7 @@ class UpdateTrabalho extends FormRequest ...@@ -83,7 +83,7 @@ class UpdateTrabalho extends FormRequest
}else{ }else{
//$rules = []; //$rules = [];
if($evento->tipo!="PIBEX"){ if($evento->tipo!="PIBEX" && $evento->tipo!="CONTINUO"){
$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'];
...@@ -109,9 +109,10 @@ class UpdateTrabalho extends FormRequest ...@@ -109,9 +109,10 @@ class UpdateTrabalho extends FormRequest
} }
$rules['linkLattesEstudante'] = ['required', 'string']; $rules['linkLattesEstudante'] = ['required', 'string'];
if($evento->tipo!="CONTINUO"){
$rules['anexoProjeto'] = [Rule::requiredIf($projeto->anexoProjeto == null), 'mimes:pdf']; $rules['anexoProjeto'] = [Rule::requiredIf($projeto->anexoProjeto == null), 'mimes:pdf'];
$rules['anexoDecisaoCONSU'] = [Rule::requiredIf($evento->consu && $projeto->anexoDecisaoCONSU == null), 'mimes:pdf']; $rules['anexoDecisaoCONSU'] = [Rule::requiredIf($evento->consu && $projeto->anexoDecisaoCONSU == null), 'mimes:pdf'];
}
return $rules; return $rules;
} }
......
...@@ -12,9 +12,11 @@ ...@@ -12,9 +12,11 @@
{{-- Arquivo --}} {{-- Arquivo --}}
@if($edital->tipo == "CONTINUO") @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> <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') @error('anexo_SIPAC')
<span class="invalid-feedback" role="alert" style="overflow: visible; display:block"> <span class="invalid-feedback" role="alert" style="overflow: visible; display:block">
<strong>{{ $message }}</strong> <strong>{{ $message }}</strong>
......
...@@ -4,13 +4,15 @@ ...@@ -4,13 +4,15 @@
<div class="card-body" style="padding-top: 0.2rem;"> <div class="card-body" style="padding-top: 0.2rem;">
<div class="container"> <div class="container">
<div class="form-row mt-3"> <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> </div>
<hr style="border-top: 1px solid#1492E6"> <hr style="border-top: 1px solid#1492E6">
<div class="row"> <div class="row">
<div class="form-group col-md-12" style="margin-top: 10px"> <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" > <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') @error('titulo')
......
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
@enderror @enderror
</div> </div>
@if($edital->tipo != "PIBEX") @if($edital->tipo != "PIBEX" && $edital->tipo !='CONTINUO')
<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") @if($edital->tipo != "PIBEX" && $edital->tipo !='CONTINUO')
<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>
......
...@@ -12,169 +12,189 @@ ...@@ -12,169 +12,189 @@
<div class="row justify-content-start"> <div class="row justify-content-start">
{{-- Arquivo --}} {{-- Arquivo --}}
<div class="form-group col-md-6"> @if($edital->tipo == "CONTINUO")
<label for="anexoProjeto" class="col-form-label font-tam" style="font-weight: bold">{{ __('Projeto: ') }} </label> <div class="form-group col-md-8" style="margin-top: 10px">
@if($projeto->anexoProjeto) <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>
<a href="{{ route('baixar.anexo.projeto', ['id' => $projeto->id])}}"><i class="fas fa-file-pdf fa-2x"></i></a> @if($projeto->anexo_SIPAC)
@else <a href="{{ route('baixar.anexo.SIPAC', ['id' => $projeto->id])}}"><i class="fas fa-file-pdf fa-2x"></i></a>
<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>
@else @else
<i class="fas fa-times-circle fa-2x"></i> <p><i class="fas fa-times-circle fa-2x"></i></p>
@endif @endif
<input type="file" class="input-group-text" name="anexoLattesCoordenador" placeholder="anexoPlanoTrabalho" accept=".pdf" /> <input type="file" class="input-group-text" name="anexo_SIPAC" placeholder="PDF do processo SIPAC" accept=".pdf" />
@error('anexoLattesCoordenador') <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"> <span class="invalid-feedback" role="alert" style="overflow: visible; display:block">
<strong>{{ $message }}</strong> <strong>{{ $message }}</strong>
</span> </span>
@enderror @enderror
</div> </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 @else
<div class="form-group col-md-6"> <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> <label for="anexoProjeto" class="col-form-label font-tam" style="font-weight: bold">{{ __('Projeto: ') }} </label>
@if($projeto->anexoDecisaoCONSU) @if($projeto->anexoProjeto)
<a href="{{ route('baixar.anexo.consu', ['id' => $projeto->id]) }}"><i class="fas fa-file-pdf fa-2x"></i></a> <a href="{{ route('baixar.anexo.projeto', ['id' => $projeto->id])}}"><i class="fas fa-file-pdf fa-2x"></i></a>
@else @else
<i class="fas fa-times-circle fa-2x"></i> <p><i class="fas fa-times-circle fa-2x"></i></p>
@endif @endif
<input type="file" class="input-group-text" name="anexoDecisaoCONSU" accept=".pdf" /> <input type="file" class="input-group-text" name="anexoProjeto" placeholder="nomeProjeto" accept="application/pdf" />
@error('anexoDecisaoCONSU') @error('anexoProjeto')
<span class="invalid-feedback" role="alert" style="overflow: visible; display:block"> <span class="invalid-feedback" role="alert" style="overflow: visible; display:block">
<strong>{{ $message }}</strong> <strong>{{ $message }}</strong>
</span> </span>
@enderror @enderror
</div> </div>
@endif
@if($edital->tipo != "PIBEX") @if($edital->tipo != "PIBEX")
<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="anexoLatterCoordenador" class="col-form-label font-tam" style="font-weight: bold">{{ __('Lattes do Coordenador: ') }}</label>
@if($projeto->anexoGrupoPesquisa) @if($projeto->anexoLattesCoordenador)
<a href="{{ route('baixar.anexoGrupoPesquisa', ['id' => $projeto->id]) }}"><i class="fas fa-file-pdf fa-2x"></i></a> <a href="{{ route('baixar.anexo.lattes', ['id' => $projeto->id]) }}"><i class="fas fa-file-pdf fa-2x"></i></a>
@else @else
<i class="fas fa-times-circle fa-2x"></i> <i class="fas fa-times-circle fa-2x"></i>
@endif @endif
<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="anexoLattesCoordenador" placeholder="anexoPlanoTrabalho" accept=".pdf" />
@error('anexoGrupoPesquisa') @error('anexoLattesCoordenador')
<span class="invalid-feedback" role="alert" style="overflow: visible; display:block"> <span class="invalid-feedback" role="alert" style="overflow: visible; display:block">
<strong>{{ $message }}</strong> <strong>{{ $message }}</strong>
</span> </span>
@enderror @enderror
</div> </div>
@endif @endif
@if($edital->tipo != "PIBEX") @if($edital->tipo != "PIBEX")
<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="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> @if($projeto->anexoPlanilhaPontuacao)
<input type="radio" @if($projeto->anexoAutorizacaoComiteEtica != null) checked @endif id="radioSim" onchange="displayAutorizacoesEspeciais('sim')" name="autorizacaoFlag" value="sim"> <a href="{{ route('baixar.anexo.planilha', ['id' => $projeto->id]) }}"><i class="fas fa-file-pdf fa-2x"></i></a>
<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 @else
<i class="fas fa-times-circle fa-2x"></i> <i class="fas fa-times-circle fa-2x"></i>
@endif @endif
<input type="file" class="input-group-text" name="anexoAutorizacaoComiteEtica" placeholder="anexoComiteEtica" accept=".pdf" /> <input type="file" class="input-group-text" name="anexoPlanilhaPontuacao" placeholder="anexoPlanilhaPontuacao" accept=".xlsx, .xls, .ods" />
@error('anexoAutorizacaoComiteEtica') @error('anexoPlanilhaPontuacao')
<span class="invalid-feedback" role="alert" style="overflow: visible; display:block"> <span class="invalid-feedback" role="alert" style="overflow: visible; display:block">
<strong>{{ $message }}</strong> <strong>{{ $message }}</strong>
</span> </span>
@enderror @enderror
</div> </div>
@endif
<div class="form-group" id="displayNao" style="display: none; margin-top:-1rem"> @if($edital->consu)
<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> <div class="form-group col-md-6">
@if($projeto->justificativaAutorizacaoEtica) <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>
<a href="{{ route('baixar.anexo.justificativa', ['id' => $projeto->id]) }}"><i class="fas fa-file-pdf fa-2x"></i></a> @if($projeto->anexoDecisaoCONSU)
<a href="{{ route('baixar.anexo.consu', ['id' => $projeto->id]) }}"><i class="fas fa-file-pdf fa-2x"></i></a>
@else @else
<i class="fas fa-times-circle fa-2x"></i> <i class="fas fa-times-circle fa-2x"></i>
@endif @endif
<input type="file" class="input-group-text" name="justificativaAutorizacaoEtica" placeholder="justificativaAutorizacaoEtica" accept=".pdf" /> <input type="file" class="input-group-text" name="anexoDecisaoCONSU" accept=".pdf" />
@error('justificativaAutorizacaoEtica') @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"> <span class="invalid-feedback" role="alert" style="overflow: visible; display:block">
<strong>{{ $message }}</strong> <strong>{{ $message }}</strong>
</span> </span>
@enderror @enderror
</div> </div>
</div>
@endif @endif
@if($edital->nome_docExtra != null)
<div class="form-group col-md-6" style="margin-top: 10px"> @if($edital->tipo != "PIBEX")
<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> <div class="form-group col-md-6" style="margin-top: 10px">
@if($projeto->anexo_docExtra != null) <label for="nomeTrabalho" class="col-form-label font-tam" style="font-weight: bold">{{ __('Grupo de Pesquisa: ') }}</label>
<a href="{{ route('baixar.anexo.docExtra', ['id' => $projeto->id]) }}"><i class="fas fa-file-pdf fa-2x"></i></a> @if($projeto->anexoGrupoPesquisa)
@else <a href="{{ route('baixar.anexoGrupoPesquisa', ['id' => $projeto->id]) }}"><i class="fas fa-file-pdf fa-2x"></i></a>
<i class="fas fa-times-circle fa-2x"></i> @else
@endif <i class="fas fa-times-circle fa-2x"></i>
<input type="file" class="input-group-text" name="anexo_docExtra" placeholder="{{$edital->nome_docExtra}}" accept=".pdf,.docx,.doc,.zip"/> @endif
@error('anexo_docExtra') <input type="file" class="input-group-text" name="anexoGrupoPesquisa" placeholder="Anexo do Grupo de Pesquisa" accept="application/pdf" />
<span class="invalid-feedback" role="alert" style="overflow: visible; display:block"> @error('anexoGrupoPesquisa')
<strong>{{ $message }}</strong> <span class="invalid-feedback" role="alert" style="overflow: visible; display:block">
</span> <strong>{{ $message }}</strong>
@enderror </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>
</div>
@endif @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> </div>
</div> </div>
......
...@@ -4,13 +4,14 @@ ...@@ -4,13 +4,14 @@
<div class="card-body" style="padding-top: 0.2rem;"> <div class="card-body" style="padding-top: 0.2rem;">
<div class="container"> <div class="container">
<div class="form-row mt-3"> <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> </div>
<hr style="border-top: 1px solid#1492E6"> <hr style="border-top: 1px solid#1492E6">
<div class="row"> <div class="row">
<div class="form-group col-md-12" style="margin-top: 10px"> <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" > <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 style="color: red; font-size: 12px" id="caracsRestantestitulo">
</span> </span>
...@@ -88,25 +89,28 @@ ...@@ -88,25 +89,28 @@
</div> </div>
<div class="row col-md-12"> <div class="row col-md-12">
<div class="form-group 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> <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>
<div class="row col-md-12"> <span>É possível selecionar um ou mais ODS. Para outras informações,
@foreach($listaOds as $ods) <a href="https://brasil.un.org/pt-br/sdgs" rel='external' target='_blank'> acesse o link.</a></span><br>
<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 > <div class="row col-md-12">
<label class="form-check-label" for="ods{{$ods->id}}"> @foreach($listaOds as $ods)
{{ $ods->nome }} <div class="col-md-6">
</label> <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 >
</div> <label class="form-check-label" for="ods{{$ods->id}}">
@endforeach {{ $ods->nome }}
</div> </label>
@error('ods')
<span class="invalid-feedback" role="alert" style="overflow: visible; display:block">
<strong>{{ $message }}</strong>
</span>
@enderror
</div> </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 @endif
</div> </div>
......
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
@enderror @enderror
</div> </div>
@if($edital->tipo != "PIBEX") @if($edital->tipo != "PIBEX" && $edital->tipo !='CONTINUO')
<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") @if($edital->tipo != "PIBEX" && $edital->tipo !='CONTINUO')
<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,6 +139,7 @@ ...@@ -139,6 +139,7 @@
</div> </div>
@endif @endif
@if($edital->tipo !='CONTINUO')
<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"
...@@ -154,7 +155,7 @@ ...@@ -154,7 +155,7 @@
</span> </span>
@enderror @enderror
</div> </div>
@endif
</div> </div>
</div> </div>
</div> </div>
......
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