Commit 70a1f367 authored by alissonalbuquerque's avatar alissonalbuquerque
Browse files

add rotas e migrations de dimensoes: extensao & gestao

parent ae24a02f
...@@ -16,7 +16,7 @@ class CreatePesquisaOrientacaoTable extends Migration ...@@ -16,7 +16,7 @@ class CreatePesquisaOrientacaoTable extends Migration
Schema::create('pesquisa_orientacao', function (Blueprint $table) { Schema::create('pesquisa_orientacao', function (Blueprint $table) {
$table->id(); $table->id();
$table->foreignId('user_pad_id')->notNull(); $table->foreignId('user_pad_id')->notNull();
$table->tinyInteger('dimensao')->nullable(); $table->tinyInteger('dimensao')->notNull();
$table->string('cod_atividade')->notNull(); $table->string('cod_atividade')->notNull();
$table->string('titulo_projeto')->notNull(); $table->string('titulo_projeto')->notNull();
$table->string('nome_orientando')->notNull(); $table->string('nome_orientando')->notNull();
......
...@@ -16,7 +16,7 @@ class CreateEnsinoSupervisaoTable extends Migration ...@@ -16,7 +16,7 @@ class CreateEnsinoSupervisaoTable extends Migration
Schema::create('ensino_supervisao', function (Blueprint $table) { Schema::create('ensino_supervisao', function (Blueprint $table) {
$table->id(); $table->id();
$table->foreignId('user_pad_id')->notNull(); $table->foreignId('user_pad_id')->notNull();
$table->tinyInteger('dimensao')->nullable(); $table->tinyInteger('dimensao')->notNull();
$table->string('cod_atividade')->notNull(); $table->string('cod_atividade')->notNull();
$table->string('atividade')->notNull(); $table->string('atividade')->notNull();
$table->string('curso')->notNull(); $table->string('curso')->notNull();
......
...@@ -16,7 +16,7 @@ class CreateEnsinoAtendimentoDiscenteTable extends Migration ...@@ -16,7 +16,7 @@ class CreateEnsinoAtendimentoDiscenteTable extends Migration
Schema::create('ensino_atendimento_discente', function (Blueprint $table) { Schema::create('ensino_atendimento_discente', function (Blueprint $table) {
$table->id(); $table->id();
$table->foreignId('user_pad_id')->notNull(); $table->foreignId('user_pad_id')->notNull();
$table->tinyInteger('dimensao')->nullable(); $table->tinyInteger('dimensao')->notNull();
$table->string('cod_atividade')->notNull(); $table->string('cod_atividade')->notNull();
$table->string('componente_curricular')->notNull(); $table->string('componente_curricular')->notNull();
$table->string('curso')->notNull(); $table->string('curso')->notNull();
......
...@@ -16,7 +16,7 @@ class CreateEnsinoProjetoTable extends Migration ...@@ -16,7 +16,7 @@ class CreateEnsinoProjetoTable extends Migration
Schema::create('ensino_projeto', function (Blueprint $table) { Schema::create('ensino_projeto', function (Blueprint $table) {
$table->id(); $table->id();
$table->foreignId('user_pad_id')->notNull(); $table->foreignId('user_pad_id')->notNull();
$table->tinyInteger('dimensao')->nullable(); $table->tinyInteger('dimensao')->notNull();
$table->string('cod_atividade')->notNull(); $table->string('cod_atividade')->notNull();
$table->string('titulo')->notNull(); $table->string('titulo')->notNull();
$table->string('curso')->notNull(); $table->string('curso')->notNull();
......
...@@ -16,7 +16,7 @@ class CreateEnsinoParticipacaoTable extends Migration ...@@ -16,7 +16,7 @@ class CreateEnsinoParticipacaoTable extends Migration
Schema::create('ensino_participacao', function (Blueprint $table) { Schema::create('ensino_participacao', function (Blueprint $table) {
$table->id(); $table->id();
$table->foreignId('user_pad_id')->notNull(); $table->foreignId('user_pad_id')->notNull();
$table->tinyInteger('dimensao')->nullable(); $table->tinyInteger('dimensao')->notNull();
$table->string('cod_atividade')->notNull(); $table->string('cod_atividade')->notNull();
$table->string('curso')->notNull(); $table->string('curso')->notNull();
$table->tinyInteger('nivel')->notNull(); $table->tinyInteger('nivel')->notNull();
......
...@@ -16,7 +16,7 @@ class CreateEnsinoCoordenacaoRegenciaTable extends Migration ...@@ -16,7 +16,7 @@ class CreateEnsinoCoordenacaoRegenciaTable extends Migration
Schema::create('ensino_coordenacao_regencia', function (Blueprint $table) { Schema::create('ensino_coordenacao_regencia', function (Blueprint $table) {
$table->id(); $table->id();
$table->foreignId('user_pad_id')->notNull(); $table->foreignId('user_pad_id')->notNull();
$table->tinyInteger('dimensao')->nullable(); $table->tinyInteger('dimensao')->notNull();
$table->string('cod_atividade')->notNull(); $table->string('cod_atividade')->notNull();
$table->string('componente_curricular')->notNull(); $table->string('componente_curricular')->notNull();
$table->string('curso')->notNull(); $table->string('curso')->notNull();
......
...@@ -16,7 +16,7 @@ class CreateEnsinoMembroDocenteTable extends Migration ...@@ -16,7 +16,7 @@ class CreateEnsinoMembroDocenteTable extends Migration
Schema::create('ensino_membro_docente', function (Blueprint $table) { Schema::create('ensino_membro_docente', function (Blueprint $table) {
$table->id(); $table->id();
$table->foreignId('user_pad_id')->notNull(); $table->foreignId('user_pad_id')->notNull();
$table->tinyInteger('dimensao')->nullable(); $table->tinyInteger('dimensao')->notNull();
$table->string('cod_atividade')->notNull(); $table->string('cod_atividade')->notNull();
$table->string('nucleo')->notNull(); $table->string('nucleo')->notNull();
$table->string('documento')->notNull(); $table->string('documento')->notNull();
......
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateExtensaoCoordenacaoTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('extensao_coordenacao', function (Blueprint $table) {
$table->id();
$table->foreignId('user_pad_id')->notNull();
$table->tinyInteger('dimensao')->notNull();
$table->string('cod_atividade')->notNull();
$table->string('titulo_projeto')->notNull();
$table->string('programa_extensao')->notNull();
$table->tinyInteger('funcao')->notNull();
$table->integer('ch_semanal')->notNull();
$table->text('atividade')->notNull();
$table->timestamps();
$table->softDeletes();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('extensao_coordenacao');
}
}
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateExtensaoOrientacaoTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('extensao_orientacao', function (Blueprint $table) {
$table->id();
$table->foreignId('user_pad_id')->notNull();
$table->tinyInteger('dimensao')->notNull();
$table->string('cod_atividade')->notNull();
$table->string('titulo_projeto')->notNull();
$table->string('discente')->notNull();
$table->tinyInteger('funcao')->notNull();
$table->integer('ch_semanal')->notNull();
$table->timestamps();
$table->softDeletes();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('extensao_orientacao');
}
}
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateGestaoMembroComissaoTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('gestao_membro_comissao', function (Blueprint $table) {
$table->id();
$table->foreignId('user_pad_id')->notNull();
$table->tinyInteger('dimensao')->notNull();
$table->string('cod_atividade')->notNull();
$table->string('nome')->notNull();
$table->string('documento')->notNull();
$table->integer('ch_semanal')->notNull();
$table->timestamps();
$table->softDeletes();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('gestao_membro_comissao');
}
}
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateGestaoMembroConselhoTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('gestao_membro_conselho', function (Blueprint $table) {
$table->id();
$table->foreignId('user_pad_id')->notNull();
$table->tinyInteger('dimensao')->notNull();
$table->string('cod_atividade')->notNull();
$table->string('nome')->notNull();
$table->string('documento')->notNull();
$table->integer('ch_semanal')->notNull();
$table->timestamps();
$table->softDeletes();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('gestao_membro_conselho');
}
}
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateGestaoMembroTitularConselhoTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('gestao_membro_titular_conselho', function (Blueprint $table) {
$table->id();
$table->foreignId('user_pad_id')->notNull();
$table->tinyInteger('dimensao')->notNull();
$table->string('cod_atividade')->notNull();
$table->string('nome')->notNull();
$table->string('documento')->notNull();
$table->integer('ch_semanal')->notNull();
$table->timestamps();
$table->softDeletes();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('gestao_membro_titular_conselho');
}
}
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateGestaoRepresentanteUnidadeEducacaoTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('gestao_representante_unidade_educacao', function (Blueprint $table) {
$table->id();
$table->foreignId('user_pad_id')->notNull();
$table->tinyInteger('dimensao')->notNull();
$table->string('cod_atividade')->notNull();
$table->string('nome')->notNull();
$table->string('documento')->notNull();
$table->integer('ch_semanal')->notNull();
$table->timestamps();
$table->softDeletes();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('gestao_representante_unidade_educacao');
}
}
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateGestaoMembroCamarasTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('gestao_membro_camaras', function (Blueprint $table) {
$table->id();
$table->foreignId('user_pad_id')->notNull();
$table->tinyInteger('dimensao')->notNull();
$table->string('cod_atividade')->notNull();
$table->string('nome')->notNull();
$table->string('documento')->notNull();
$table->integer('ch_semanal')->notNull();
$table->timestamps();
$table->softDeletes();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('gestao_membro_camaras');
}
}
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateGestaoCoordenacaoLaboratoriosDidaticosTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('gestao_coordenacao_laboratorios_didaticos', function (Blueprint $table) {
$table->id();
$table->foreignId('user_pad_id')->notNull();
$table->tinyInteger('dimensao')->notNull();
$table->string('cod_atividade')->notNull();
$table->string('nome')->notNull();
$table->string('documento')->notNull();
$table->integer('ch_semanal')->notNull();
$table->timestamps();
$table->softDeletes();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('gestao_coordenacao_laboratorios_didaticos');
}
}
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateGestaoCoordenacaoProgramaInstitucionalTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('gestao_coordenacao_programa_institucional', function (Blueprint $table) {
$table->id();
$table->foreignId('user_pad_id')->notNull();
$table->tinyInteger('dimensao')->notNull();
$table->string('cod_atividade')->notNull();
$table->string('nome')->notNull();
$table->string('documento')->notNull();
$table->integer('ch_semanal')->notNull();
$table->timestamps();
$table->softDeletes();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('gestao_coordenacao_programa_institucional');
}
}
<div id="ensino_coordenacao_disciplina" class="">
<div>
<div class="mb-3">
<h3 class="h3"> Ensino - Coordenação (disciplinas) </h3 class="h3">
</div>
<form action="{{-- route('') --}}" method="post" id="ensino_coordenacao_disciplina-form" class="">
@csrf
<div class="row">
<input type="hidden" name="user_pad_id" value="{{ $user_pad_id }}">
<div class="mb-3 col-sm-2">
<label class="form-label" for="cod_atividade">Cód. Atividade</label>
<input class="form-control" type="text" name="cod_atividade" id="cod_atividade" disabled readonly>
</div>
<div class="mb-3 col-sm-5">
<label class="form-label" for="componente_curricular">Componente Curricular</label>
<input class="form-control" type="text" name="componente_curricular" id="componente_curricular" value="{{ old('componente_curricular') }}">
@include('components.divs.errors', [
'form' => 'ensino_coordenacao_disciplina_form_create',
'field' => 'componente_curricular',
])
</div>
<div class="mb-3 col-sm-5">
<label class="form-label" for="curso">Curso</label>
<input class="form-control" type="text" name="curso" id="curso" value="{{ old('curso') }}">
@include('components.divs.errors', [
'form' => 'ensino_coordenacao_disciplina_form_create',
'field' => 'curso',
])
</div>
<div class="mb-3 col-sm-3">
<label class="form-label" for="nivel">Nível</label>
<select class="form-select" name="nivel" id="nivel">
<option selected value="0">Selecione um Nível</option>
<option value="0">Selecione um Nível</option>
@foreach($niveis as $value => $nivel)
@if( $value == old('nivel') )
<option selected value="{{$value}}">{{$nivel}}</option>
@else
<option value="{{$value}}">{{$nivel}}</option>
@endif
@endforeach
</select>
@include('components.divs.errors', [
'form' => 'ensino_coordenacao_disciplina_form_create',
'field' => 'nivel',
])
</div>
<div class="mb-3 col-sm-3">
<label class="form-label" for="modalidade">Modalidade</label>
<select class="form-select" name="modalidade" id="modalidade">
<option value="0">Selecione uma Modalidade</option>
@foreach($modalidades as $value => $modalidade)
@if( $value == old('modalidade') )
<option selected value="{{$value}}">{{$modalidade}}</option>
@else
<option value="{{$value}}">{{$modalidade}}</option>
@endif
@endforeach
</select>
@include('components.divs.errors', [
'form' => 'ensino_coordenacao_disciplina_form_create',
'field' => 'modalidade',
])
</div>
<div class="mb-3 col-sm-2">
<label class="form-label" for="ch_semanal">CH. Semanal</label>
<input class="form-control" type="number" name="ch_semanal" id="ch_semanal">
@include('components.divs.errors', [
'form' => 'ensino_coordenacao_disciplina_form_create',
'field' => 'ch_semanal',
])
</div>
</div>
<div class="mt-1 text-end">
@include('components.buttons.btn-save', [
'id' => '',
'content' => 'Cadastrar',
])
</div>
</form>
</div>
<div class="border rounded px-4 mt-4">
<table class="table table-hover" id="ensino_aulas-table-">
<thead>
<tr>
<!-- <th scole="col">#</th> -->
<th scope="col"> Cód </th>
<th scope="col"> Componente Curricular </th>
<th scope="col"> Curso </th>
<th scope="col"> Nível </th>
<th scope="col"> Modalidade </th>
<th scope="col"> CH Semanal </th>
<th scope="col"> Opções </th>
</tr>
</thead>
<tbody>
@foreach($ensinoCoordenacaoDisciplinas as $ensinoCoordenacaoDisciplina)
<tr>
<td>{{ $ensinoCoordenacaoDisciplina->cod_atividade }}</td>
<td>{{ $ensinoCoordenacaoDisciplina->componente_curricular }}</td>
<td>{{ $ensinoCoordenacaoDisciplina->curso }}</td>
<td>{{ $ensinoCoordenacaoDisciplina->nivelAsString() }}</td>
<td>{{ $ensinoCoordenacaoDisciplina->modalidadeAsString() }}</td>
<td>{{ $ensinoCoordenacaoDisciplina->ch_semanal }}</td>
<td>
@include('components.buttons.btn-edit-task', [
'btn_class' => 'btn-edit_ensino_coordenacao_disciplina',
'btn_id' => $ensinoCoordenacaoDisciplina->id,
])
@include('components.buttons.btn-delete', [
'id' => $ensinoCoordenacaoDisciplina->id,
'route' => route('ensino_coordenacao_disciplina_delete', ['id' => $ensinoCoordenacaoDisciplina->id])
])
</td>
</tr>
@endforeach
</tbody>
</table>
</div>
</div>
\ No newline at end of file
<div id="ensino_atendimento_discente" class="">
<div>
<div class="mb-3">
<h3 class="h3"> Ensino - Atendimento ao Discente </h3 class="h3">
</div>
<form action="{{--route('')--}}" method="post" id="ensino_atendimento_discente-form" class="">
@csrf
<div class="row">
<input type="hidden" name="pad_id" value={{1}}>
<div class="mb-3 col-sm-2">
<label class="form-label" for="cod_atividade">Cód. Atividade</label>
<input class="form-control" type="text" name="cod_atividade" id="cod_atividade" disabled readonly>
</div>
<div class="mb-3 col-sm-5">
<label class="form-label" for="componente_curricular">Componente Curricular</label>
<input class="form-control" type="text" name="componente_curricular" id="componente_curricular">
</div>
<div class="mb-3 col-sm-5">
<label class="form-label" for="curso">Curso</label>
<input class="form-control" type="text" name="curso" id="curso">
</div>
<div class="mb-3 col-sm-3">
<label class="form-label" for="nivel">Nível</label>
<select class="form-select" name="nivel" id="nivel">
<option selected value="0">Selecione um Nível</option>
@foreach($niveis as $value => $nivel)
<option value="{{$value}}">{{$nivel}}</option>
@endforeach
</select>
</div>
<div class="mb-3 col-sm-2">
<label class="form-label" for="ch_semanal">CH. Semanal</label>
<input class="form-control" type="number" name="ch_semanal" id="ch_semanal">
</div>
</div>
<div class="mt-1 text-end">
<button type="submit" class="btn btn-success rounded">Cadastrar</button>
</div>
</form>
</div>
<div class="" id="">
@include('pad.components.templates.table', ['table_id' => 'ensino_atendimento_discente-table', 'colunas' => ['Cód', ]])
</div>
</div>
\ No newline at end of file
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