Unverified Commit 101e7bab authored by José Rômulo's avatar José Rômulo Committed by GitHub
Browse files

Merge pull request #160 from J-Romulo/master

Correções labels de submissão, vizualizar projeto
parents e1e3e16e 99a66d5d
...@@ -259,10 +259,10 @@ ...@@ -259,10 +259,10 @@
@endcomponent @endcomponent
</div> </div>
@php @php
$options = array('6' => 6, '7' => 7,'8' => 8,'9' => 9,'10' => 10,'11' => 11,'12' => 12); $options = array('3' => 3, '4' => 4, '5' => 5, '6' => 6, '7' => 7,'8' => 8,'9' => 9,'10' => 10,'11' => 11,'12' => 12);
@endphp @endphp
<div class="col-6"> <div class="col-6">
@component('componentes.select', ['label' => 'Total de períodos do curso']) @component('componentes.select', ['label' => 'Total de períodos/anos do curso'])
<select name="total_periodos[{{$i}}]" class="form-control" onchange="gerarPeriodo(this)" > <select name="total_periodos[{{$i}}]" class="form-control" onchange="gerarPeriodo(this)" >
<option value="" selected>-- Selecione uma opção --</option> <option value="" selected>-- Selecione uma opção --</option>
@foreach ($options as $key => $value) @foreach ($options as $key => $value)
......
...@@ -259,10 +259,10 @@ ...@@ -259,10 +259,10 @@
@endcomponent @endcomponent
</div> </div>
@php @php
$options = array('6' => 6, '7' => 7,'8' => 8,'9' => 9,'10' => 10,'11' => 11,'12' => 12); $options = array('3' => 3, '4' => 4,'5' => 5,'6' => 6, '7' => 7,'8' => 8,'9' => 9,'10' => 10,'11' => 11,'12' => 12);
@endphp @endphp
<div class="col-6"> <div class="col-6">
@component('componentes.select', ['label' => 'Total de períodos do curso']) @component('componentes.select', ['label' => 'Total de períodos/anos do curso'])
<select name="total_periodos[{{$i}}]" class="form-control" onchange="gerarPeriodo(this)" > <select name="total_periodos[{{$i}}]" class="form-control" onchange="gerarPeriodo(this)" >
<option value="" selected>-- Selecione uma opção --</option> <option value="" selected>-- Selecione uma opção --</option>
@foreach ($options as $key => $value) @foreach ($options as $key => $value)
...@@ -527,35 +527,58 @@ ...@@ -527,35 +527,58 @@
</div> </div>
<div class="col-md-12"><h5>Dados do curso</h5></div> <div class="col-md-12"><h5>Dados do curso</h5></div>
<div class="col-6"> <div class="col-6">
@component('componentes.input', ['label' => 'Instituição de Ensino']) @component('componentes.input', ['label' => 'Instituição de Ensino'])
<select style="display: inline" class="form-control" name="instituicao[{{$i}}]"> <select style="display: inline" onchange="showInstituicao(this)" class="form-control" name="instituicao[{{$i}}]">
<option selected value="UFAPE">Universidade Federal do Agreste de Pernambuco - UFAPE</option> <option value="" disabled selected hidden>-- Instituição --</option>
</select> <option @if(old('instituicao')[$i] ?? "" == 'UFAPE' ) selected @endif value="UFAPE">Universidade Federal do Agreste de Pernambuco - UFAPE</option>
@error('instituicao.'.$i) <option @if(old('instituicao')[$i] ?? "" == 'Outra' ) selected @endif value="Outra" >Outra</option>
<span class="invalid-feedback" role="alert" style="overflow: visible; display:block"> </select>
<strong>{{ $message }}</strong> @error('instituicao.'.$i)
</span> <span class="invalid-feedback" role="alert" style="overflow: visible; display:block">
@enderror <strong>{{ $message }}</strong>
@endcomponent </span>
</div> @enderror
@endcomponent
</div>
<div class="col-6" id="displayinstituicao[{{$i}}]" style='display:none'>
@component('componentes.input', ['label' => 'Digite a Instituição'])
<input id="outrainstituicao[{{$i}}]" type="text" class="form-control @error('instituicao') is-invalid @enderror" name="outrainstituicao[{{$i}}]" value="{{ old('outrainstituicao')[$i] ?? "" }}" placeholder="Digite o nome da Instituição" autocomplete="instituicao" autofocus>
@error('outrainstituicao.'.$i)
<span class="invalid-feedback" role="alert">
<strong>{{ $message }}</strong>
</span>
@enderror
@endcomponent
</div>
<div class="col-6"> <div class="col-6">
@component('componentes.input', ['label' => 'Curso']) @component('componentes.input', ['label' => 'Curso'])
<select style="display: inline" class="form-control" name="curso[{{$i}}]"> <select style="display: inline" class="form-control" name="curso[{{$i}}]" onchange="showCurso(this)">
<option value="" disabled selected hidden>-- Selecione uma opção--</option> <option value="" disabled selected hidden>-- Selecione uma opção--</option>
<option @if(old('curso')[$i] ?? "" == 'Bacharelado em Agronomia' ) selected @endif value="Bacharelado em Agronomia">Bacharelado em Agronomia</option> <option @if(old('curso')[$i] ?? "" == 'Bacharelado em Agronomia' ) selected @endif value="Bacharelado em Agronomia">Bacharelado em Agronomia</option>
<option @if(old('curso')[$i] ?? "" == 'Bacharelado em Ciência da Computação' ) selected @endif value="Bacharelado em Ciência da Computação">Bacharelado em Ciência da Computação</option> <option @if(old('curso')[$i] ?? "" == 'Bacharelado em Ciência da Computação' ) selected @endif value="Bacharelado em Ciência da Computação">Bacharelado em Ciência da Computação</option>
<option @if(old('curso')[$i] ?? "" == 'Bacharelado em Engenharia de Alimentos' ) selected @endif value="Bacharelado em Engenharia de Alimentos">Bacharelado em Engenharia de Alimentos</option> <option @if(old('curso')[$i] ?? "" == 'Bacharelado em Engenharia de Alimentos' ) selected @endif value="Bacharelado em Engenharia de Alimentos">Bacharelado em Engenharia de Alimentos</option>
<option @if(old('curso')[$i] ?? "" == 'Bacharelado em Medicina Veterinária' ) selected @endif value="Bacharelado em Medicina Veterinária">Bacharelado em Medicina Veterinária</option> <option @if(old('curso')[$i] ?? "" == 'Bacharelado em Medicina Veterinária' ) selected @endif value="Bacharelado em Medicina Veterinária">Bacharelado em Medicina Veterinária</option>
<option @if(old('curso')[$i] ?? "" == 'Bacharelado em Zootecnia' ) selected @endif value="Bacharelado em Zootecnia">Bacharelado em Zootecnia</option> <option @if(old('curso')[$i] ?? "" == 'Bacharelado em Zootecnia' ) selected @endif value="Bacharelado em Zootecnia">Bacharelado em Zootecnia</option>
<option @if(old('curso')[$i] ?? "" == 'Licenciatura em Letras' ) selected @endif value="Licenciatura em Letras">Licenciatura em Letras</option> <option @if(old('curso')[$i] ?? "" == 'Licenciatura em Letras' ) selected @endif value="Licenciatura em Letras">Licenciatura em Letras</option>
<option @if(old('curso')[$i] ?? "" == 'Licenciatura em Pedagogia' ) selected @endif value="Licenciatura em Pedagogia">Licenciatura em Pedagogia</option> <option @if(old('curso')[$i] ?? "" == 'Licenciatura em Pedagogia' ) selected @endif value="Licenciatura em Pedagogia">Licenciatura em Pedagogia</option>
</select> <option @if(old('curso')[$i] ?? "" == 'Outro' ) selected @endif value="Outro" >Outro</option>
</select>
@error('curso.'.$i) @error('curso.'.$i)
<span class="invalid-feedback" role="alert" style="overflow: visible; display:block"> <span class="invalid-feedback" role="alert" style="overflow: visible; display:block">
<strong>{{ $message }}</strong> <strong>{{ $message }}</strong>
</span> </span>
@enderror @enderror
@endcomponent @endcomponent
</div>
<div class="col-6" id="displaycurso[{{$i}}]" style='display:none'>
@component('componentes.input', ['label' => 'Digite o nome do curso'])
<input id="outrocurso[{{$i}}]" type="text" class="form-control" name="outrocurso[{{$i}}]" value="{{ old('outrocurso')[$i] ?? "" }}" placeholder="Digite o nome do curso" autocomplete="curso" autofocus>
@error('outrocurso.'.$i)
<span class="invalid-feedback" role="alert">
<strong>{{ $message }}</strong>
</span>
@enderror
@endcomponent
</div> </div>
<div class="col-6"> <div class="col-6">
@component('componentes.select', ['label' => 'Turno']) @component('componentes.select', ['label' => 'Turno'])
...@@ -573,10 +596,9 @@ ...@@ -573,10 +596,9 @@
@endcomponent @endcomponent
</div> </div>
@php @php
$options = array('6' => 6, '7' => 7,'8' => 8,'9' => 9,'10' => 10,'11' => 11,'12' => 12); $options = array('3' => 3, '4' => 4,'5' => 5,'6' => 6, '7' => 7,'8' => 8,'9' => 9,'10' => 10,'11' => 11,'12' => 12); @endphp
@endphp
<div class="col-6"> <div class="col-6">
@component('componentes.select', ['label' => 'Total de períodos do curso']) @component('componentes.select', ['label' => 'Total de períodos/anos do curso'])
<select name="total_periodos[{{$i}}]" class="form-control" onchange="gerarPeriodo(this)" > <select name="total_periodos[{{$i}}]" class="form-control" onchange="gerarPeriodo(this)" >
<option value="" selected>-- Selecione uma opção --</option> <option value="" selected>-- Selecione uma opção --</option>
@foreach ($options as $key => $value) @foreach ($options as $key => $value)
...@@ -591,7 +613,7 @@ ...@@ -591,7 +613,7 @@
@endcomponent @endcomponent
</div> </div>
<div class="col-6"> <div class="col-6">
@component('componentes.select', ['label' => 'Período atual']) @component('componentes.select', ['label' => 'Período/Ano atual'])
<select name="periodo_atual[]" class="form-control" > <select name="periodo_atual[]" class="form-control" >
<option selected value="{{ old('periodo_atual')[$i] ?? "" }}">{{ old('periodo_atual')[$i] ?? "" }}</option> <option selected value="{{ old('periodo_atual')[$i] ?? "" }}">{{ old('periodo_atual')[$i] ?? "" }}</option>
</select> </select>
......
...@@ -119,9 +119,9 @@ ...@@ -119,9 +119,9 @@
<label for="botao" class="col-form-label @error('botao') is-invalid @enderror" data-toggle="tooltip" data-placement="bottom" title="Se possuir, coloque todas em único arquivo pdf." style="margin-right: 15px;">{{ __('Possui autorizações especiais?') }} <span style="color: red; font-weight:bold">*</span></label> <label for="botao" class="col-form-label @error('botao') is-invalid @enderror" data-toggle="tooltip" data-placement="bottom" title="Se possuir, coloque todas em único arquivo pdf." style="margin-right: 15px;">{{ __('Possui autorizações especiais?') }} <span style="color: red; font-weight:bold">*</span></label>
</div> </div>
<div class="col-12"> <div class="col-12">
<input type="radio" @if($projeto->anexoAutorizacaoComiteEtica) checked @endif id="radioSim" onchange="displayAutorizacoesEspeciais('sim')"> <input type="radio" @if($projeto->anexoAutorizacaoComiteEtica) checked @endif id="radioSim" onchange="displayAutorizacoesEspeciais('sim')" disabled>
<label for="radioSim" style="margin-right: 5px">Sim</label> <label for="radioSim" style="margin-right: 5px">Sim</label>
<input type="radio" id="radioNao" @if($projeto->justificativaAutorizacaoEtica) checked @endif onchange="displayAutorizacoesEspeciais('nao')"> <input type="radio" id="radioNao" @if($projeto->justificativaAutorizacaoEtica) checked @endif onchange="displayAutorizacoesEspeciais('nao')" disabled>
<label for="radioNao" style="margin-right: 5px">Não</label><br> <label for="radioNao" style="margin-right: 5px">Não</label><br>
</div> </div>
</div> </div>
......
...@@ -136,10 +136,10 @@ ...@@ -136,10 +136,10 @@
@endcomponent @endcomponent
</div> </div>
@php @php
$options = array('6' => 6, '7' => 7,'8' => 8,'9' => 9,'10' => 10,'11' => 11,'12' => 12); $options = array('3' => 3, '4' => 4,'5' => 5,'6' => 6, '7' => 7,'8' => 8,'9' => 9,'10' => 10,'11' => 11,'12' => 12);
@endphp @endphp
<div class="col-6"> <div class="col-6">
@component('componentes.select', ['label' => 'Total de períodos do curso']) @component('componentes.select', ['label' => 'Total de períodos/anos do curso'])
<select name="total_periodos[]" class="form-control" onchange="gerarPeriodo(this)" disabled> <select name="total_periodos[]" class="form-control" onchange="gerarPeriodo(this)" disabled>
<option value="" disabled selected>-- Selecione uma opção --</option> <option value="" disabled selected>-- Selecione uma opção --</option>
@foreach ($options as $key => $value) @foreach ($options as $key => $value)
...@@ -149,7 +149,7 @@ ...@@ -149,7 +149,7 @@
@endcomponent @endcomponent
</div> </div>
<div class="col-6"> <div class="col-6">
@component('componentes.select', ['label' => 'Período atual']) @component('componentes.select', ['label' => 'Período/Ano atual'])
<select name="periodo_atual[]" class="form-control" disabled > <select name="periodo_atual[]" class="form-control" disabled >
<option value="" disabled selected>-- Selecione uma opção --</option> <option value="" disabled selected>-- Selecione uma opção --</option>
<option selected value="{{ $p->periodo_atual }}">{{ $p->periodo_atual }}</option> <option selected value="{{ $p->periodo_atual }}">{{ $p->periodo_atual }}</option>
......
...@@ -11,18 +11,13 @@ ...@@ -11,18 +11,13 @@
<div class="form-group col-md-12" style="margin-top: 15px"> <div class="form-group col-md-12" style="margin-top: 15px">
<label for="nomeCompletoProponente1">Proponente</label> <label for="nomeCompletoProponente1">Proponente</label>
<input class="form-control" type="text" id="nomeCompletoProponente1" name="nomeCoordenador" disabled="disabled" value="{{ Auth()->user()->name }}"> <input class="form-control" type="text" id="nomeCompletoProponente1" name="nomeCoordenador" disabled="disabled" value="{{ $projeto->proponente->user->name }}">
</div> </div>
<div class="form-group col-md-6"> <div class="form-group col-md-6">
<label for="linkLattesEstudante">Link do currículo Lattes<span style="color: red; font-weight:bold">*</span></label> <label for="linkLattesEstudante">Link do currículo Lattes<span style="color: red; font-weight:bold">*</span></label>
<input class="form-control @error('linkLattesEstudante') is-invalid @enderror" type="text" name="linkLattesEstudante" <input class="form-control @error('linkLattesEstudante') is-invalid @enderror" type="text" name="linkLattesEstudante" value="{{$projeto->linkLattesEstudante}}" disabled >
@if(Auth()->user()->proponentes != null && Auth()->user()->proponentes->linkLattes != null)
value="{{ Auth()->user()->proponentes->linkLattes }}"
@else
value=""
@endif disabled >
<small>Ex.: http://lattes.cnpq.br/8363536830656923</small> <small>Ex.: http://lattes.cnpq.br/8363536830656923</small>
@error('linkLattesEstudante') @error('linkLattesEstudante')
<span class="invalid-feedback" role="alert" style="overflow: visible; display:block"> <span class="invalid-feedback" role="alert" style="overflow: visible; display:block">
......
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