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 >
......
...@@ -46,7 +46,12 @@ ...@@ -46,7 +46,12 @@
<td> <td>
{{ $user->name }} {{ $user->name }}
</td> </td>
@if($user->tipo != "avaliador")
<td>{{ $user->tipo }}</td> <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>
@if(Auth::user()->avaliadors->tipo == 'Externo' || Auth::user()->avaliadors->tipo == null)
<th scope="col">Projeto</th> <th scope="col">Projeto</th>
<th scope="col">Plano de Trabalho</th> <th scope="col">Plano de Trabalho</th>
<th scope="col">Parecer</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,6 +63,7 @@ ...@@ -57,6 +63,7 @@
<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>
@if(Auth::user()->avaliadors->tipo == 'Externo' || Auth::user()->avaliadors->tipo == null)
<td style="text-align: center"> <td style="text-align: center">
{{-- --}} {{-- --}}
<a href="{{route('download', ['file' => $trabalho->anexoProjeto])}}" target="_new" style="font-size: 20px; color: #114048ff;" class="btn btn-light"> <a href="{{route('download', ['file' => $trabalho->anexoProjeto])}}" target="_new" style="font-size: 20px; color: #114048ff;" class="btn btn-light">
...@@ -82,7 +89,7 @@ ...@@ -82,7 +89,7 @@
@endforeach @endforeach
</td> </td>
<td> <td>
<div class="row"> <div class="row justify-content-center">
<form action="{{ route('avaliador.parecer', ['evento' => $evento]) }}" method="POST"> <form action="{{ route('avaliador.parecer', ['evento' => $evento]) }}" method="POST">
@csrf @csrf
<input type="hidden" name="trabalho_id" value="{{ $trabalho->id }}" > <input type="hidden" name="trabalho_id" value="{{ $trabalho->id }}" >
...@@ -99,6 +106,27 @@ ...@@ -99,6 +106,27 @@
</form> </form>
</div> </div>
</td> </td>
@else
@php
$parecer = App\ParecerInterno::where([['avaliador_id',Auth::user()->avaliadors->id],['trabalho_id',$trabalho->id]])->first();
@endphp
<td style="text-align: center">
@if($parecer != null && $parecer->statusParecer !=null){{$parecer->statusParecer}} @else Sem Parecer @endif
</td>
<td>
<div class="row justify-content-center">
<form action="{{ route('avaliador.parecerInterno', ['evento' => $evento]) }}" method="POST">
@csrf
<input type="hidden" name="trabalho_id" value="{{ $trabalho->id }}">
<button type="submit" class="btn btn-primary mr-2 ml-2">
Parecer
</button>
</form>
</div>
</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>
<!--<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 @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
...@@ -30,6 +30,12 @@ ...@@ -30,6 +30,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,6 +82,10 @@ ...@@ -82,6 +82,10 @@
<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>
@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 @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">
...@@ -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
......
This diff is collapsed.
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