Unverified Commit 82508a9a authored by GuilhermeGz's avatar GuilhermeGz Committed by GitHub
Browse files

Merge pull request #218 from GuilhermeGz/master

Mudança no card do participante
parents 0df4f471 d376ef7d
...@@ -114,23 +114,6 @@ ...@@ -114,23 +114,6 @@
@enderror @enderror
</div> </div>
</div> </div>
@for($i = 0; $i < $edital->numParticipantes; $i++)
<div class="form-group col-md-6" hidden id="arquivoPlano{{$i}}">
<label id="labelAnexoPlanoTrabalho{{$i}}" for="nomeTrabalho" class="col-form-label font-tam" style="font-weight: bold">Plano: </label>
<input type="file" class="input-group-text" value="{{old('anexoPlanoTrabalho')[$i] ?? "" }}" name="anexoPlanoTrabalho[{{$i}}]" id="anexoPlanoTrabalho[{{$i}}]" accept=".pdf" placeholder="Anexo do Plano de Trabalho" />
@error('anexoPlanoTrabalho.'.$i)
<span class="invalid-feedback" role="alert" style="overflow: visible; display:block">
<strong>{{ $message }}</strong>
</span>
@enderror
@error('anexoPlanoTrabalho')
<span class="invalid-feedback" role="alert" style="overflow: visible; display:block">
<strong>{{ $message }}</strong>
</span>
@enderror
<br>
</div>
@endfor
@endif @endif
</div> </div>
</div> </div>
......
...@@ -346,6 +346,21 @@ ...@@ -346,6 +346,21 @@
@enderror @enderror
@endcomponent @endcomponent
</div> </div>
<div class="col-12">
@component('componentes.input', ['label' => 'Anexo (.pdf)'])
<input type="file" class="input-group-text" value="{{old('anexoPlanoTrabalho')[$i] ?? "" }}" name="anexoPlanoTrabalho[{{$i}}]" accept=".pdf" placeholder="Anexo do Plano de Trabalho" />
@error('anexoPlanoTrabalho.'.$i)
<span class="invalid-feedback" role="alert" style="overflow: visible; display:block">
<strong>{{ $message }}</strong>
</span>
@enderror
@error('anexoPlanoTrabalho')
<span class="invalid-feedback" role="alert" style="overflow: visible; display:block">
<strong>{{ $message }}</strong>
</span>
@enderror
@endcomponent
</div>
<div class="col-6"> <div class="col-6">
<button data-dismiss="modal" type="button" id="cancelar{{$i}}" class=" btn btn-danger" style="font-size: 16px" onclick="desmarcar({{$i}})">Cancelar</button> <button data-dismiss="modal" type="button" id="cancelar{{$i}}" class=" btn btn-danger" style="font-size: 16px" onclick="desmarcar({{$i}})">Cancelar</button>
......
...@@ -195,14 +195,12 @@ ...@@ -195,14 +195,12 @@
if(nome.value != ""){ if(nome.value != ""){
if(planoTrabalho.value != ""){ if(planoTrabalho.value != ""){
linkNome.innerText = `Nome: ${nome.value} \n Título do Plano: ${planoTrabalho.value}`; linkNome.innerText = `Nome: ${nome.value} \n Plano: ${planoTrabalho.value}`;
}else { }else {
linkNome.innerText = `Nome: ${nome.value}`; linkNome.innerText = `Nome: ${nome.value}`;
} }
} }
document.getElementById("labelAnexoPlanoTrabalho"+id).innerHTML += document.getElementById("nomePlanoTrabalho"+id).value + `<span style="color: red"> *</span>`;
document.getElementById("arquivoPlano"+id).removeAttribute("hidden");
document.getElementById("checkB"+id).checked = true; document.getElementById("checkB"+id).checked = true;
$("#atribuir1").attr('data-target','#exampleModal'+(id+1)); $("#atribuir1").attr('data-target','#exampleModal'+(id+1));
document.getElementById("part"+id).removeAttribute("hidden"); document.getElementById("part"+id).removeAttribute("hidden");
......
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