"git@sites.upe.br:walter.felipe/submeta.git" did not exist on "1b9d6342e272ff81fac412763ce96e8c09096a03"
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
}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'];
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;
}
......
......@@ -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" />
<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>
......
......@@ -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')
......
......@@ -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>
......
......@@ -12,6 +12,25 @@
<div class="row justify-content-start">
{{-- Arquivo --}}
@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
<p><i class="fas fa-times-circle fa-2x"></i></p>
@endif
<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>
@else
<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)
......@@ -175,6 +194,7 @@
@enderror
</div>
@endif
@endif
</div>
</div>
</div>
......
......@@ -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>
......@@ -89,7 +90,10 @@
<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>
<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">
......
......@@ -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>
......
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