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

Implementação do campo Comprovante Bancario nas telas relacionadas

parent 93963de9
...@@ -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){
......
...@@ -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">
......
...@@ -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">
...@@ -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