Commit 6ca2f997 authored by alissonalbuquerque's avatar alissonalbuquerque
Browse files

fix(criar-edital): add adequações de cadastro de edital

fix(edit-edital): add alterações parciais em atualização de edital
parent 31ebffc8
...@@ -38,8 +38,8 @@ class Evento extends Model ...@@ -38,8 +38,8 @@ class Evento extends Model
'dt_fimRelatorioParcial' => ['exclude_if:tipo,PIBEX,PIACEX', 'required', 'date'], 'dt_fimRelatorioParcial' => ['exclude_if:tipo,PIBEX,PIACEX', 'required', 'date'],
'dt_inicioRelatorioFinal' => ['required', 'date'], 'dt_inicioRelatorioFinal' => ['required', 'date'],
'dt_fimRelatorioFinal' => ['required', 'date'], 'dt_fimRelatorioFinal' => ['required', 'date'],
'inicioProjeto' => ['required', 'date'], // 'inicioProjeto' => ['required', 'date'],
'fimProjeto' => ['required', 'date'], // 'fimProjeto' => ['required', 'date'],
//'modeloDocumento' => [], //'modeloDocumento' => [],
]; ];
...@@ -56,7 +56,7 @@ class Evento extends Model ...@@ -56,7 +56,7 @@ class Evento extends Model
'tipo' => ['required', 'string'], 'tipo' => ['required', 'string'],
'natureza' => ['required'], 'natureza' => ['required'],
'coordenador_id' => ['required'], 'coordenador_id' => ['required'],
'numParticipantes' => ['required'], // 'numParticipantes' => ['required'],
'nome_docExtra' => ['required_with:check_docExtra','max:255'], 'nome_docExtra' => ['required_with:check_docExtra','max:255'],
'tipoAvaliacao' => ['required'], 'tipoAvaliacao' => ['required'],
'inicioSubmissao' => ['required', 'date', 'after:yesterday'], 'inicioSubmissao' => ['required', 'date', 'after:yesterday'],
...@@ -72,8 +72,8 @@ class Evento extends Model ...@@ -72,8 +72,8 @@ class Evento extends Model
'dt_inicioRelatorioFinal' => ['required', 'date', 'after:dt_fimRelatorioParcial'], 'dt_inicioRelatorioFinal' => ['required', 'date', 'after:dt_fimRelatorioParcial'],
'dt_fimRelatorioFinal' => ['required', 'date', 'after_or_equal:dt_inicioRelatorioFinal'], 'dt_fimRelatorioFinal' => ['required', 'date', 'after_or_equal:dt_inicioRelatorioFinal'],
'pdfEdital' => [('pdfEditalPreenchido'!=='sim'?'required':''), 'file', 'mimes:pdf', 'max:2048'], 'pdfEdital' => [('pdfEditalPreenchido'!=='sim'?'required':''), 'file', 'mimes:pdf', 'max:2048'],
'inicioProjeto' => ['required', 'date', 'after:yesterday'], // 'inicioProjeto' => ['required', 'date', 'after:yesterday'],
'fimProjeto' => ['required', 'date', 'after_or_equal:fimSubmissao'], // 'fimProjeto' => ['required', 'date', 'after_or_equal:fimSubmissao'],
]; ];
#validação completa dos dados de editais de fluxo continuo #validação completa dos dados de editais de fluxo continuo
...@@ -83,7 +83,7 @@ class Evento extends Model ...@@ -83,7 +83,7 @@ class Evento extends Model
'tipo' => ['required', 'string'], 'tipo' => ['required', 'string'],
'natureza' => ['required'], 'natureza' => ['required'],
'coordenador_id' => ['required'], 'coordenador_id' => ['required'],
'numParticipantes' => ['required'], // 'numParticipantes' => ['required'],
'nome_docExtra' => ['required_with:check_docExtra','max:255'], 'nome_docExtra' => ['required_with:check_docExtra','max:255'],
'tipoAvaliacao' => ['required'], 'tipoAvaliacao' => ['required'],
'inicioSubmissao' => ['required', 'date', 'after:yesterday'], 'inicioSubmissao' => ['required', 'date', 'after:yesterday'],
...@@ -96,7 +96,7 @@ class Evento extends Model ...@@ -96,7 +96,7 @@ class Evento extends Model
'descricao' => ['required', 'string', 'max:1500'], 'descricao' => ['required', 'string', 'max:1500'],
'tipo' => ['required', 'string'], 'tipo' => ['required', 'string'],
'natureza' => ['required'], 'natureza' => ['required'],
'numParticipantes' => ['required'], // 'numParticipantes' => ['required'],
'tipoAvaliacao' => ['required'], 'tipoAvaliacao' => ['required'],
'inicioSubmissao' => ['required', 'date', 'after_or_equal:inicioSubmissao'], 'inicioSubmissao' => ['required', 'date', 'after_or_equal:inicioSubmissao'],
'fimSubmissao' => ['required', 'date', 'after_or_equal:inicioSubmissao'], 'fimSubmissao' => ['required', 'date', 'after_or_equal:inicioSubmissao'],
...@@ -112,8 +112,8 @@ class Evento extends Model ...@@ -112,8 +112,8 @@ class Evento extends Model
'dt_fimRelatorioFinal' => ['required', 'date', 'after_or_equal:dt_inicioRelatorioFinal'], 'dt_fimRelatorioFinal' => ['required', 'date', 'after_or_equal:dt_inicioRelatorioFinal'],
'modeloDocumento.*' => ['file', 'mimes:zip,doc,docx,odt,pdf', 'max:2048'], 'modeloDocumento.*' => ['file', 'mimes:zip,doc,docx,odt,pdf', 'max:2048'],
'pdfFormAvalExterno' => ['file', 'mimes:pdf,doc,docx,xlsx,xls,csv,zip', 'max:2048'], 'pdfFormAvalExterno' => ['file', 'mimes:pdf,doc,docx,xlsx,xls,csv,zip', 'max:2048'],
'inicioProjeto' => ['required', 'date', 'after:resultado_final'], // 'inicioProjeto' => ['required', 'date', 'after:resultado_final'],
'fimProjeto' => ['required', 'date', 'after:inicioProjeto'], // 'fimProjeto' => ['required', 'date', 'after:inicioProjeto'],
'docTutorial' => ['file', 'mimes:zip,doc,docx,pdf', 'max:2048'], 'docTutorial' => ['file', 'mimes:zip,doc,docx,pdf', 'max:2048'],
'nome_docExtra' => ['required_with:check_docExtra', 'max:255'], 'nome_docExtra' => ['required_with:check_docExtra', 'max:255'],
]; ];
...@@ -125,7 +125,7 @@ class Evento extends Model ...@@ -125,7 +125,7 @@ class Evento extends Model
'tipo' => ['required', 'string'], 'tipo' => ['required', 'string'],
'natureza' => ['required'], 'natureza' => ['required'],
'coordenador_id' => ['required'], 'coordenador_id' => ['required'],
'numParticipantes' => ['required'], // 'numParticipantes' => ['required'],
'nome_docExtra' => ['required_with:check_docExtra','max:255'], 'nome_docExtra' => ['required_with:check_docExtra','max:255'],
'tipoAvaliacao' => ['required'], 'tipoAvaliacao' => ['required'],
'inicioSubmissao' => ['required', 'date', 'after_or_equal:inicioSubmissao'], 'inicioSubmissao' => ['required', 'date', 'after_or_equal:inicioSubmissao'],
......
This diff is collapsed.
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class AddDocumentsToEventosTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('eventos', function (Blueprint $table) {
$table->string('docRecurso')->nullable();
$table->string('docRelatorio')->nullable();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('eventos', function (Blueprint $table) {
$table->dropColumn('docRecurso');
$table->dropColumn('docRelatorio');
});
}
}
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class AlterRecursosTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('recursos', function (Blueprint $table) {
$table->string('tituloRecurso')->nullable()->change();
$table->text('corpoRecurso')->nullable()->change();
$table->string('statusAvaliacao')->nullable()->change();
$table->integer('trabalhoId')->nullable()->change();
$table->integer('comissaoId')->nullable()->change();
$table->string('pdfRecurso')->nullable();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('recursos', function (Blueprint $table) {
$table->string('tituloRecurso')->nullable(false)->change();
$table->text('corpoRecurso')->nullable(false)->change();
$table->boolean('statusAvaliacao')->nullable(false)->change();
$table->integer('trabalhoId')->nullable(false)->change();
$table->integer('comissaoId')->nullable(false)->change();
$table->dropColumn('pdfRecurso');
});
}
}
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class AlterTableParecerInternos extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('parecer_internos', function (Blueprint $table) {
$table->string('statusLinkGrupoPesquisa')->nullable()->change();
$table->string('statusLinkLattesProponente')->nullable()->change();
$table->string('statusAnexoProjeto')->nullable()->change();
$table->string('statusAnexoDecisaoCONSU')->nullable()->change();
$table->string('statusAnexoPlanilhaPontuacao')->nullable()->change();
$table->string('statusAnexoLattesCoordenador')->nullable()->change();
$table->string('statusAnexoGrupoPesquisa')->nullable()->change();
$table->string('statusAnexoAtuorizacaoComiteEtica')->nullable()->change();
$table->string('statusJustificativaAutorizacaoEtica')->nullable()->change();
$table->string('statusPlanoTrabalho')->nullable()->change();
$table->string('statusParecer')->nullable()->change();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('parecer_internos', function (Blueprint $table) {
$table->string('statusLinkGrupoPesquisa')->nullable(false)->change();
$table->string('statusLinkLattesProponente')->nullable(false)->change();
$table->string('statusAnexoProjeto')->nullable(false)->change();
$table->string('statusAnexoDecisaoCONSU')->nullable(false)->change();
$table->string('statusAnexoPlanilhaPontuacao')->nullable(false)->change();
$table->string('statusAnexoLattesCoordenador')->nullable(false)->change();
$table->string('statusAnexoGrupoPesquisa')->nullable(false)->change();
$table->string('statusAnexoAtuorizacaoComiteEtica')->nullable(false)->change();
$table->string('statusJustificativaAutorizacaoEtica')->nullable(false)->change();
$table->string('statusPlanoTrabalho')->nullable(false)->change();
$table->string('statusParecer')->nullable(false)->change();
});
}
}
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateSessionsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('sessions', function (Blueprint $table) {
$table->string('id')->unique();
$table->unsignedBigInteger('user_id')->nullable();
$table->string('ip_address', 45)->nullable();
$table->text('user_agent')->nullable();
$table->text('payload');
$table->integer('last_activity');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('sessions');
}
}
This diff is collapsed.
...@@ -19,14 +19,20 @@ ...@@ -19,14 +19,20 @@
<form action="{{route('evento.update',$evento->id)}}" method="POST" enctype="multipart/form-data"> <form action="{{route('evento.update',$evento->id)}}" method="POST" enctype="multipart/form-data">
@csrf @csrf
<div class="row subtitulo"> <div class="row subtitulo">
<div class="col-sm-12"> <div class="col-sm-12">
<p>Informações Gerais</p> <p>Informações Gerais</p>
</div> </div>
</div> </div>
<input type="hidden" name="tipoAvaliacao" value="campos">
{{-- nome | Tipo--}} {{-- nome | Tipo--}}
<div class="row justify-content-start"> <div class="row justify-content-start">
<div class="col-sm-12">{{--Nome do evento--}}
{{--Nome do evento--}}
<div class="col-sm-12">
<label for="nome" class="col-form-label">{{ __('Nome:') }}<span style="color: red; font-weight: bold;">*</span></label> <label for="nome" class="col-form-label">{{ __('Nome:') }}<span style="color: red; font-weight: bold;">*</span></label>
<input value="{{$evento->nome}}" id="nome" type="text" class="form-control @error('nome') is-invalid @enderror" name="nome" value="{{ old('nome') }}" required autocomplete="nome" autofocus> <input value="{{$evento->nome}}" id="nome" type="text" class="form-control @error('nome') is-invalid @enderror" name="nome" value="{{ old('nome') }}" required autocomplete="nome" autofocus>
...@@ -35,27 +41,26 @@ ...@@ -35,27 +41,26 @@
<strong>{{ $message }}</strong> <strong>{{ $message }}</strong>
</span> </span>
@enderror @enderror
</div>{{--End Nome do evento--}} </div>
{{--End Nome do evento--}}
{{-- Tipo do evento --}} {{-- Tipo do evento --}}
<div class="col-sm-5"> <div class="col-sm-5">
<label for="tipo" class="col-form-label">{{ __('Tipo:') }}<span style="color: red; font-weight: bold;">*</span></label> <label for="tipo" class="col-form-label">{{ __('Tipo:') }}<span style="color: red; font-weight: bold;">*</span></label>
<!-- <input value="{{$evento->tipo}}" id="tipo" type="text" class="form-control @error('tipo') is-invalid @enderror" name="tipo" value="{{ old('tipo') }}" required autocomplete="tipo" autofocus> -->
<select id="tipo" type="text" class="form-control @error('tipo') is-invalid @enderror" name="tipo" required onchange="selectTipo()"> <select id="tipo" type="text" class="form-control @error('tipo') is-invalid @enderror" name="tipo" required onchange="selectTipo()">
<option value="PIBIC" {{ $evento->tipo == "PIBIC" ? 'selected' :'' }}>PIBIC</option> <option value="COMPONENTES_CURRICULARES" {{ $evento->tipo == "COMPONENTES_CURRICULARES" ? 'selected' : '' }}>APOIO À VIVÊNCIA DE COMPONENTES CURRICULARES</option>
<option value="PIBIC-EM" {{ $evento->tipo == "PIBIC-EM" ? 'selected' :'' }}>PIBIC-EM</option> <option value="INOVACAO_PEDAGOGICA" {{ $evento->tipo == "INOVACAO_PEDAGOGICA" ? 'selected' : '' }}>INOVAÇÃO PEDAGÓGICA</option>
<option value="PIBIC-AF" {{ $evento->tipo == "PIBIC-AF" ? 'selected' :'' }}>PIBIC-AF</option> <option value="PSICOSSOCIAL_PSICOPEDAGOGICO" {{ $evento->tipo == "PSICOSSOCIAL_PSICOPEDAGOGICO" ? 'selected' : '' }}>APOIO PSICOSSOCIAL OU PSICOPEDAGÓGICO</option>
<option value="PIBITI" {{ $evento->tipo == "PIBITI" ? 'selected' :'' }}>PIBITI</option>
<option value="PIBEX" {{ $evento->tipo == "PIBEX" ? 'selected' :'' }}>PIBEX</option>
<option value="PIACEX" {{ $evento->tipo == "PIACEX" ? 'selected' :'' }}>PIACEX</option>
<option value="CONTINUO" {{ $evento->tipo == "CONTINUO" ? 'selected' :'' }}>Fluxo Contínuo</option>
</select> </select>
@error('tipo') @error('tipo')
<span class="invalid-feedback" role="alert"> <span class="invalid-feedback" role="alert">
<strong>{{ $message }}</strong> <strong>{{ $message }}</strong>
</span> </span>
@enderror @enderror
</div>{{-- Tipo do evento --}} </div>
{{-- Tipo do evento --}}
<div class="col-sm-2"> <div class="col-sm-2">
<label for="natureza" class="col-form-label">{{ __('Natureza:') }}<span style="color: red; font-weight: bold;">*</span></label> <label for="natureza" class="col-form-label">{{ __('Natureza:') }}<span style="color: red; font-weight: bold;">*</span></label>
...@@ -76,16 +81,17 @@ ...@@ -76,16 +81,17 @@
@enderror @enderror
</div> </div>
<div class="col-sm-2"> <div class="col-sm-2">
<label for="numParticipantes" class="col-form-label">{{ __('Nº de Discentes:') }}<span style="color: red; font-weight: bold;">*</span></label> <label for="numParticipantes" class="col-form-label">{{ __('Nº de Discentes:') }}</label>
<input id="numParticipantes" type="number" min="0" max="500" class="form-control @error('numParticipantes') is-invalid @enderror" name="numParticipantes" value="{{ $evento->numParticipantes }}" required autocomplete="numParticipantes" autofocus> <input id="numParticipantes" type="number" min="0" max="500" class="form-control @error('numParticipantes') is-invalid @enderror" name="numParticipantes" value="{{ $evento->numParticipantes }}" autocomplete="numParticipantes" autofocus>
@error('numParticipantes') @error('numParticipantes')
<span class="invalid-feedback" role="alert"> <span class="invalid-feedback" role="alert">
<strong>{{ $message }}</strong> <strong>{{ $message }}</strong>
</span> </span>
@enderror @enderror
</div> </div>
</div>{{-- end nome | Participantes | Tipo--}} </div>
{{-- end nome | Participantes | Tipo--}}
<div class="row justify-content-start mb-1 mt-2"> <div class="row justify-content-start mb-1 mt-2">
...@@ -218,6 +224,7 @@ ...@@ -218,6 +224,7 @@
</div> </div>
<hr> <hr>
<div class="row subtitulo"> <div class="row subtitulo">
<div class="col-sm-12"> <div class="col-sm-12">
<p>Projetos</p> <p>Projetos</p>
...@@ -320,30 +327,7 @@ ...@@ -320,30 +327,7 @@
</div> </div>
</div> </div>
<!-- AKI --> <hr>
<div class="row justify-content-left">
<div class="col-sm-6" id='div-ini-proj'>
<label for="inicioProjeto" class="col-form-label">{{ __('Início do Projeto:') }}<span style="color: red; font-weight: bold;">*</span></label>
<input id="inicioProjeto" type="date" value="{{ $evento->inicioProjeto }}" class="form-control @error('inicioProjeto') is-invalid @enderror" name="inicioProjeto" value="{{ old('inicioProjeto') }}" required autocomplete="inicioProjeto" autofocus>
@error('inicioProjeto')
<span class="invalid-feedback" role="alert">
<strong>{{ $message . date('d/m/Y', strtotime($ontem ?? '')) . '.' }}</strong>
</span>
@enderror
</div>
<div class="col-sm-6" id='div-fim-proj'>
<label for="fimProjeto" class="col-form-label">{{ __('Fim do Projeto:') }}<span style="color: red; font-weight: bold;">*</span></label>
<input id="fimProjeto" type="date" value="{{ $evento->fimProjeto }}" class="form-control @error('fimProjeto') is-invalid @enderror" name="fimProjeto" value="{{ old('fimProjeto') }}" required autocomplete="fimProjeto" autofocus>
@error('fimProjeto')
<span class="invalid-feedback" role="alert">
<strong>{{ $message . date('d/m/Y', strtotime($ontem ?? '')) . '.' }}</strong>
</span>
@enderror
</div>
</div>
<div class="row subtitulo" id='div-relat-titulo'> <div class="row subtitulo" id='div-relat-titulo'>
<hr> <hr>
...@@ -398,10 +382,12 @@ ...@@ -398,10 +382,12 @@
</div> </div>
</div> </div>
<hr>
<div class="row subtitulo" id='div-avaliacao'> <div class="row subtitulo" id='div-avaliacao'>
<hr> <hr>
<div class="col-sm-12"> <div class="col-sm-12">
<p>Avaliação</p> <p>Avaliação - Barema</p>
</div> </div>
</div> </div>
...@@ -410,102 +396,16 @@ ...@@ -410,102 +396,16 @@
<strong>Você não pode alterar a avaliação após algum trabalho ter sido avaliado.</strong> <strong>Você não pode alterar a avaliação após algum trabalho ter sido avaliado.</strong>
</div> </div>
@endif @endif
<div class="my-2" id='div-text-aval'>
<p style="font-size: 16px">Como a avaliação será realizada?</p>
</div>
<div class="mb-2" id='div-tipo-aval'>
@if (old('tipoAvaliacao') != null)
<input type="radio" id="radioForm" name="tipoAvaliacao" onchange="displayTipoAvaliacao('form')"
@if((old('tipoAvaliacao') == 'form') || old('tipoAvaliacao') == "") checked @endif value="form" @if($avaliado) disabled @endif>
<label for="radioForm" style="margin-right: 5px">Formulário (em pdf)</label>
<input type="radio" id="radioCampos" name="tipoAvaliacao" onchange="displayTipoAvaliacao('campos')"
@if(old('tipoAvaliacao') == 'campos') checked @endif value="campos" @if($avaliado) disabled @endif>
<label for="radioCampos" style="margin-right: 5px">Barema</label>
<input type="radio" id="radioLink" name="tipoAvaliacao" onchange="displayTipoAvaliacao('link')"
@if(old('tipoAvaliacao') == 'link') checked @endif value="link" @if($avaliado) disabled @endif>
<label for="radioLink" style="margin-right: 5px">Link</label><br>
@else
<input type="radio" id="radioForm" name="tipoAvaliacao" onchange="displayTipoAvaliacao('form')"
@if($evento->tipoAvaliacao == 'form' || $evento->tipoAvaliacao == '') checked @endif value="form" @if($avaliado) disabled @endif>
<label for="radioForm" style="margin-right: 5px">Formulário (em pdf)</label>
<input type="radio" id="radioCampos" name="tipoAvaliacao" onchange="displayTipoAvaliacao('campos')"
@if($evento->tipoAvaliacao == 'campos') checked @endif value="campos" @if($avaliado) disabled @endif>
<label for="radioCampos" style="margin-right: 5px">Barema</label>
<input type="radio" id="radioLink" name="tipoAvaliacao" onchange="displayTipoAvaliacao('link')"
@if($evento->tipoAvaliacao == 'link') checked @endif value="link" @if($avaliado) disabled @endif>
<label for="radioLink" style="margin-right: 5px">Link</label><br>
@endif
</div>
<!-- Garante envio do tipo de avaliação, mesmo com a avaliação desativada -->
@if($avaliado)
@if($evento->tipoAvaliacao == 'form' || $evento->tipoAvaliacao == '')
<input type="hidden" id="radioForm" name="tipoAvaliacao" value="form">
@elseif($evento->tipoAvaliacao == 'campos')
<input type="hidden" id="radioCampos" name="tipoAvaliacao" value="campos">
@elseif($evento->tipoAvaliacao == 'link')
<input type="hidden" id="radioLink" name="tipoAvaliacao" value="link">
@endif
@endif
<div class="row justify-content-center" style="margin-top:10px" id="displayForm">
<div class="col-sm-6">
<div class="form-group" id='div-adhoc',>
<label for="pdfEdital">Formulário para avaliador <i>ad hoc</i>:<span style="color: red; font-weight: bold;">*</span></label>
@if ($evento->tipoAvaliacao == "form")
<a href="{{route('download', ['file' => $evento->formAvaliacaoExterno])}}" target="_new" style="font-size: 20px; color: #114048ff;" >
<img class="" src="{{asset('img/icons/file-download-solid.svg')}}" style="width:20px">
</a>
@else
<a>
<i class="fas fa-times-circle fa-2x" style="color:red; font-size:25px"></i>
</a>
@endif
<input type="file" accept=".pdf,.doc,.docx,.xlsx,.xls,.csv,.zip" class="form-control-file @error('pdfFormAvalExterno') is-invalid @enderror" name="pdfFormAvalExterno" value="{{ old('pdfFormAvalExterno') }}" id="pdfFormAvalExterno" @if($avaliado) disabled @endif>
<small>O arquivo selecionado deve ter até 2mb.</small>
@error('pdfFormAvalExterno')
<span class="invalid-feedback" role="alert">
<strong>{{ $message }}</strong>
</span>
@enderror
</div>
</div>
<div class="col-sm-6">
<div class="form-group" id='div-doc-aux'>
<label for="pdfEdital">Documento auxiliar para Avaliador:</label>
@if($evento->docTutorial != null)
<a href="{{route('download', ['file' => $evento->docTutorial])}}" target="_new" style="font-size: 20px; color: #114048ff;" >
<img class="" src="{{asset('img/icons/file-download-solid.svg')}}" style="width:20px">
</a>
@else
<a>
<i class="fas fa-times-circle fa-2x" style="color:red; font-size:25px"></i>
</a>
@endif
<input type="file" class="form-control-file @error('docTutorial') is-invalid @enderror" name="docTutorial" value="{{ old('docTutorial') }}" id="docTutorial" @if($avaliado) disabled @endif>
<small>O arquivo selecionado deve ser no formato PDF de até 2mb.</small>
@error('docTutorial')
<span class="invalid-feedback" role="alert">
<strong>{{ $message }}</strong>
</span>
@enderror
</div>
</div>
</div>
<div class="row justify-content-center" style="margin-top:10px; display: none" id="displayCampos"> <div>
<div class="row align-items-end mb-4"> <div class="row align-items-end mb-4">
<label class="col-sm-3" for="pontuacao">Valor total da pontuação por Barema:<span style="color:red; font-weight:bold;">*</span></label> <label class="col-sm-3" for="pontuacao">Valor total da pontuação por Barema:<span style="color:red; font-weight:bold;">*</span></label>
<input type="number" name="pontuacao" min="0" class="col-sm-1 form-control" id="pontuacao" value="{{old('pontuacao')?old('pontuacao'):$pontuacao}}" @if($avaliado) disabled @endif/> <input type="number" name="pontuacao" min="0" class="col-sm-1 form-control" id="pontuacao" value="{{old('pontuacao')?old('pontuacao'):$pontuacao}}" @if($avaliado) disabled @endif/>
</div> </div>
<label>Campos do Barema:</label> <label>Campos do Barema:</label>
</div>
<div class="row justify-content-center" style="margin-top:10px;" id="displayCampos">
<table class="table table-bordered col-sm-12" id="dynamicAddRemove"> <table class="table table-bordered col-sm-12" id="dynamicAddRemove">
<tr> <tr>
<th>Nome<span style="color:red; font-weight:bold;">*</span></th> <th>Nome<span style="color:red; font-weight:bold;">*</span></th>
...@@ -689,7 +589,7 @@ ...@@ -689,7 +589,7 @@
<strong>{{ $message }}</strong> <strong>{{ $message }}</strong>
</span> </span>
@enderror @enderror
</div> </div>
</div> </div>
<div class="col-sm-6"> <div class="col-sm-6">
...@@ -711,10 +611,47 @@ ...@@ -711,10 +611,47 @@
<strong>{{ $message }}</strong> <strong>{{ $message }}</strong>
</span> </span>
@enderror @enderror
</div> </div>
</div> </div>
{{-- Refact --}}
{{-- <div class="col-sm-6">
<div class="form-group">
<label for="pdfRecurso">Anexar modelo do formulário de recurso:<span style="color:red; font-weight:bold;">*</span></label>
@if(old('pdfRecursoPreenchido') != null)
<a id="pdfRecursoTemp" href="{{ route('baixar.evento.temp', ['nomeAnexo' => 'docRecurso' ])}}">Arquivo atual</a>
@endif
<input type="hidden" id="pdfRecursoPreenchido" name="pdfRecursoPreenchido" value="{{ old('pdfRecursoPreenchido') }}">
<input type="file" accept=".pdf" class="form-control-file pdf @error('pdfRecurso') is-invalid @enderror" name="pdfRecurso" value="{{ old('pdfRecurso') }}" id="pdfRecurso" onchange="exibirAnexoTemp(this)">
<small>O arquivo selecionado deve ser no formato PDF de até 2mb.</small>
@error('pdfRecurso')
<span class="invalid-feedback" role="alert">
<strong>{{ $message }}</strong>
</span>
@enderror
</div>
</div> --}}
{{-- --}}
{{-- Refact --}}
{{-- <div class="col-sm-6">
<div class="form-group">
<label for="pdfRelatorio">Anexar modelo do relatório técnico/pedagógico:</label>
@if(old('pdfRelatorioPreenchido') != null)
<a id="pdfRelatorioTemp" href="{{ route('baixar.evento.temp', ['nomeAnexo' => 'docRelatorio' ])}}">Arquivo atual</a>
@endif
<input type="hidden" id="pdfRelatorioPreenchido" name="pdfRelatorioPreenchido" value="{{ old('pdfRelatorioPreenchido') }}">
<input type="file" accept=".pdf" class="form-control-file pdf @error('pdfRelatorio') is-invalid @enderror" name="pdfRelatorio" value="{{ old('pdfRelatorio') }}" id="pdfRelatorio" onchange="exibirAnexoTemp(this)">
<small>O arquivo selecionado deve ser no formato PDF de até 2mb.</small>
@error('pdfFormAvalRelatorio')
<span class="invalid-feedback" role="alert">
<strong>{{ $message }}</strong>
</span>
@enderror
</div>
</div> --}}
{{-- --}}
<div class="col-sm-12"> <div class="col-sm-12">
<div class="form-group"> <div class="form-group">
<label for="pdfEdital">Formulário de avaliação do relatório:</label> <label for="pdfEdital">Formulário de avaliação do relatório:</label>
...@@ -764,7 +701,6 @@ ...@@ -764,7 +701,6 @@
var currentOptions = {'0': ''} var currentOptions = {'0': ''}
$(document).ready(function() { $(document).ready(function() {
displayTipoAvaliacao("{{ old('tipoAvaliacao') == null ? $evento->tipoAvaliacao : old('tipoAvaliacao')}}")
if (numCampos > 1) { if (numCampos > 1) {
for (let y = 1; y < (numCampos); y++) { for (let y = 1; y < (numCampos); y++) {
...@@ -914,33 +850,6 @@ ...@@ -914,33 +850,6 @@
} }
} }
// Tipo de avaliação
function displayTipoAvaliacao(valor){
if (valor == "form"){
document.getElementById("radioForm").checked = true;
document.getElementById("radioCampos").checked = false;
document.getElementById("radioLink").checked = false;
document.getElementById("displayForm").style.display = "";
document.getElementById("displayCampos").style.display = "none";
document.getElementById("displayLink").style.display = "none";
} else if (valor == "campos"){
document.getElementById("radioForm").checked = false;
document.getElementById("radioCampos").checked = true;
document.getElementById("radioLink").checked = false;
document.getElementById("displayForm").style.display = "none";
document.getElementById("displayCampos").style.display = "inline";
document.getElementById("displayLink").style.display = "none";
} else if (valor == "link") {
document.getElementById("radioForm").checked = false;
document.getElementById("radioCampos").checked = false;
document.getElementById("radioLink").checked = true;
document.getElementById("displayForm").style.display = "none";
document.getElementById("displayCampos").style.display = "none";
document.getElementById("displayLink").style.display = "";
}
}
function defCoord(data, data2) { function defCoord(data, data2) {
document.getElementById('coordenador_id').value = data; document.getElementById('coordenador_id').value = data;
document.getElementById('coordenador_name').value = data2; document.getElementById('coordenador_name').value = data2;
...@@ -990,8 +899,6 @@ ...@@ -990,8 +899,6 @@
'inicio_recurso', 'inicio_recurso',
'fim_recurso', 'fim_recurso',
'resultado_final', 'resultado_final',
'inicioProjeto',
'fimProjeto',
'dt_inicioRelatorioParcial', 'dt_inicioRelatorioParcial',
'dt_fimRelatorioParcial', 'dt_fimRelatorioParcial',
'dt_inicioRelatorioFinal', 'dt_inicioRelatorioFinal',
......
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