"git@sites.upe.br:walter.felipe/submeta.git" did not exist on "92b0234e0f6cb44451262918ec870b99cd98e9b9"
Unverified Commit 6ea824cf authored by Laboratório Multidisciplinar de Tecnologias Sociais's avatar Laboratório Multidisciplinar de Tecnologias Sociais Committed by GitHub
Browse files

Merge pull request #184 from GuilhermeGz/master

Atualizações do Sistema
parents b3f9089b 5fd7aa87
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
<div class="row"> <div class="row">
<div class="col-6"> <div class="col-6">
@component('componentes.input', ['label' => 'RG']) @component('componentes.input', ['label' => 'RG'])
<input type="number" class="form-control" min="1" maxlength="12" value="{{$participante->rg}}" name="rg" placeholder="RG" disabled /> <input type="text" class="form-control" min="1" maxlength="12" value="{{$participante->rg}}" name="rg" placeholder="RG" disabled />
@endcomponent @endcomponent
</div> </div>
<div class="col-6"> <div class="col-6">
...@@ -278,6 +278,16 @@ ...@@ -278,6 +278,16 @@
@enderror @enderror
@endcomponent @endcomponent
</div> </div>
<div class="col-6">
@component('componentes.input', ['label' => 'Data de Entrada'])
<input type="date" class="form-control" value="" name="data_entrada" placeholder="Data de Entrada" id="dt_entrada{{$participante->id}}" required />
@error('data_entrada')
<span class="invalid-feedback" role="alert" style="overflow: visible; display:block">
<strong>{{ $message }}</strong>
</span>
@enderror
@endcomponent
</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 >
......
<form method="POST" id="SubParticForm" action="{{route('trabalho.infoTrocaParticipante')}}" enctype="multipart/form-data">
@csrf
<input type="hidden" name="editalId" value="{{$edital->id}}">
<input type="hidden" name="participanteId" value="{{$participante->id}}">
<input type="hidden" name="projetoId" value="{{$projeto->id}}">
<div class="container-fluid">
<div class="row">
<div hidden>
<div class="col-12 mb-3">
<div class="form-check">
<input class="form-check-input" type="checkbox" value="check" id="apenasManterPlano{{$participante->id}}" name="substituirApenasPlanoCheck" onchange="substituirApenasPlano(this)" checked>
<label class="form-check-label" for="apenasPlano{{$participante->id}}">
Substituir apenas o plano de trabalho
</label>
</div>
</div>
<div class="col-md-12 mt-3">
<h5>Dados do discente</h5>
</div>
<div class="col-6">
@component('componentes.input', ['label' => 'Nome completo'])
<input type="text" class="form-control " @value="" name="name" placeholder="Nome Completo" maxlength="150" id="nomeManter{{$participante->id}}" disabled />
<span style="color: red; font-size: 12px" id="caracsRestantesnome{{$participante->id}}">
</span>
@error("name")
<span class="invalid-feedback" role="alert" style="overflow: visible; display:block">
<strong>{{ $message }}</strong>
</span>
@enderror
@endcomponent
</div>
<div class="col-6">
@component('componentes.input', ['label' => 'E-mail'])
<input type="email" class="form-control" value="" name="email" placeholder="E-mail" maxlength="150" id="emailManter{{$participante->id}}" disabled />
<span style="color: red; font-size: 12px" id="caracsRestantesemail{{$participante->id}}">
</span>
@error('email')
<span class="invalid-feedback" role="alert" style="overflow: visible; display:block">
<strong>{{ $message }}</strong>
</span>
@enderror
@endcomponent
</div>
<div class="col-6">
@component('componentes.input', ['label' => 'Data de nascimento'])
<input type="date" class="form-control" value="" name="data_de_nascimento" placeholder="Data de nascimento" id="nascimentoManter{{$participante->id}}" disabled />
@error('data_de_nascimento')
<span class="invalid-feedback" role="alert" style="overflow: visible; display:block">
<strong>{{ $message }}</strong>
</span>
@enderror
@endcomponent
</div>
<div class="col-6 {{ $errors->has('cpf') ? ' has-error' : '' }}">
@component('componentes.input', ['label' => 'CPF'])
<input type="text" class="form-control cpf @error('cpf') is-invalid @enderror" value=""
onchange="checarCPFdoCampo(this)"
name="cpf" placeholder="CPF" id="cpfManter{{$participante->id}}" disabled autofocus autocomplete="cpf"/>
@error('cpf')
<span class="help-block">
<strong>{{ $message }}</strong>
</span>
@enderror
@endcomponent
</div>
<div class="col-6">
@component('componentes.input', ['label' => 'RG'])
<input type="text" class="form-control rg" value="" name="rg" placeholder="RG" id="rgManter{{$participante->id}}" disabled />
@error('rg')
<span class="invalid-feedback" role="alert" style="overflow: visible; display:block">
<strong>{{ $message }}</strong>
</span>
@enderror
@endcomponent
</div>
<div class="col-6">
@component('componentes.input', ['label' => 'Celular'])
<input type="tel" class="form-control celular" value="" name="celular" placeholder="Celular" id="celularManter{{$participante->id}}" disabled />
@error('celular')
<span class="invalid-feedback" role="alert" style="overflow: visible; display:block">
<strong>{{ $message }}</strong>
</span>
@enderror
@endcomponent
</div>
<div class="col-6">
@component('componentes.input', ['label' => 'Data de Entrada'])
<input type="date" class="form-control" value="" name="data_entrada" placeholder="Data de Entrada" id="dt_entradaManter{{$participante->id}}" disabled />
@error('data_entrada')
<span class="invalid-feedback" role="alert" style="overflow: visible; display:block">
<strong>{{ $message }}</strong>
</span>
@enderror
@endcomponent
</div>
<div class="form-group col-md-6">
@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="linkLattesManter{{$participante->id}}" disabled >
<small>Ex.: http://lattes.cnpq.br/8363536830656923</small>
@error('linkLattes')
<span class="invalid-feedback" role="alert" style="overflow: visible; display:block">
<strong>{{ $message }}</strong>
</span>
@enderror
@endcomponent
</div>
<div class="col-md-12">
<h5>Endereço</h5>
</div>
<div class="col-6">
@component('componentes.input', ['label' => 'CEP'])
<input type="text" class="form-control cep" value="" name="cep" placeholder="CEP" id="cepManter{{$participante->id}}" disabled />
@error('cep')
<span class="invalid-feedback" role="alert" style="overflow: visible; display:block">
<strong>{{ $message }}</strong>
</span>
@enderror
@endcomponent
</div>
<div class="col-6">
@component('componentes.select', ['label' => 'Estado'])
<select name="uf" class="form-control" style="visibility: visible" id="estadoManter{{$participante->id}}" disabled>
<option value="" selected>-- Selecione uma opção --</option>
@foreach ($estados as $sigla => $nome)
<option value="{{ $sigla }}">{{ $nome }}</option>
@endforeach
</select>
@error('uf')
<span class="invalid-feedback" role="alert" style="overflow: visible; display:block">
<strong>{{ $message }}</strong>
</span>
@enderror
@endcomponent
</div>
<div class="col-6">
@component('componentes.input', ['label' => 'Cidade'])
<input type="text" class="form-control" value="" name="cidade" placeholder="Cidade" maxlength="50" id="cidadeManter{{$participante->id}}" disabled />
<span style="color: red; font-size: 12px" id="caracsRestantescidade{{$participante->id}}">
</span>
@error('cidade')
<span class="invalid-feedback" role="alert" style="overflow: visible; display:block">
<strong>{{ $message }}</strong>
</span>
@enderror
@endcomponent
</div>
<div class="col-6">
@component('componentes.input', ['label' => 'Bairro'])
<input type="text" class="form-control" value="" name="bairro" placeholder="Bairro" maxlength="50" id="bairroManter{{$participante->id}}" disabled />
<span style="color: red; font-size: 12px" id="caracsRestantesbairro{{$participante->id}}">
</span>
@error('bairro')
<span class="invalid-feedback" role="alert" style="overflow: visible; display:block">
<strong>{{ $message }}</strong>
</span>
@enderror
@endcomponent
</div>
<div class="col-6">
@component('componentes.input', ['label' => 'Rua'])
<input type="text" class="form-control" value="" name="rua" placeholder="Rua" maxlength="100" id="ruaManter{{$participante->id}}" disabled />
<span style="color: red; font-size: 12px" id="caracsRestantesrua{{$participante->id}}">
</span>
@error('rua')
<span class="invalid-feedback" role="alert" style="overflow: visible; display:block">
<strong>{{ $message }}</strong>
</span>
@enderror
@endcomponent
</div>
<div class="col-6">
@component('componentes.input', ['label' => 'Número'])
<input type="text" class="form-control" value="" name="numero" placeholder="Número" id="numeroManter{{$participante->id}}" disabled />
@error('numero')
<span class="invalid-feedback" role="alert" style="overflow: visible; display:block">
<strong>{{ $message }}</strong>
</span>
@enderror
@endcomponent
</div>
<div class="col-12">
<div class="form-group">
<label class=" control-label" for="firstname">Complemento</label>
<input type="text" class="form-control" value="" name="complemento" placeholder="Complemento" maxlength="75" id="complementoManter{{$participante->id}}" disabled/>
<span style="color: red; font-size: 12px" id="caracsRestantescomplemento{{$participante->id}}">
</span>
@error('complemento')
<span class="invalid-feedback" role="alert" style="overflow: visible; display:block">
<strong>{{ $message }}</strong>
</span>
@enderror
</div>
</div>
<div class="col-md-12">
<h5>Dados do curso</h5>
</div>
<div class="col-6">
@component('componentes.input', ['label' => 'Instituição de Ensino'])
<select style="display: inline" onchange="showInstituicao(this)" class="form-control" name="instituicao" id="instituicaoManter[{{$participante->id}}]" disabled>
<option value="" disabled selected hidden>-- Instituição --</option>
<option value="UFAPE">Universidade Federal do Agreste de Pernambuco - UFAPE</option>
<option value="Outra">Outra</option>
</select>
@error('instituicao')
<span class="invalid-feedback" role="alert" style="overflow: visible; display:block">
<strong>{{ $message }}</strong>
</span>
@enderror
@endcomponent
</div>
<div class="col-6" id="displayinstituicao[{{$participante->id}}]" style='display:none'>
@component('componentes.input', ['label' => 'Digite a Instituição'])
<input id="outrainstituicaoManter[{{$participante->id}}]" type="text" class="form-control @error('instituicao') is-invalid @enderror" name="outrainstituicao" value="" placeholder="Digite o nome da Instituição" autocomplete="instituicao" autofocus>
@error('outrainstituicao')
<span class="invalid-feedback" role="alert">
<strong>{{ $message }}</strong>
</span>
@enderror
@endcomponent
</div>
<div class="col-6">
@component('componentes.input', ['label' => 'Curso'])
<select style="display: inline" class="form-control" name="curso" onchange="showCurso(this)" id="cursoManter[{{$participante->id}}]" disabled>
<option value="" disabled selected hidden>-- Selecione uma opção--</option>
<option value="Bacharelado em Agronomia">Bacharelado em Agronomia</option>
<option value="Bacharelado em Ciência da Computação">Bacharelado em Ciência da Computação</option>
<option value="Bacharelado em Engenharia de Alimentos">Bacharelado em Engenharia de Alimentos</option>
<option value="Bacharelado em Medicina Veterinária">Bacharelado em Medicina Veterinária</option>
<option value="Bacharelado em Zootecnia">Bacharelado em Zootecnia</option>
<option value="Licenciatura em Letras">Licenciatura em Letras</option>
<option value="Licenciatura em Pedagogia">Licenciatura em Pedagogia</option>
<option value="Outro">Outro</option>
</select>
@error('curso')
<span class="invalid-feedback" role="alert" style="overflow: visible; display:block">
<strong>{{ $message }}</strong>
</span>
@enderror
@endcomponent
</div>
<div class="col-6" id="displaycurso[{{$participante->id}}]" style='display:none'>
@component('componentes.input', ['label' => 'Digite o nome do curso'])
<input id="outrocursoManter[{{$participante->id}}]" type="text" class="form-control" name="outrocurso" value="" placeholder="Digite o nome do curso" autocomplete="curso" autofocus>
@error('outrocurso')
<span class="invalid-feedback" role="alert">
<strong>{{ $message }}</strong>
</span>
@enderror
@endcomponent
</div>
<div class="col-6">
@component('componentes.select', ['label' => 'Turno'])
<select name="turno" class="form-control" id="turnoManter{{$participante->id}}" disabled>
<option value="" selected>-- Selecione uma opção --</option>
@foreach ($enum_turno as $key => $value)
<option value="{{ $value }}">{{ $value }}</option>
@endforeach
</select>
@error('turno')
<span class="invalid-feedback" role="alert" style="overflow: visible; display:block">
<strong>{{ $message }}</strong>
</span>
@enderror
@endcomponent
</div>
@php
$options = array('3' => 3, '4' => 4, '5' => 5, '6' => 6, '7' => 7,'8' => 8,'9' => 9,'10' => 10,'11' => 11,'12' => 12);
@endphp
<div class="col-6">
@component('componentes.select', ['label' => 'Total de períodos/anos do curso'])
<select name="total_periodos" class="form-control" onchange="gerarPeriodo(this)" id="periodosTotalManter{{$participante->id}}" disabled>
<option value="" selected>-- Selecione uma opção --</option>
@foreach ($options as $key => $value)
<option value="{{ $key }}">{{ $value }}</option>
@endforeach
</select>
@error('total_periodos')
<span class="invalid-feedback" role="alert" style="overflow: visible; display:block">
<strong>{{ $message }}</strong>
</span>
@enderror
@endcomponent
</div>
<div class="col-6">
@component('componentes.select', ['label' => 'Período/Ano atual'])
<select name="periodo_atual" class="form-control" id="periodoManter{{$participante->id}}" disabled>
<option value="" selected>-- Selecione uma opção --</option>
</select>
@error('periodo_atual')
<span class="invalid-feedback" role="alert" style="overflow: visible; display:block">
<strong>{{ $message }}</strong>
</span>
@enderror
@endcomponent
</div>
<div class="col-6">
@component('componentes.select', ['label' => 'Ordem de prioridade'])
<select name="ordem_prioridade" class="form-control" id="ordemManter{{$participante->id}}" disabled>
<option value="" selected>-- ORDEM --</option>
@for($j = 1; $j <= 3; $j++) <option value="{{ $j }}">{{ $j }}</option>
@endfor
</select>
@error('ordem_prioridade')
<span class="invalid-feedback" role="alert" style="overflow: visible; display:block">
<strong>{{ $message }}</strong>
</span>
@enderror
@endcomponent
</div>
<div class="col-6">
@component('componentes.input', ['label' => 'Coeficiente de rendimento'])
<input type="number" class="form-control media" value="" name="media_do_curso" min="0" max="10" step="0.01" id="mediaManter{{$participante->id}}" disabled>
@error('media_do_curso')
<span class="invalid-feedback" role="alert" style="overflow: visible; display:block">
<strong>{{ $message }}</strong>
</span>
@enderror
@endcomponent
</div>
<div class="col-md-12">
<h5>Documentação Complementar</h5>
</div>
<div class="col-6">
@component('componentes.input', ['label' => 'Termo de Compromisso (.pdf)'])
<input type="file" class="input-group-text pdf" value="" name="anexoTermoCompromisso" accept=".pdf" placeholder="Anexo do Termo de Compromisso" id="anexoTermoCompromissoManter{{$participante->id}}" disabled />
@error('anexoTermoCompromisso')
<span class="invalid-feedback" role="alert" style="overflow: visible; display:block">
<strong>{{ $message }}</strong>
</span>
@enderror
@endcomponent
</div>
<div class="col-6">
@component('componentes.input', ['label' => 'Comprovante de Matrícula (.pdf)'])
<input type="file" class="input-group-text pdf" value="" name="anexoComprovanteMatricula" accept=".pdf" placeholder="Anexo do Comprovante de Matrícula" id="anexoComprovanteMatriculaManter{{$participante->id}}" disabled />
@error('anexoComprovanteMatrícula')
<span class="invalid-feedback" role="alert" style="overflow: visible; display:block">
<strong>{{ $message }}</strong>
</span>
@enderror
@endcomponent
</div>
<div class="col-6">
@component('componentes.input', ['label' => 'Currículo Lattes (.pdf)'])
<input type="file" class="input-group-text pdf" value="" name="anexoCurriculoLattes" accept=".pdf" placeholder="Anexo do Currículo Lattes" id="anexoCurriculoLattesManter{{$participante->id}}" disabled />
@error('anexoCurriculoLattes')
<span class="invalid-feedback" role="alert" style="overflow: visible; display:block">
<strong>{{ $message }}</strong>
</span>
@enderror
@endcomponent
</div>
<div class="col-6">
<label class="control-label">Autorização dos Pais (.pdf)</label>
<input type="file" class="input-group-text pdf" value="" name="anexoAutorizacaoPais" accept=".pdf" placeholder="Anexo da Autorização dos Pais" id="anexoAutorizacaoPaisManter{{$participante->id}}" disabled/>
@error('anexoAutorizacaoPais')
<span class="invalid-feedback" role="alert" style="overflow: visible; display:block">
<strong>{{ $message }}</strong>
</span>
@enderror
<span style="font-size:small">Anexo obrigatório para discentes menores de 18 anos</span>
</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=".jpeg,.jpg,.png,.pdf" placeholder="Anexo do Comprovante Bancário" id="anexoComprovanteBancarioManter{{$participante->id}}" disabled/>
<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>
<div class="col-12 mb-3 mt-3" hidden>
<div class="form-check">
<input class="form-check-input" type="checkbox" value="check" id="manter{{$participante->id}}" name="manterPlanoCheck" onchange="manterPlano(this)">
<label class="form-check-label" for="manter{{$participante->id}}">
Manter o plano de trabalho
</label>
</div>
</div>
<div class="col-md-12">
<h5>Plano de trabalho</h5>
</div>
<div class="col-12" id="arqParticipante">
@component('componentes.input', ['label' => 'Título'])
<input type="text" class="form-control" value="" name="nomePlanoTrabalho" placeholder="Digite o título do plano de trabalho" maxlength="255" id="nomePlanoTrabalhoManter{{$participante->id}}" required>
<span style="color: red; font-size: 12px" id="caracsRestantesnomePlanoTrabalho{{$participante->id}}">
</span>
@error('nomePlanoTrabalho')
<span class="invalid-feedback" role="alert" style="overflow: visible; display:block">
<strong>{{ $message }}</strong>
</span>
@enderror
@endcomponent
</div>
<div class="col-6" id="arqParticipantes">
@component('componentes.input', ['label' => 'Anexo (.pdf)'])
<input type="file" class="input-group-text" value="" name="anexoPlanoTrabalho" accept=".pdf" placeholder="Anexo do Plano de Trabalho" id="anexoPlanoTrabalhoManter{{$participante->id}}" required />
@error('anexoPlanoTrabalho')
<span class="invalid-feedback" role="alert" style="overflow: visible; display:block">
<strong>{{ $message }}</strong>
</span>
@enderror
@endcomponent
</div>
<div class="col-6" id="arqAtual" hidden>
@component('componentes.input', ['label' => 'Anexo (.pdf)'])
<a href="" id="arquivoManter{{$participante->id}}" style="padding-left: 20px"><i class="fas fa-file-pdf fa-2x"></i></a>
@endcomponent
</div>
<h1 id="teste"></h1>
<div class="col-md-12">
<h5>Observações</h5>
</div>
<div class="col-12">
<textarea class="form-control" id="observacaoTextArea" rows="3" name="textObservacao" ></textarea>
</div>
<div class="col-12 mt-4">
<button type="submit" class="btn btn-success" id="idButtonSubmitParticipante">Salvar</button>
</div>
</div>
</div>
</form>
\ No newline at end of file
...@@ -46,7 +46,12 @@ ...@@ -46,7 +46,12 @@
<td> <td>
{{ $user->name }} {{ $user->name }}
</td> </td>
<td>{{ $user->tipo }}</td> @if($user->tipo != "avaliador")
<td>{{ $user->tipo }}</td>
@else
<td>{{ $user->tipo }} - {{ $user->avaliadors->tipo }} </td>
@endif
<td>{{ $user->creaet_at }}</td> <td>{{ $user->creaet_at }}</td>
<td> <td>
<div class="btn-group dropright dropdown-options"> <div class="btn-group dropright dropdown-options">
......
@extends('layouts.app')
@section('content')
<div class="container content">
<div class="row justify-content-center">
<div class="col-sm-12">
<div class="card" style="margin-top:50px">
<div class="card-body">
<a href="{{url()->previous()}}" class="btn btn-primary mb-2"> Voltar</a>
<h5 class="card-title">Parecer do avaliador: {{ $avaliador->user->name }}</h5>
<h6 class="card-title">Trabalho: {{ $trabalho->titulo }}</h6>
<p class="card-text">
<h3>Informações do proponente</h3>
{{-- Coordenador --}}
<div class="row">
<div class="col-sm-6">
<label for="nomeTrabalho" class="col-form-label">Link Lattes do Proponente</label>
<span class="form-control" name="linkLattesEstudante">
@if(App\Proponente::where('id', $trabalho->proponente_id)->first()->linkLattes != null)
{{ App\Proponente::where('id', $trabalho->proponente_id)->first()->linkLattes }}
@endif
</span>
</div>
<div class="col-sm-6" style="top: 40px;">
<label for="aceito">{{ __('Aceito') }}</label>
<input type="radio" name="anexoLinkLattes" value="aceito" @if($parecer!=null && $parecer->statusLinkLattesProponente =='aceito') checked @else disabled @endif required>
<label for="recusado" >{{ __('Recusado') }}</label>
<input type="radio" name="anexoLinkLattes" value="recusado" @if($parecer!=null && $parecer->statusLinkLattesProponente =='recusado') checked @else disabled @endif>
</div>
<div class="col-sm-6" >
<label for="nomeTrabalho" class="col-form-label">{{ __('Link do grupo de pesquisa:') }}</label>
<span class="form-control" name="linkGrupo">{{ $trabalho->linkGrupoPesquisa }}</span>
</div>
<div class="col-sm-6" style="top: 40px;">
<label for="aceito" style="left: auto">{{ __('Aceito') }}</label>
<input type="radio" name="anexoGrupoPesquisa" value="aceito" @if($parecer!=null && $parecer->statusLinkGrupoPesquisa =='aceito' ) checked @else disabled @endif required>
<label for="recusado">{{ __('Recusado') }}</label>
<input type="radio" name="anexoGrupoPesquisa" value="recusado" @if($parecer!=null && $parecer->statusLinkGrupoPesquisa =='recusado' ) checked @else disabled @endif>
</div>
</div>
<h3>Anexos</h3>
{{-- Anexo do Projeto --}}
<div class="row">
{{-- Arquivo --}}
<div class="col-sm-3">
<label for="anexoProjeto" class="col-form-label">{{ __('Projeto: ') }}</label>
<a href="{{ route('baixar.anexo.projeto', ['id' => $trabalho->id])}}">Arquivo</a>
</div>
<div class="col-sm-3" style="top: 5px; text-align: right">
<label for="aceito" style="left: auto">{{ __('Aceito') }}</label>
<input type="radio" name="anexoProjeto" value="aceito" @if($parecer!=null && $parecer->statusAnexoProjeto =='aceito' ) checked @else disabled @endif required>
<label for="recusado">{{ __('Recusado') }}</label>
<input type="radio" name="anexoProjeto" value="recusado" @if($parecer!=null && $parecer->statusAnexoProjeto =='recusado' ) checked @else disabled @endif>
</div>
<div class="col-sm-3">
<label for="anexoLatterCoordenador" class="col-form-label">{{ __('Lattes do Coordenador: ') }}</label>
<a href="{{ route('baixar.anexo.lattes', ['id' => $trabalho->id]) }}">Arquivo</a>
</div>
<div class="col-sm-3" style="top: 5px; text-align: right">
<label for="aceito" style="left: auto">{{ __('Aceito') }}</label>
<input type="radio" name="anexoLattesCoordenador" value="aceito" @if($parecer!=null && $parecer->statusAnexoLattesCoordenador =='aceito' ) checked @else disabled @endif required>
<label for="recusado">{{ __('Recusado') }}</label>
<input type="radio" name="anexoLattesCoordenador" value="recusado" @if($parecer!=null && $parecer->statusAnexoLattesCoordenador =='recusado' ) checked @else disabled @endif>
</div>
<div class="col-sm-3">
<label for="anexoPlanilha" class="col-form-label">{{ __('Planilha de Pontuação: ') }}</label>
<a href="{{ route('baixar.anexo.planilha', ['id' => $trabalho->id]) }}">Arquivo</a>
</div>
<div class="col-sm-3" style="top: 5px; text-align: right">
<label for="aceito" style="left: auto">{{ __('Aceito') }}</label>
<input type="radio" name="anexoPlanilha" value="aceito" @if($parecer!=null && $parecer->statusAnexoPlanilhaPontuacao =='aceito' ) checked @else disabled @endif required>
<label for="recusado">{{ __('Recusado') }}</label>
<input type="radio" name="anexoPlanilha" value="recusado" @if($parecer!=null && $parecer->statusAnexoPlanilhaPontuacao =='recusado' ) checked @else disabled @endif>
</div>
@if($evento->tipo == 'PIBIC' || $evento->tipo == 'PIBIC-EM')
{{-- Decisão do CONSU --}}
<div class="col-sm-3">
<label for="anexoCONSU" class="col-form-label">{{ __('Decisão do CONSU: ') }}</label>
<a href="{{ route('baixar.anexo.consu', ['id' => $trabalho->id]) }}">Arquivo</a>
</div>
<div class="col-sm-3" style="top: 5px; text-align: right">
<label for="aceito" style="left: auto">{{ __('Aceito') }}</label>
<input type="radio" name="anexoConsu" value="aceito" @if($parecer!=null && $parecer->statusAnexoDecisaoCONSU =='aceito' ) checked @else disabled @endif required>
<label for="recusado">{{ __('Recusado') }}</label>
<input type="radio" name="anexoConsu" value="recusado" @if($parecer!=null && $parecer->statusAnexoDecisaoCONSU =='recusado' ) checked @else disabled @endif>
</div>
@endif
<div class="col-sm-3">
<label for="nomeTrabalho" class="col-form-label">{{ __('Autorização do Comitê de Ética: ') }}</label>
@if($trabalho->anexoAutorizacaoComiteEtica != null)
<a href="{{ route('baixar.anexo.comite', ['id' => $trabalho->id]) }}">Arquivo</a>
@else
-
@endif
</div>
<div class="col-sm-3" style="top: 5px; text-align: right">
<label for="aceito" style="left: auto">{{ __('Aceito') }}</label>
<input type="radio" name="anexoComiteEtica" value="aceito" @if($parecer!=null && $parecer->statusAnexoAtuorizacaoComiteEtica =='aceito' ) checked @else disabled @endif required>
<label for="recusado">{{ __('Recusado') }}</label>
<input type="radio" name="anexoComiteEtica" value="recusado" @if($parecer!=null && $parecer->statusAnexoAtuorizacaoComiteEtica =='recusado' ) checked @else disabled @endif>
</div>
<div class="col-sm-3">
<label for="nomeTrabalho" class="col-form-label">{{ __('Justificativa: ') }}</label>
@if($trabalho->justificativaAutorizacaoEtica != null)
<a href="{{ route('baixar.anexo.justificativa', ['id' => $trabalho->id]) }}">Arquivo</a>
@else
-
@endif
</div>
<div class="col-sm-3" style="top: 5px; text-align: right">
<label for="aceito" style="left: auto">{{ __('Aceito') }}</label>
<input type="radio" name="anexoJustificativa" value="aceito" @if($parecer!=null && $parecer->statusJustificativaAutorizacaoEtica =='aceito' ) checked @else disabled @endif required>
<label for="recusado">{{ __('Recusado') }}</label>
<input type="radio" name="anexoJustificativa" value="recusado" @if($parecer!=null && $parecer->statusJustificativaAutorizacaoEtica =='recusado' ) checked @else disabled @endif>
</div>
{{--Planos de trabalho--}}
<div class="col-sm-3">
<label for="nomeTrabalho" class="col-form-label">{{ __('Plano de Trabalho: ') }}</label>
@if ($trabalho->participantes != null)
<a href=" " data-toggle="modal" data-target="#modalPlanos">Planos</a>
@else
-
@endif
</div>
<div class="col-sm-3" style="top: 5px; text-align: right">
<label for="aceito" style="left: auto">{{ __('Aceito') }}</label>
<input type="radio" name="anexoPlano" value="aceito" @if($parecer!=null && $parecer->statusPlanoTrabalho =='aceito' ) checked @else disabled @endif >
<label for="recusado">{{ __('Recusado') }}</label>
<input type="radio" name="anexoPlano" value="recusado" @if($parecer!=null && $parecer->statusPlanoTrabalho =='recusado' ) checked @else disabled @endif>
</div>
{{--Modal planos de trabalho--}}
<div class="modal fade" id="modalPlanos" tabindex="-1" role="dialog"
aria-labelledby="modalPlanosLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title" id="modalPlanosLabel" align="center">
Planos de Trabalho</h4>
</div>
<div class="modal-body">
@foreach( $trabalho->participantes as $participante)
@php
if( App\Arquivo::where('participanteId', $participante->id)->first() != null){
$planoTrabalho = App\Arquivo::where('participanteId', $participante->id)->first();
}else{
$planoTrabalho = null;
}
@endphp
<div class="col-sm-12">
<label for="nomeTrabalho" class="col-form-label">{{ __('Plano de Trabalho: ') }}</label>
@if ($planoTrabalho != null)
<a href="{{route('download', ['file' => $planoTrabalho->nome])}}">{{$planoTrabalho->titulo}}</a>
@else
-
@endif
</div>
@endforeach
</div>
<div class="modal-footer">
<button type="button" class="btn btn-danger" data-dismiss="modal">
Fechar
</button>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
@endsection
@section('javascript')
<script type="text/javascript">
</script>
@endsection
...@@ -46,7 +46,7 @@ ...@@ -46,7 +46,7 @@
<thead> <thead>
<tr> <tr>
<th scope="col" style="width:100%">Nome do Edital</th> <th scope="col" style="width:100%">Nome do Edital</th>
<th scope="col">Data de Inicio da Revisão</th> <th scope="col">Data de Início da Revisão</th>
<th scope="col" style="text-align: center">Data de Fim da Revisão</th> <th scope="col" style="text-align: center">Data de Fim da Revisão</th>
<th scope="col">Opção</th> <th scope="col">Opção</th>
</tr> </tr>
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
<div class="row justify-content-center" style="margin-top: 2rem;"> <div class="row justify-content-center" style="margin-top: 2rem;">
<div class="col-md-12 form-group" style="text-align: center"> <div class="col-md-12 form-group" style="text-align: center">
<h5 style="color: #1492E6; margin-top:0.5rem; font-size:25px">Página inicial</h5> <h5 style="color: #1492E6; margin-top:0.5rem; font-size:25px">Página inicial</h5>
<h5 style="color: #909090; margin-top:0.7rem; font-size:22px; font-weight:normal">Avaliador</h5> <h5 style="color: #909090; margin-top:0.7rem; font-size:22px; font-weight:normal">Avaliador {{Auth::user()->avaliadors->tipo}}</h5>
</div> </div>
<div class="" style="text-align: center"> <div class="" style="text-align: center">
<div class="form-group imagem_shadow" style="border-radius: 12px; padding:14px; height:200px; width:190px; margin:15px"> <div class="form-group imagem_shadow" style="border-radius: 12px; padding:14px; height:200px; width:190px; margin:15px">
......
...@@ -42,14 +42,20 @@ ...@@ -42,14 +42,20 @@
<div class="card-body" > <div class="card-body" >
<table class="table table-bordered table-hover" style="display: block; overflow-x: auto; white-space: nowrap; border-radius:10px; margin-bottom:0px"> <table class="table table-bordered table-hover" style="display: block; white-space: nowrap; border-radius:10px; margin-bottom:0px">
<thead> <thead>
<tr> <tr>
<th scope="col" style="width:100%">Nome do Projeto</th> <th scope="col" style="width:100%">Nome do Projeto</th>
<th scope="col">Data de Criação</th> <th scope="col">Data de Criação</th>
<th scope="col">Projeto</th> @if(Auth::user()->avaliadors->tipo == 'Externo' || Auth::user()->avaliadors->tipo == null)
<th scope="col">Plano de Trabalho</th> <th scope="col">Projeto</th>
<th scope="col">Parecer</th> <th scope="col">Plano de Trabalho</th>
<th scope="col">Parecer Externo</th>
@else
<th scope="col">Status Parecer</th>
<th scope="col">Parecer Interno</th>
@endif
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
...@@ -57,48 +63,70 @@ ...@@ -57,48 +63,70 @@
<tr> <tr>
<td style="max-width:100px; overflow-x:hidden; text-overflow:ellipsis">{{ $trabalho->titulo }}</td> <td style="max-width:100px; overflow-x:hidden; text-overflow:ellipsis">{{ $trabalho->titulo }}</td>
<td style="text-align: center">{{ $trabalho->created_at->format('d/m/Y') }}</td> <td style="text-align: center">{{ $trabalho->created_at->format('d/m/Y') }}</td>
<td style="text-align: center"> @if(Auth::user()->avaliadors->tipo == 'Externo' || Auth::user()->avaliadors->tipo == null)
{{-- --}} <td style="text-align: center">
<a href="{{route('download', ['file' => $trabalho->anexoProjeto])}}" target="_new" style="font-size: 20px; color: #114048ff;" class="btn btn-light"> {{-- --}}
<img class="" src="{{asset('img/icons/file-download-solid.svg')}}" style="width:15px"> <a href="{{route('download', ['file' => $trabalho->anexoProjeto])}}" target="_new" style="font-size: 20px; color: #114048ff;" class="btn btn-light">
</a> <img class="" src="{{asset('img/icons/file-download-solid.svg')}}" style="width:15px">
</td> </a>
<td style="text-align: center"> </td>
@foreach( $trabalho->participantes as $participante) <td style="text-align: center">
@foreach( $trabalho->participantes as $participante)
@php
if( App\Arquivo::where('participanteId', $participante->id)->first() != null){
$planoTrabalho = App\Arquivo::where('participanteId', $participante->id)->first()->nome;
}else{
$planoTrabalho = null;
}
@endphp
@if ($planoTrabalho != null)
<a href="{{route('download', ['file' => $planoTrabalho])}}" target="_new" style="font-size: 20px; color: #114048ff;" class="btn btn-light">
<img class="" src="{{asset('img/icons/file-download-solid.svg')}}" style="width:15px">
</a>
@else
Não planos de trabalho.
@endif
@endforeach
</td>
<td>
<div class="row justify-content-center">
<form action="{{ route('avaliador.parecer', ['evento' => $evento]) }}" method="POST">
@csrf
<input type="hidden" name="trabalho_id" value="{{ $trabalho->id }}" >
@if($trabalho->pivot->AnexoParecer == null)
<button type="submit" class="btn btn-primary mr-2 ml-2" >
Parecer
</button>
@else
<button type="submit" class="btn btn-secondary mr-2 ml-2" >
Enviado
</button>
@endif
</form>
</div>
</td>
@else
@php @php
if( App\Arquivo::where('participanteId', $participante->id)->first() != null){ $parecer = App\ParecerInterno::where([['avaliador_id',Auth::user()->avaliadors->id],['trabalho_id',$trabalho->id]])->first();
$planoTrabalho = App\Arquivo::where('participanteId', $participante->id)->first()->nome;
}else{
$planoTrabalho = null;
}
@endphp @endphp
@if ($planoTrabalho != null) <td style="text-align: center">
<a href="{{route('download', ['file' => $planoTrabalho])}}" target="_new" style="font-size: 20px; color: #114048ff;" class="btn btn-light"> @if($parecer != null && $parecer->statusParecer !=null){{$parecer->statusParecer}} @else Sem Parecer @endif
<img class="" src="{{asset('img/icons/file-download-solid.svg')}}" style="width:15px"> </td>
</a> <td>
@else <div class="row justify-content-center">
Não planos de trabalho. <form action="{{ route('avaliador.parecerInterno', ['evento' => $evento]) }}" method="POST">
@endif @csrf
@endforeach <input type="hidden" name="trabalho_id" value="{{ $trabalho->id }}">
</td>
<td> <button type="submit" class="btn btn-primary mr-2 ml-2">
<div class="row"> Parecer
<form action="{{ route('avaliador.parecer', ['evento' => $evento]) }}" method="POST"> </button>
@csrf
<input type="hidden" name="trabalho_id" value="{{ $trabalho->id }}" >
@if($trabalho->pivot->AnexoParecer == null)
<button type="submit" class="btn btn-primary mr-2 ml-2" >
Parecer
</button>
@else
<button type="submit" class="btn btn-secondary mr-2 ml-2" >
Enviado
</button>
@endif
</form> </form>
</div> </div>
</td> </td>
@endif
</tr> </tr>
@endforeach @endforeach
</tbody> </tbody>
......
@extends('layouts.app')
@section('content')
<div class="row justify-content-center">
@component('projeto.formularioVisualizar.projeto',
['grandeAreas' => $grandeAreas, 'projeto' => $trabalho,
'areas' => $areas, 'subareas' => $subAreas])
@endcomponent
@component('projeto.formularioVisualizar.proponente', ['projeto' => $trabalho])
@endcomponent
@component('projeto.formularioVisualizar.anexos', ['projeto' => $trabalho])
@endcomponent
@component('projeto.formularioVisualizar.participantes', ['estados' => $estados, 'enum_turno' => $enum_turno, 'projeto' => $trabalho, 'participantes' => $participantes, 'arquivos' =>$arquivos])
@endcomponent
{{-- @component('projeto.formularioVisualizar.finalizar', ['projeto' => $projeto])
@endcomponent --}}
</div>
<div class="container col-md-11">
<div class="row justify-content-center" style="margin-top: 3rem;">
<div class="col-md-11" style="margin-bottom: -3rem">
<div class="card card_conteudo shadow bg-white" style="border-radius:12px; border-width:0px; overflow:auto">
<div class="card-header" style="border-top-left-radius: 12px; border-top-right-radius: 12px; background-color: #fff">
<div class="d-flex justify-content-between align-items-center" style="margin-top: 9px; margin-bottom:-1rem">
<div class="bottomVoltar" style="margin-top: -20px">
<a href="javascript:history.back()" class="btn btn-secondary" style=""><img src="{{asset('img/icons/logo_esquerda.png')}}" alt="" width="15px"></a>
</div>
<div class="form-group">
<h5 class="card-title mb-0" style="font-size:25px; font-family:Arial, Helvetica, sans-serif; color:#1492E6">Parecer Interno</h5>
<h5 class="card-title mb-0" style="font-size:19px; font-family:Arial, Helvetica, sans-serif; color:#909090">Projeto: {{ $trabalho->titulo }}</h5>
</div>
<div style="margin-top: -2rem">
<div class="form-group">
<div style="margin-top:30px;">
{{-- Pesquisar--}}
</div>
</div>
</div>
</div>
</div>
<div class="card-body" >
<form method="POST" action="{{route('avaliador.enviarParecerInterno')}}" enctype="multipart/form-data">
@csrf
<input type="hidden" name="trabalho_id" value="{{$trabalho->id}}" >
<input type="hidden" name="avaliador_id" value="{{Auth::user()->avaliadors->id}}" >
<input type="hidden" name="evento_id" value="{{$evento->id}}" >
<h3>Informações do proponente</h3>
{{-- Coordenador --}}
<div class="row">
<div class="col-sm-10">
<label for="nomeTrabalho" class="col-form-label">Lattes do Proponente: </label>
<label for="aceito">{{ __(' Aceito') }}</label>
<input type="radio" name="anexoLinkLattes" value="aceito" @if($parecer!=null && $parecer->statusLinkLattesProponente =='aceito') checked @endif required>
<label for="recusado" >{{ __(' Recusado') }}</label>
<input type="radio" name="anexoLinkLattes" value="recusado" @if($parecer!=null && $parecer->statusLinkLattesProponente =='recusado') checked @endif>
</div>
<div class="col-sm-10" >
<label for="nomeTrabalho" class="col-form-label">{{ __('Grupo de pesquisa: ') }}</label>
<label for="aceito" style="left: auto">{{ __(' Aceito') }}</label>
<input type="radio" name="anexoGrupoPesquisa" value="aceito" @if($parecer!=null && $parecer->statusLinkGrupoPesquisa =='aceito' ) checked @endif required>
<label for="recusado">{{ __(' Recusado') }}</label>
<input type="radio" name="anexoGrupoPesquisa" value="recusado" @if($parecer!=null && $parecer->statusLinkGrupoPesquisa =='recusado' ) checked @endif>
</div>
</div>
<h3>Anexos</h3>
{{-- Anexo do Projeto --}}
<div class="row">
{{-- Arquivo --}}
<div class="col-sm-6">
<label for="anexoProjeto" class="col-form-label">{{ __('Projeto: ') }}</label>
<label for="aceito" style="left: auto">{{ __(' Aceito') }}</label>
<input type="radio" name="anexoProjeto" value="aceito" @if($parecer!=null && $parecer->statusAnexoProjeto =='aceito' ) checked @endif required>
<label for="recusado">{{ __(' Recusado') }}</label>
<input type="radio" name="anexoProjeto" value="recusado" @if($parecer!=null && $parecer->statusAnexoProjeto =='recusado' ) checked @endif>
</div>
<div class="col-sm-6">
<label for="anexoLatterCoordenador" class="col-form-label">{{ __('Lattes do Coordenador: ') }}</label>
<label for="aceito" style="left: auto">{{ __(' Aceito') }}</label>
<input type="radio" name="anexoLattesCoordenador" value="aceito" @if($parecer!=null && $parecer->statusAnexoLattesCoordenador =='aceito' ) checked @endif required>
<label for="recusado">{{ __(' Recusado') }}</label>
<input type="radio" name="anexoLattesCoordenador" value="recusado" @if($parecer!=null && $parecer->statusAnexoLattesCoordenador =='recusado' ) checked @endif>
</div>
<div class="col-sm-6">
<label for="anexoPlanilha" class="col-form-label">{{ __('Planilha de Pontuação: ') }}</label>
<label for="aceito" style="left: auto">{{ __(' Aceita') }}</label>
<input type="radio" name="anexoPlanilha" value="aceito" @if($parecer!=null && $parecer->statusAnexoPlanilhaPontuacao =='aceito' ) checked @endif required>
<label for="recusado">{{ __(' Recusada') }}</label>
<input type="radio" name="anexoPlanilha" value="recusado" @if($parecer!=null && $parecer->statusAnexoPlanilhaPontuacao =='recusado' ) checked @endif>
</div>
@if($evento->tipo == 'PIBIC' || $evento->tipo == 'PIBIC-EM')
{{-- Decisão do CONSU --}}
<div class="col-sm-6">
<label for="anexoCONSU" class="col-form-label">{{ __('Decisão do CONSU: ') }}</label>
<label for="aceito" style="left: auto">{{ __(' Aceito') }}</label>
<input type="radio" name="anexoConsu" value="aceito" @if($parecer!=null && $parecer->statusAnexoDecisaoCONSU =='aceito' ) checked @endif required>
<label for="recusado">{{ __(' Recusado') }}</label>
<input type="radio" name="anexoConsu" value="recusado" @if($parecer!=null && $parecer->statusAnexoDecisaoCONSU =='recusado' ) checked @endif>
</div>
@endif
<div class="col-sm-6">
<label for="nomeTrabalho" class="col-form-label">{{ __('Autorização do Comitê de Ética: ') }}</label>
<label for="aceito" style="left: auto">{{ __(' Aceita') }}</label>
<input type="radio" name="anexoComiteEtica" value="aceito" @if($parecer!=null && $parecer->statusAnexoAtuorizacaoComiteEtica =='aceito' ) checked @endif required>
<label for="recusado">{{ __(' Recusada') }}</label>
<input type="radio" name="anexoComiteEtica" value="recusado" @if($parecer!=null && $parecer->statusAnexoAtuorizacaoComiteEtica =='recusado' ) checked @endif>
</div>
<div class="col-sm-6">
<label for="nomeTrabalho" class="col-form-label">{{ __('Justificativa: ') }}</label>
<label for="aceito" style="left: auto">{{ __(' Aceita') }}</label>
<input type="radio" name="anexoJustificativa" value="aceito" @if($parecer!=null && $parecer->statusJustificativaAutorizacaoEtica =='aceito' ) checked @endif required>
<label for="recusado">{{ __(' Recusada') }}</label>
<input type="radio" name="anexoJustificativa" value="recusado" @if($parecer!=null && $parecer->statusJustificativaAutorizacaoEtica =='recusado' ) checked @endif>
</div>
{{--Planos de trabalho--}}
<div class="col-sm-6">
<label for="nomeTrabalho" class="col-form-label">{{ __('Plano de Trabalho: ') }}</label>
<label for="aceito" style="left: auto">{{ __(' Aceito') }}</label>
<input type="radio" name="anexoPlano" value="aceito" @if($parecer!=null && $parecer->statusPlanoTrabalho =='aceito' ) checked @endif required>
<label for="recusado">{{ __(' Recusado') }}</label>
<input type="radio" name="anexoPlano" value="recusado" @if($parecer!=null && $parecer->statusPlanoTrabalho =='recusado' ) checked @endif>
</div>
</div>
<div><hr></div>
<div class="d-flex justify-content-end">
<div style="margin-right: 15px"><a href="{{ route('avaliador.visualizarTrabalho', ['evento_id' => $evento->id])}}" class="btn btn-light" style="color: red;">Cancelar</a></div>
<div><button type="submit" class="btn btn-success">Enviar meu parecer</button></div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
@endsection
@section('javascript')
<script type="text/javascript">
</script>
@endsection
...@@ -35,8 +35,9 @@ ...@@ -35,8 +35,9 @@
<img src="{{asset('img/icons/ellipsis-v-solid.svg')}}" style="width:8px"> <img src="{{asset('img/icons/ellipsis-v-solid.svg')}}" style="width:8px">
</a> </a>
<div class="dropdown-menu"> <div class="dropdown-menu">
<a href="{{ route('evento.editar', ['id' => $evento->id]) }}" class="dropdown-item text-center"> <hr class="dropdown-hr">
Editar Edital <a href="{{route('admin.analisar', ['evento_id' => $evento->id])}}" class="dropdown-item text-center">
Visualizar Projetos
</a> </a>
<hr class="dropdown-hr"> <hr class="dropdown-hr">
<a href="{{route('admin.atribuir', ['evento_id' => $evento->id])}}" class="dropdown-item text-center"> <a href="{{route('admin.atribuir', ['evento_id' => $evento->id])}}" class="dropdown-item text-center">
...@@ -47,10 +48,6 @@ ...@@ -47,10 +48,6 @@
Visualizar Pareceres Visualizar Pareceres
</a> </a>
<hr class="dropdown-hr"> <hr class="dropdown-hr">
<a href="{{route('admin.analisar', ['evento_id' => $evento->id])}}" class="dropdown-item text-center">
Analisar projetos
</a>
<hr class="dropdown-hr">
<a href="{{route('admin.showResultados', ['evento_id' => $evento->id])}}" class="dropdown-item text-center"> <a href="{{route('admin.showResultados', ['evento_id' => $evento->id])}}" class="dropdown-item text-center">
Resultados Resultados
</a> </a>
......
...@@ -126,7 +126,7 @@ ...@@ -126,7 +126,7 @@
function gerarPeriodo(e){ function gerarPeriodo(e){
var select = e.parentElement.parentElement.nextElementSibling; var select = e.parentElement.parentElement.nextElementSibling;
selectPeriodos = select.children[0].children[1]; selectPeriodos = select.children[0].children[1];
var html = `<option value="" disabled selected>-- TOTAL DE PERIODOS --</option>`; var html = `<option value="" disabled selected>-- TOTAL DE PERÍODOS --</option>`;
for(var i = 0; i < parseInt(e.value); i++) { for(var i = 0; i < parseInt(e.value); i++) {
html += `<option value="${i+1}">${i+1}º</option>`; html += `<option value="${i+1}">${i+1}º</option>`;
} }
......
...@@ -171,9 +171,20 @@ ...@@ -171,9 +171,20 @@
</div> </div>
<a href="{{ route('register') }}" class="btn navbar-text btn-azul-destaque negrito" style="color: rgb(0, 140, 255);">{{ __('Cadastre-se') }}</a> <a href="{{ route('register') }}" class="btn navbar-text btn-azul-destaque negrito" style="color: rgb(0, 140, 255);">{{ __('Cadastre-se') }}</a>
@else @else
@if(Auth::user()->avaliadors != null)
@if(Auth::user()->avaliadors->tipo == "Interno")
<a href="" class="btn navbar-text negrito " style="color: rgb(0, 140, 255);pointer-events: none;" >Comissão Interna</a>
@else
<a href="" class="btn navbar-text negrito " style="color: rgb(0, 140, 255);pointer-events: none;" >Comissão Externa</a>
@endif
@endif
@if(Auth::user()->administradors != null) @if(Auth::user()->administradors != null)
<a href="{{route('admin.editais')}}" class="btn navbar-text negrito " style="color: rgb(0, 140, 255);">Editais</a> <a href="{{route('admin.editais')}}" class="btn navbar-text negrito " style="color: rgb(0, 140, 255);">Editais</a>
@else <!--<a href="{{route('admin.showProjetos')}}" class="btn navbar-text negrito " style="color: rgb(0, 140, 255);" >Projetos</a> -->
<a href="{{route('notificacao.listar')}}" class="btn navbar-text negrito " style="color: rgb(0, 140, 255);" >Notificações</a>
@else
<a href="{{route('notificacao.listarTrab')}}" class="btn navbar-text negrito " style="color: rgb(0, 140, 255);" >Notificações</a>
<a href="{{route('coord.home')}}" class="btn navbar-text negrito " style="color: rgb(0, 140, 255);">Editais</a> <a href="{{route('coord.home')}}" class="btn navbar-text negrito " style="color: rgb(0, 140, 255);">Editais</a>
@endif @endif
<a id="navbarDropdown" class="btn navbar-text negrito dropdown-toggle" style="color: rgb(0, 140, 255);" href="#" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" v-pre> <a id="navbarDropdown" class="btn navbar-text negrito dropdown-toggle" style="color: rgb(0, 140, 255);" href="#" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" v-pre>
......
@extends('layouts.app')
@section('content')
<div class="row justify-content-center" style="margin-top: 100px;">
<div class="col-md-8">
<h3 style="color: #1492E6;">Todas as Notificações</h3>
</div>
<!--Titulos -->
@foreach($notificacoes as $notificacao)
<div class="col-md-8">
<div class="card" style="border-radius: 5px">
<div class="card-body" style="padding-top: 0.2rem;">
<div class="container">
<div class="form-row mt-3">
<div class="col-md-12">
<!--Criação de proposta-->
@if($notificacao->tipo==1)
@if($notificacao->destinatario_id == Auth::user()->id || Auth::user()->administradors != null)
<h6 style="font-size: 18px">Nova proposta para {{$notificacao->trabalho->evento->nome}}</h6>
<p style="font-size: 14px; margin-bottom: 0;">Projeto: {{$notificacao->trabalho->titulo}}</p>
<div style="text-align: right">
<a href="{{route('admin.analisarProposta',['id'=>$notificacao->trabalho->id])}}" >Visualizar</a>
</div>
@else
<h6 style="font-size: 18px">Proposta enviada para {{$notificacao->trabalho->evento->nome}}</h6>
<p style="font-size: 14px; margin-bottom: 0;">Projeto: {{$notificacao->trabalho->titulo}}</p>
<div style="text-align: right">
<a href="{{ route('trabalho.show', ['id' => $notificacao->trabalho->id]) }}" >Visualizar</a>
</div>
@endif
<!--Substituição de participante-->
@elseif($notificacao->tipo==2)
@if($notificacao->destinatario_id == Auth::user()->id || Auth::user()->administradors != null)
<h6 style="font-size: 18px">Substituição de discente para {{$notificacao->trabalho->evento->nome}}</h6>
<p style="font-size: 14px; margin-bottom: 0;">Projeto: {{$notificacao->trabalho->titulo}}</p>
<div style="text-align: right">
<a href="{{route('admin.analisarProposta',['id'=>$notificacao->trabalho->id])}}" >Visualizar</a>
</div>
@else
<h6 style="font-size: 18px">Pedido de substituição de discente para {{$notificacao->trabalho->evento->nome}}</h6>
<p style="font-size: 14px; margin-bottom: 0;">Projeto: {{$notificacao->trabalho->titulo}}</p>
<div style="text-align: right">
<a href="{{route('trabalho.trocaParticipante', ['evento_id' => $notificacao->trabalho->evento->id, 'projeto_id' => $notificacao->trabalho->id])}}" >Visualizar</a>
</div>
@endif
@endif
</div>
</div>
</div>
</div>
</div>
</div>
@endforeach
@endsection
...@@ -22,8 +22,8 @@ ...@@ -22,8 +22,8 @@
@foreach($arquivos as $arquivo) @foreach($arquivos as $arquivo)
<tbody> <tbody>
<td style="text-align: center;">{{$arquivo->titulo}}</td> <td style="text-align: center;" title="{{$arquivo->titulo}}">{{$arquivo->titulo}}</td>
<td style="text-align: center;">{{$arquivo->participante->user->name}} {{$arquivo->trabalho->evento->nome}}</td> <td style="text-align: center;" title="{{$arquivo->participante->user->name}}">{{$arquivo->participante->user->name}}</td>
<td style="text-align: center;"> <td style="text-align: center;">
@if((Auth::user()->proponentes != null) && ($arquivo->relatorioParcial == null) && @if((Auth::user()->proponentes != null) && ($arquivo->relatorioParcial == null) &&
($arquivo->trabalho->evento->dt_inicioRelatorioParcial <= $hoje) && ($hoje <= $arquivo->trabalho->evento->dt_fimRelatorioParcial)) ($arquivo->trabalho->evento->dt_inicioRelatorioParcial <= $hoje) && ($hoje <= $arquivo->trabalho->evento->dt_fimRelatorioParcial))
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
@else @else
<!-- Button trigger modal --> <!-- Button trigger modal -->
<button type="button" class="btn btn-primary" data-toggle="modal" data-target="#modalRelatorioParcial{{ $arquivo->id }}"> <button type="button" class="btn btn-primary" data-toggle="modal" data-target="#modalRelatorioParcial{{ $arquivo->id }}">
Visualizar @if($arquivo->relatorioParcial!=null)Visualizar @else Pendente @endif
</button> </button>
@endif @endif
</td> </td>
...@@ -49,7 +49,7 @@ ...@@ -49,7 +49,7 @@
@else @else
<!-- Button trigger modal --> <!-- Button trigger modal -->
<button type="button" class="btn btn-primary" data-toggle="modal" data-target="#modalRelatorioFinal{{ $arquivo->id }}"> <button type="button" class="btn btn-primary" data-toggle="modal" data-target="#modalRelatorioFinal{{ $arquivo->id }}">
Visualizar @if($arquivo->relatorioFinal!=null)Visualizar @else Pendente @endif
</button> </button>
@endif @endif
</td> </td>
...@@ -191,6 +191,14 @@ ...@@ -191,6 +191,14 @@
</div> </div>
</div> </div>
<style>
td {
max-width: 25ch;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
</style>
@endsection @endsection
...@@ -110,6 +110,7 @@ ...@@ -110,6 +110,7 @@
<thead> <thead>
<tr> <tr>
<th scope="col">Nome do Usuário</th> <th scope="col">Nome do Usuário</th>
<th scope="col">Tipo</th>
<th scope="col">E-mail</th> <th scope="col">E-mail</th>
<th scope="col">Status</th> <th scope="col">Status</th>
<th scope="col" style="text-align:center">Ação</th> <th scope="col" style="text-align:center">Ação</th>
...@@ -125,6 +126,7 @@ ...@@ -125,6 +126,7 @@
@endforeach @endforeach
<tr> <tr>
<td>{{ $avaliador->user->name }}</td> <td>{{ $avaliador->user->name }}</td>
<td>{{ $avaliador->tipo }}</td>
<td>{{ $avaliador->user->email }}</td> <td>{{ $avaliador->user->email }}</td>
<td>{{ $contador }} / {{ $avaliador->planoTrabalhos->count() }}</td> <td>{{ $contador }} / {{ $avaliador->planoTrabalhos->count() }}</td>
<td style="text-align:center"> ...</td> <td style="text-align:center"> ...</td>
......
<!-- projeto -->
<div class="col-md-10" style="text-align: center; margin-top:2rem"><h4 style="margin-top: 1rem;">Situação Atual</h4></div>
<div class="col-md-10">
<div class="card" style="border-radius: 12px">
<div class="card-body">
<div class="container">
<div class="form-row mt-3">
<div class="col-md-12"><h5 style="color: #1492E6; margin-bottom:-0.4rem">Resultado</h5></div>
<div class="col-md-12" style="margin-bottom: -0.8rem;"><hr style="border-top: 1px solid#1492E6"></div>
<div class="form-group col-md-12" style="margin-top: 10px">
<label for="statusProjeto" class="col-form-label">{{ __('Status') }}</label>
<input id="statusProjeto" type="text" class="form-control" name="statusProjeto" value="{{ $projeto->status }}" autocomplete="statusProjeto" disabled >
</div>
<div class="form-group col-md-12" style="margin-top: 10px">
<label for="comentarioProjeto" class="col-form-label">{{ __('Comentário') }}</label>
<textarea id="comentarioProjeto" type="text" class="form-control" name="comentarioProjeto" disabled
>{{ $projeto->comentario }}</textarea>
</div>
</div>
</div>
</div>
</div>
</div>
<!--X projeto X-->
\ No newline at end of file
...@@ -29,6 +29,12 @@ ...@@ -29,6 +29,12 @@
@component('projeto.formularioVisualizar.participantes', ['estados' => $estados, 'enum_turno' => $enum_turno, 'projeto' => $projeto, 'participantes' => $participantes, 'arquivos' =>$arquivos]) @component('projeto.formularioVisualizar.participantes', ['estados' => $estados, 'enum_turno' => $enum_turno, 'projeto' => $projeto, 'participantes' => $participantes, 'arquivos' =>$arquivos])
@endcomponent @endcomponent
@if($projeto->comentario != null)
@component('projeto.formularioVisualizar.resultado',
['projeto' => $projeto])
@endcomponent
@endif
{{-- @component('projeto.formularioVisualizar.finalizar', ['projeto' => $projeto]) {{-- @component('projeto.formularioVisualizar.finalizar', ['projeto' => $projeto])
@endcomponent --}} @endcomponent --}}
...@@ -121,7 +127,7 @@ ...@@ -121,7 +127,7 @@
function gerarPeriodo(e){ function gerarPeriodo(e){
var select = e.parentElement.parentElement.nextElementSibling; var select = e.parentElement.parentElement.nextElementSibling;
selectPeriodos = select.children[0].children[1]; selectPeriodos = select.children[0].children[1];
var html = `<option value="" disabled selected>-- TOTAL DE PERIODOS --</option>`; var html = `<option value="" disabled selected>-- TOTAL DE PERÍODOS --</option>`;
for(var i = 0; i < parseInt(e.value); i++) { for(var i = 0; i < parseInt(e.value); i++) {
html += `<option value="${i+1}">${i+1}º</option>`; html += `<option value="${i+1}">${i+1}º</option>`;
} }
......
...@@ -82,7 +82,11 @@ ...@@ -82,7 +82,11 @@
<td style="color: rgb(0, 0, 0); text-align: center">Submetido</td> <td style="color: rgb(0, 0, 0); text-align: center">Submetido</td>
@elseif($projeto->status == 'rascunho') @elseif($projeto->status == 'rascunho')
<td style="color: rgb(0, 0, 0); text-align: center">Rascunho</td> <td style="color: rgb(0, 0, 0); text-align: center">Rascunho</td>
@endif @elseif($projeto->status == 'aprovado')
<td style="color: rgb(0, 0, 0); text-align: center">Aprovado</td>
@elseif($projeto->status == 'negado')
<td style="color: rgb(0, 0, 0); text-align: center">Negado</td>
@endif
<td> <td>
<div class="dropright dropdown-options" style="width: 100%; text-align:center; float:none"> <div class="dropright dropdown-options" style="width: 100%; text-align:center; float:none">
<a id="options" class="dropdown-toggle btn btn-light" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> <a id="options" class="dropdown-toggle btn btn-light" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
...@@ -94,9 +98,9 @@ ...@@ -94,9 +98,9 @@
Editar Editar
</a> </a>
<hr class="dropdown-hr"> <hr class="dropdown-hr">
@elseif($projeto->evento->resultado_final <= $hoje) @elseif($projeto->evento->resultado_final <= $hoje || $projeto->status== 'aprovado')
<a href="{{route('trabalho.trocaParticipante', ['evento_id' => $projeto->evento->id, 'projeto_id' => $projeto->id])}}" class="dropdown-item" style="text-align: center;"> <a href="{{route('trabalho.trocaParticipante', ['evento_id' => $projeto->evento->id, 'projeto_id' => $projeto->id])}}" class="dropdown-item" style="text-align: center;">
Substituir participante</a> Solicitar Substituição</a>
@endif @endif
<a href="{{ route('trabalho.show', ['id' => $projeto->id]) }}" class="dropdown-item" style="text-align: center"> <a href="{{ route('trabalho.show', ['id' => $projeto->id]) }}" class="dropdown-item" style="text-align: center">
Visualizar Visualizar
......
...@@ -78,7 +78,6 @@ ...@@ -78,7 +78,6 @@
<th scope="col" style="width:100%">Nome do projeto</th> <th scope="col" style="width:100%">Nome do projeto</th>
<th scope="col">Data de Criação</th> <th scope="col">Data de Criação</th>
<th scope="col" style="text-align:center">Status</th> <th scope="col" style="text-align:center">Status</th>
<th scope="col">Opção</th>
</tr> </tr>
</thead> </thead>
<tbody id="projetos"> <tbody id="projetos">
...@@ -107,9 +106,10 @@ ...@@ -107,9 +106,10 @@
Editar Editar
</a> </a>
<hr class="dropdown-hr"> <hr class="dropdown-hr">
@elseif($projeto->evento->resultado_final <= $hoje) @endif
@if( $projeto->status== 'aprovado')
<a href="{{route('trabalho.trocaParticipante', ['evento_id' => $projeto->evento->id, 'projeto_id' => $projeto->id])}}" class="dropdown-item" style="text-align: center;"> <a href="{{route('trabalho.trocaParticipante', ['evento_id' => $projeto->evento->id, 'projeto_id' => $projeto->id])}}" class="dropdown-item" style="text-align: center;">
Substituir participante Solicitar Substituições
</a> </a>
<hr class="dropdown-hr"> <hr class="dropdown-hr">
@endif @endif
......
...@@ -61,8 +61,15 @@ Route::group(['middleware' => ['isTemp', 'auth', 'verified']], function(){ ...@@ -61,8 +61,15 @@ Route::group(['middleware' => ['isTemp', 'auth', 'verified']], function(){
Route::post('/Enviarparecer', 'AvaliadorController@enviarParecer' )->name('enviarParecer')->middleware('auth'); Route::post('/Enviarparecer', 'AvaliadorController@enviarParecer' )->name('enviarParecer')->middleware('auth');
Route::post('/Enviarparecer/plano', 'AvaliadorController@enviarParecerPlano' )->name('enviarParecerPlano')->middleware('auth'); Route::post('/Enviarparecer/plano', 'AvaliadorController@enviarParecerPlano' )->name('enviarParecerPlano')->middleware('auth');
Route::get('/Resposta', 'AvaliadorController@conviteResposta' )->name('conviteResposta')->middleware('auth'); Route::get('/Resposta', 'AvaliadorController@conviteResposta' )->name('conviteResposta')->middleware('auth');
Route::post('/parecerInterno', 'AvaliadorController@parecerInterno' )->name('parecerInterno')->middleware('auth');
Route::post('/EnviarparecerInterno', 'AvaliadorController@enviarParecerInterno' )->name('enviarParecerInterno')->middleware('auth');
}); });
Route::get('/notificacao/listar', 'NotificacaoController@listar')->name('notificacao.listar')->middleware('auth');
Route::get('/notificacao/lista', 'NotificacaoController@listarTrab')->name('notificacao.listarTrab')->middleware('auth');
Route::get('/home/edital', 'EventoController@index' )->name('visualizarEvento'); Route::get('/home/edital', 'EventoController@index' )->name('visualizarEvento');
...@@ -132,6 +139,11 @@ Route::group(['middleware' => ['isTemp', 'auth', 'verified']], function(){ ...@@ -132,6 +139,11 @@ Route::group(['middleware' => ['isTemp', 'auth', 'verified']], function(){
Route::post( '/projeto/substituirParticipante', 'TrabalhoController@trocaParticipante' )->name('trabalho.infoTrocaParticipante'); Route::post( '/projeto/substituirParticipante', 'TrabalhoController@trocaParticipante' )->name('trabalho.infoTrocaParticipante');
Route::get( '/showSubstituicoes', 'TrabalhoController@telaShowSubst' )->name('trabalho.telaAnaliseSubstituicoes')->middleware('checkRoles:coordenador,administrador'); Route::get( '/showSubstituicoes', 'TrabalhoController@telaShowSubst' )->name('trabalho.telaAnaliseSubstituicoes')->middleware('checkRoles:coordenador,administrador');
Route::post( '/aprovarSubstituicao', 'TrabalhoController@aprovarSubstituicao' )->name('trabalho.aprovarSubstituicao'); Route::post( '/aprovarSubstituicao', 'TrabalhoController@aprovarSubstituicao' )->name('trabalho.aprovarSubstituicao');
Route::post( '/aprovarProposta/{id}', 'TrabalhoController@aprovarProposta' )->name('trabalho.aprovarProposta');
//########## Bolsas
Route::get( '/bolsas', 'ParticipanteController@listarParticipanteEdital' )->name('bolsas.listar');
Route::get( '/bolsas/alteracao/{id}/{tipo}', 'ParticipanteController@alterarBolsa' )->name('bolsa.alterar');
//########## Relatórios //########## Relatórios
Route::get( '/projeto/planosTrabalho/{id}', 'ArquivoController@listar' )->name('planos.listar'); Route::get( '/projeto/planosTrabalho/{id}', 'ArquivoController@listar' )->name('planos.listar');
...@@ -187,9 +199,11 @@ Route::prefix('usuarios')->name('admin.')->group(function(){ ...@@ -187,9 +199,11 @@ Route::prefix('usuarios')->name('admin.')->group(function(){
Route::post('/reenviarConviteAvaliador', 'AdministradorController@reenviarConvite' )->name('reenviarConvite'); Route::post('/reenviarConviteAvaliador', 'AdministradorController@reenviarConvite' )->name('reenviarConvite');
Route::post('/visualizarParecer', 'AdministradorController@visualizarParecer')->name('visualizarParecer'); Route::post('/visualizarParecer', 'AdministradorController@visualizarParecer')->name('visualizarParecer');
Route::get('/visualizarParecer', 'AdministradorController@visualizarParecer')->name('visualizarParecer'); Route::get('/visualizarParecer', 'AdministradorController@visualizarParecer')->name('visualizarParecer');
Route::get('/visualizarParecerInterno', 'AdministradorController@visualizarParecerInterno')->name('visualizarParecerInterno');
Route::get('/pareceresProjetos', 'AdministradorController@pareceres' )->name('pareceres'); Route::get('/pareceresProjetos', 'AdministradorController@pareceres' )->name('pareceres');
Route::get('/analisarProjetos', 'AdministradorController@analisar' )->name('analisar'); Route::get('/analisarProjetos', 'AdministradorController@analisar' )->name('analisar');
Route::get('/showrProjetos', 'AdministradorController@showProjetos' )->name('showProjetos'); Route::get('/analisarProposta', 'AdministradorController@analisarProposta' )->name('analisarProposta');
Route::get('/showProjetos', 'AdministradorController@showProjetos' )->name('showProjetos');
Route::get('/showResultados', 'AdministradorController@showResultados' )->name('showResultados'); Route::get('/showResultados', 'AdministradorController@showResultados' )->name('showResultados');
}); });
......
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