Commit d06b4784 authored by Yuri Resende's avatar Yuri Resende
Browse files

Padronizando a adição de participantes

parent b4b5e315
......@@ -217,10 +217,16 @@
if(nome.value != ""){
if(planoTrabalho != null && planoTrabalho.value != ""){
nomePlano.innerText = `Nome: ${nome.value} \n Plano: ${planoTrabalho.value} \n E-mail: ${email.value} \n CPF: ${cpf.value}\nFunção: ${nome_funcao}`;
nomePlano.innerHTML = ` <p style='font-weight: normal; line-height: normal;'><strong>Nome: </strong>${nome.value}<br>
<strong>E-mail: </strong>${email.value} <br>
<strong>Plano: </strong>${planoTrabalho.value}<br>
<strong>CPF: </strong>${cpf.value} <br>
<strong>Função: </strong>${funcaoParticipantes[funcao.value -1].nome}</p>`;
}else {
nomePlano.innerText = `Nome: ${nome.value} \n E-mail: ${email.value} \n CPF: ${cpf.value}\nFunção: ${nome_funcao}`;
nomePlano.innerHTML = ` <p style='font-weight: normal; line-height: normal;'><strong>Nome: </strong>${nome.value}<br>
<strong>E-mail: </strong>${email.value} <br>
<strong>CPF: </strong>${cpf.value} <br>
<strong>Função: </strong>${funcaoParticipantes[funcao.value -1].nome}</p>`;
}
}else{
nomePlano.innerText = `Discente `+(id+1);
......
......@@ -52,43 +52,38 @@
<div class="col-sm-8"
style="display: flex; align-items: center;">
<div class="col-sm-12">
@if ($participante)
<p>
@if (isset(old('name')[$i]))
Nome: {{ old('name')[$i] }}
<strong>Nome: </strong> {{ old('name')[$i] }}
@else
Nome: {{ $participante->user->name }}
<strong>Nome: </strong>{{ $participante->user->name }}
@endif
<br>
@if($edital->tipo != "CONTINUO")
@if (isset(old('nomePlanoTrabalho')[$i]))
Plano: {{ old('nomePlanoTrabalho')[$i] }}
@else
Plano:
{{ $participante->planoTrabalho->titulo ?? 'Não informado' }}
@endif
@endif
@if (isset(old('email')[$i]))
E-mail: {{ old('email')[$i] }}
<strong>E-mail: </strong>{{ old('email')[$i] }}
@else
E-mail: {{ $participante->user->email }}
<strong>E-mail: </strong>{{ $participante->user->email }}
@endif
<br>
@if (isset(old('cpf')[$i]))
CPF:{{ old('cpf')[$i] }}
<strong>CPF: </strong>{{ old('cpf')[$i] }}
@else
CPF: {{ $participante->user->cpf }}
<strong>CPF: </strong>{{ $participante->user->cpf }}
@endif
<br>
@if (isset(old('funcao')[$i]))
Função: {{ old('funcao')[$i] }}
<strong>Função: </strong> {{ old('funcao')[$i] }}/
@else
Função: {{ $trabalhos_user[$i]->funcao->nome }}
<strong>Função: </strong> {{ $trabalhos_user[$i]->funcao->nome }}
@endif
</p>
@endif
<h6>
<a id="nomePart{{ $i + 1 }}"></a>
......
......@@ -236,9 +236,16 @@
if(nome.value != ""){
if(planoTrabalho != null && planoTrabalho.value != ""){
linkNome.innerText = `Nome: ${nome.value} \n Plano: ${planoTrabalho.value} \n E-mail: ${email.value} \n CPF: ${cpf.value}\nFunção: ${funcaoParticipantes[funcao.value -1].nome}`;
linkNome.innerHTML = ` <p style='font-weight: normal; line-height: normal;'><strong>Nome: </strong>${nome.value}<br>
<strong>E-mail: </strong>${email.value} <br>
<strong>Plano: </strong>${planoTrabalho.value}<br>
<strong>CPF: </strong>${cpf.value} <br>
<strong>Função: </strong>${funcaoParticipantes[funcao.value -1].nome}</p>`;
}else {
linkNome.innerText = `Nome: ${nome.value} \n E-mail: ${email.value} \n CPF: ${cpf.value}\nFunção: ${funcaoParticipantes[funcao.value -1].nome}`;
linkNome.innerHTML = ` <p style='font-weight: normal; line-height: normal;'><strong>Nome: </strong>${nome.value}<br>
<strong>E-mail: </strong>${email.value} <br>
<strong>CPF: </strong>${cpf.value} <br>
<strong>Função: </strong>${funcaoParticipantes[funcao.value -1].nome}</p>`;
}
}
......
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