Commit 441488e2 authored by Guilherme Silva's avatar Guilherme Silva
Browse files

Implementação do campo Comprovante Bancario nas telas relacionadas

parent 93963de9
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
<div class="col-2 align-self-center"> <div class="col-2 align-self-center">
<div class="row justify-content-around"> <div class="row justify-content-around">
<a href="" data-toggle="modal" data-target="#modalSubParticipante{{$participante->id}}" class="button"><i class="fas fa-exchange-alt fa-2x"></i><a> <a href="" data-toggle="modal" data-target="#modalSubParticipante{{$participante->id}}" class="button"><i class="fas fa-exchange-alt fa-2x"></i><a>
<a href="" data-toggle="modal" data-target="#modalVizuParticipante{{$participante->id}}" class="button"><i class="far fa-eye fa-2x"></i></a> <a href="" data-toggle="modal" data-target="#modalVizuParticipante{{$participante->id}}" class="button"><i class="far fa-eye fa-2x"></i></a>
</div> </div>
</div> </div>
...@@ -130,18 +130,18 @@ ...@@ -130,18 +130,18 @@
@if($subs->tipo == 'ManterPlano') @if($subs->tipo == 'ManterPlano')
<h5>Manter Plano</h5> <h5>Manter Plano</h5>
@elseif($subs->tipo == 'TrocarPlano') @elseif($subs->tipo == 'TrocarPlano')
<h5>Alterar Plano</h5> <h5>Alterar Plano</h5>
@elseif($subs->tipo == 'Completa') @elseif($subs->tipo == 'Completa')
<h5>Completa</h5> <h5>Completa</h5>
@endif @endif
</div> </div>
<div class="col-2"> <div class="col-2">
@if($subs->status == 'Finalizada') @if($subs->status == 'Finalizada')
<h5>Concluída</h5> <h5>Concluída</h5>
@elseif($subs->status == 'Negada') @elseif($subs->status == 'Negada')
<h5>Negada</h5> <h5>Negada</h5>
@elseif($subs->status == 'Em Aguardo') @elseif($subs->status == 'Em Aguardo')
<h5>Pendente</h5> <h5>Pendente</h5>
@endif @endif
</div> </div>
</div> </div>
...@@ -293,6 +293,7 @@ ...@@ -293,6 +293,7 @@
inputsForm.push(document.getElementById('anexoComprovanteMatricula'+idParticipante)); inputsForm.push(document.getElementById('anexoComprovanteMatricula'+idParticipante));
inputsForm.push(document.getElementById('anexoCurriculoLattes'+idParticipante)); inputsForm.push(document.getElementById('anexoCurriculoLattes'+idParticipante));
inputsForm.push(document.getElementById('anexoAutorizacaoPais'+idParticipante)); inputsForm.push(document.getElementById('anexoAutorizacaoPais'+idParticipante));
inputsForm.push(document.getElementById('anexoComprovanteBancario'+idParticipante));
if(checkboxInput.checked){ if(checkboxInput.checked){
inputsForm.forEach(function(item,indice,array){ inputsForm.forEach(function(item,indice,array){
...@@ -317,7 +318,7 @@ ...@@ -317,7 +318,7 @@
var instituicao = document.getElementById('outra'+idSelect); var instituicao = document.getElementById('outra'+idSelect);
var display = document.getElementById('display'+idSelect); var display = document.getElementById('display'+idSelect);
if(instituicaoSelect.value === "Outra"){ if(instituicaoSelect.value === "Outra"){
display.style.display = "block"; display.style.display = "block";
instituicao.parentElement.style.display = ''; instituicao.parentElement.style.display = '';
instituicao.value=""; instituicao.value="";
...@@ -332,7 +333,7 @@ ...@@ -332,7 +333,7 @@
var curso = document.getElementById('outro'+idSelect); var curso = document.getElementById('outro'+idSelect);
var displayCurso = document.getElementById('display'+idSelect); var displayCurso = document.getElementById('display'+idSelect);
if(cursoSelect.value === "Outro"){ if(cursoSelect.value === "Outro"){
displayCurso.style.display = "block"; displayCurso.style.display = "block";
curso.parentElement.style.display = ''; curso.parentElement.style.display = '';
curso.value=""; curso.value="";
......
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
@endcomponent @endcomponent
</div> </div>
</div> </div>
<div class="row"> <div class="row">
<div class="col-6"> <div class="col-6">
@component('componentes.input', ['label' => 'Data de nascimento']) @component('componentes.input', ['label' => 'Data de nascimento'])
<input type="date" class="form-control" value="{{$participante->data_de_nascimento}}" name="data_de_nascimento" placeholder="Data de nascimento" disabled /> <input type="date" class="form-control" value="{{$participante->data_de_nascimento}}" name="data_de_nascimento" placeholder="Data de nascimento" disabled />
...@@ -277,7 +277,7 @@ ...@@ -277,7 +277,7 @@
@endcomponent @endcomponent
</div> </div>
<div class="form-group col-md-6"> <div class="form-group col-md-6">
@component('componentes.input', ['label' => 'Link do currículo Lattes']) @component('componentes.input', ['label' => 'Link do currículo Lattes'])
<input class="form-control @error('linkLattes') is-invalid @enderror" type="text" name="linkLattes" placeholder="Link do currículo Lattes do estudante" id="linkLattes{{$participante->id}}" required > <input class="form-control @error('linkLattes') is-invalid @enderror" type="text" name="linkLattes" placeholder="Link do currículo Lattes do estudante" id="linkLattes{{$participante->id}}" required >
<small>Ex.: http://lattes.cnpq.br/8363536830656923</small> <small>Ex.: http://lattes.cnpq.br/8363536830656923</small>
@error('linkLattes') @error('linkLattes')
...@@ -553,6 +553,17 @@ ...@@ -553,6 +553,17 @@
@enderror @enderror
<span style="font-size:small">Anexo obrigatório para discentes menores de 18 anos</span> <span style="font-size:small">Anexo obrigatório para discentes menores de 18 anos</span>
</div> </div>
<div class="col-6">
<label class="control-label">Comprovante Bancário (.pdf, .jpg, .jpeg, .png)</label>
<input type="file" class="input-group-text" value="" name="anexoComprovanteBancario" accept=".pdf,.jpg,.jpeg,.png" placeholder="Anexo do Comprovante Bancário" id="anexoComprovanteBancario{{$participante->id}}"/>
<small>Anexo obrigatório para bolsistas, mas não obrigatório para voluntários</small>
@error('anexoComprovanteBancario')
<span class="invalid-feedback" role="alert" style="overflow: visible; display:block">
<strong>{{ $message }}</strong>
</span>
@enderror
</div>
<div class="col-12 mb-3 mt-3"> <div class="col-12 mb-3 mt-3">
<div class="form-check"> <div class="form-check">
......
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
@endcomponent @endcomponent
</div> </div>
</div> </div>
<div class="row"> <div class="row">
<div class="col-6"> <div class="col-6">
@component('componentes.input', ['label' => 'Data de nascimento']) @component('componentes.input', ['label' => 'Data de nascimento'])
<input type="date" class="form-control" value="{{$subs->participanteSubstituido()->withTrashed()->first()->data_de_nascimento}}" name="data_de_nascimento" placeholder="Data de nascimento" disabled /> <input type="date" class="form-control" value="{{$subs->participanteSubstituido()->withTrashed()->first()->data_de_nascimento}}" name="data_de_nascimento" placeholder="Data de nascimento" disabled />
...@@ -171,7 +171,7 @@ ...@@ -171,7 +171,7 @@
<div class="row"> <div class="row">
<div class="col-5"> <div class="col-5">
@component('componentes.input', ['label' => 'Termo de Compromisso (.pdf)']) @component('componentes.input', ['label' => 'Termo de Compromisso (.pdf)'])
@endcomponent @endcomponent
</div> </div>
@if($subs->participanteSubstituto()->withTrashed()->first()->anexoTermoCompromisso) @if($subs->participanteSubstituto()->withTrashed()->first()->anexoTermoCompromisso)
...@@ -186,7 +186,7 @@ ...@@ -186,7 +186,7 @@
<div class="col-5"> <div class="col-5">
@component('componentes.input', ['label' => 'Comprovante de Matrícula (.pdf)']) @component('componentes.input', ['label' => 'Comprovante de Matrícula (.pdf)'])
@endcomponent @endcomponent
</div> </div>
@if($subs->participanteSubstituto()->withTrashed()->first()->anexoComprovanteMatricula) @if($subs->participanteSubstituto()->withTrashed()->first()->anexoComprovanteMatricula)
...@@ -202,7 +202,7 @@ ...@@ -202,7 +202,7 @@
<div class="row"> <div class="row">
<div class="col-5"> <div class="col-5">
@component('componentes.input', ['label' => 'Curriculo Lattes (.pdf)']) @component('componentes.input', ['label' => 'Curriculo Lattes (.pdf)'])
@endcomponent @endcomponent
</div> </div>
@if($subs->participanteSubstituto()->withTrashed()->first()->anexoLattes) @if($subs->participanteSubstituto()->withTrashed()->first()->anexoLattes)
...@@ -217,7 +217,7 @@ ...@@ -217,7 +217,7 @@
<div class="col-5"> <div class="col-5">
@component('componentes.input', ['label' => 'Autorização dos Pais (.pdf)']) @component('componentes.input', ['label' => 'Autorização dos Pais (.pdf)'])
@endcomponent @endcomponent
</div> </div>
...@@ -231,6 +231,22 @@ ...@@ -231,6 +231,22 @@
</div> </div>
@endif @endif
</div> </div>
<div class="row">
<div class="col-5">
@component('componentes.input', ['label' => 'Comprovante Bancário (.pdf, .jpg, .jpeg, .png)'])
@endcomponent
</div>
@if($subs->participanteSubstituto()->withTrashed()->first()->anexoComprovanteBancario)
<div class="col-1">
<a href="{{ route('baixar.documentosParticipante', ['pathDocumento' => $subs->participanteSubstituido()->withTrashed()->first()->anexoComprovanteBancario]) }}"><i class="fas fa-file-pdf fa-2x"></i></a>
</div>
@else
<div class="col-1 text-danger">
<p><i class="fas fa-times-circle fa-2x"></i></p>
</div>
@endif
</div>
<div class="row"> <div class="row">
<div class="col-md-12"> <div class="col-md-12">
...@@ -281,7 +297,7 @@ ...@@ -281,7 +297,7 @@
@endcomponent @endcomponent
</div> </div>
</div> </div>
<div class="row"> <div class="row">
<div class="col-6"> <div class="col-6">
@component('componentes.input', ['label' => 'Data de nascimento']) @component('componentes.input', ['label' => 'Data de nascimento'])
<input type="date" class="form-control" value="{{$subs->participanteSubstituto()->withTrashed()->first()->data_de_nascimento}}" name="data_de_nascimento" placeholder="Data de nascimento" disabled /> <input type="date" class="form-control" value="{{$subs->participanteSubstituto()->withTrashed()->first()->data_de_nascimento}}" name="data_de_nascimento" placeholder="Data de nascimento" disabled />
...@@ -434,7 +450,7 @@ ...@@ -434,7 +450,7 @@
<div class="row"> <div class="row">
<div class="col-5"> <div class="col-5">
@component('componentes.input', ['label' => 'Termo de Compromisso (.pdf)']) @component('componentes.input', ['label' => 'Termo de Compromisso (.pdf)'])
@endcomponent @endcomponent
</div> </div>
@if($subs->participanteSubstituto()->withTrashed()->first()->anexoTermoCompromisso) @if($subs->participanteSubstituto()->withTrashed()->first()->anexoTermoCompromisso)
...@@ -449,7 +465,7 @@ ...@@ -449,7 +465,7 @@
<div class="col-5"> <div class="col-5">
@component('componentes.input', ['label' => 'Comprovante de Matrícula (.pdf)']) @component('componentes.input', ['label' => 'Comprovante de Matrícula (.pdf)'])
@endcomponent @endcomponent
</div> </div>
@if($subs->participanteSubstituto()->withTrashed()->first()->anexoComprovanteMatricula) @if($subs->participanteSubstituto()->withTrashed()->first()->anexoComprovanteMatricula)
...@@ -465,7 +481,7 @@ ...@@ -465,7 +481,7 @@
<div class="row"> <div class="row">
<div class="col-5"> <div class="col-5">
@component('componentes.input', ['label' => 'Curriculo Lattes (.pdf)']) @component('componentes.input', ['label' => 'Curriculo Lattes (.pdf)'])
@endcomponent @endcomponent
</div> </div>
@if($subs->participanteSubstituto()->withTrashed()->first()->anexoLattes) @if($subs->participanteSubstituto()->withTrashed()->first()->anexoLattes)
...@@ -480,7 +496,7 @@ ...@@ -480,7 +496,7 @@
<div class="col-5"> <div class="col-5">
@component('componentes.input', ['label' => 'Autorização dos Pais (.pdf)']) @component('componentes.input', ['label' => 'Autorização dos Pais (.pdf)'])
@endcomponent @endcomponent
</div> </div>
...@@ -494,6 +510,22 @@ ...@@ -494,6 +510,22 @@
</div> </div>
@endif @endif
</div> </div>
<div class="row">
<div class="col-5">
@component('componentes.input', ['label' => 'Comprovante Bancário (.pdf, .jpg, .jpeg, .png)'])
@endcomponent
</div>
@if($subs->participanteSubstituto()->withTrashed()->first()->anexoComprovanteBancario)
<div class="col-1">
<a href="{{ route('baixar.documentosParticipante', ['pathDocumento' => $subs->participanteSubstituto()->withTrashed()->first()->anexoComprovanteBancario]) }}"><i class="fas fa-file-pdf fa-2x"></i></a>
</div>
@else
<div class="col-1 text-danger">
<p><i class="fas fa-times-circle fa-2x"></i></p>
</div>
@endif
</div>
<div class="row"> <div class="row">
......
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