Commit 5bbc4c29 authored by alisson's avatar alisson
Browse files

update PAD -> PDA

parent 40ac23f1
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
class TaskTimeController extends Controller
{
public function index() {
}
public function createView() {
}
public function create() {
}
public function updateView() {
}
public function update() {
}
public function delete() {
}
}
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class TaskTime extends Model
{
const STATUS_REPROVADO = 6;
const STATUS_APROVADO = 7;
const STATUS_PENDENTE = 3;
const STATUS_EM_REVISAO = 8;
const TYPE_ENSINO_AULA = 1;
const TYPE_ENSINO_COORDENACAO_REGENCIA = 2;
const TYPE_ENSINO_ORIENTACAO = 3;
const TYPE_ENSINO_SUPERVISAO = 4;
const TYPE_ENSINO_ATENDIMENTO_DISCENTE = 5;
const TYPE_ENSINO_PROJETO = 6;
const TYPE_ENSINO_PARTICIPACAO = 7;
const TYPE_ENSINO_MEMBRO_DOCENTE = 8;
const TYPE_ENSINO_OUTROS = 9;
const TYPE_PESQUISA_COORDENACAO = 10;
const TYPE_PESQUISA_ORIENTACAO = 11;
const TYPE_PESQUISA_LIDERANCA = 12;
const TYPE_PESQUISA_OUTROS = 13;
const TYPE_EXTENSAO_COORDENACAO = 14;
const TYPE_EXTENSAO_ORIENTACAO = 15;
const TYPE_EXTENSAO_OUTROS = 16;
CONST TYPE_GESTAO_COORDENACAO_LABORATORIOS_DIDATICOS = 17;
CONST TYPE_GESTAO_MEMBRO_CONSELHO = 18;
CONST TYPE_GESTAO_COORDENACAO_PROGRAMA_INSTITUCIONAL = 19;
CONST TYPE_GESTAO_MEMBRO_TITULAR_CONSELHO = 20;
CONST TYPE_GESTAO_MEMBRO_CAMARAS = 21;
CONST TYPE_GESTAO_REPRESENTANTE_UNIDADE_EDUCACAO = 22;
CONST TYPE_GESTAO_MEMBRO_COMISSAO = 23;
CONST TYPE_GESTAO_OUTROS = 24;
CONST WEEK_DAY_SUNDAY = 1;
CONST WEEK_DAY_MONDAY = 2;
CONST WEEK_DAY_TUESDAY = 3;
CONST WEEK_DAY_WEDNESDAY = 4;
CONST WEEK_DAY_THURSDAY = 5;
CONST WEEK_DAY_FRIDAY = 6;
CONST WEEK_DAY_SATURDAY = 7;
protected $table = 'task_time';
protected $fillable = ['user_pad_upe', 'tarefa_id', 'type', 'weekday', 'start_time', 'end_time'];
public function tarefa()
{
// Return Ensino Models
// - - - - - - - - - -
if($this->type === self::TYPE_ENSINO_ATENDIMENTO_DISCENTE) {
return $this->hasOne(EnsinoAtendimentoDiscente::class, 'id', 'tarefa_id');
}
if($this->type === self::TYPE_ENSINO_AULA) {
return $this->hasOne(EnsinoAula::class, 'id', 'tarefa_id');
}
if($this->type === self::TYPE_ENSINO_COORDENACAO_REGENCIA) {
return $this->hasOne(EnsinoCoordenacaoRegencia::class, 'id', 'tarefa_id');
}
if($this->type === self::TYPE_ENSINO_MEMBRO_DOCENTE) {
return $this->hasOne(EnsinoMembroDocente::class, 'id', 'tarefa_id');
}
if($this->type === self::TYPE_ENSINO_ORIENTACAO) {
return $this->hasOne(EnsinoOrientacao::class, 'id', 'tarefa_id');
}
if($this->type === self::TYPE_ENSINO_OUTROS) {
return $this->hasOne(EnsinoOutros::class, 'id', 'tarefa_id');
}
if($this->type === self::TYPE_ENSINO_PARTICIPACAO) {
return $this->hasOne(EnsinoParticipacao::class, 'id', 'tarefa_id');
}
if($this->type === self::TYPE_ENSINO_PROJETO) {
return $this->hasOne(EnsinoProjeto::class, 'id', 'tarefa_id');
}
if($this->type === self::TYPE_ENSINO_SUPERVISAO) {
return $this->hasOne(EnsinoSupervisao::class, 'id', 'tarefa_id');
}
// - - - - - - - - - -
// Return Pesquisa Models
// - - - - - - - - - -
if($this->type === self::TYPE_PESQUISA_COORDENACAO) {
return $this->hasOne(PesquisaCoordenacao::class, 'id', 'tarefa_id');
}
if($this->type === self::TYPE_PESQUISA_LIDERANCA) {
return $this->hasOne(PesquisaLideranca::class, 'id', 'tarefa_id');
}
if($this->type === self::TYPE_PESQUISA_ORIENTACAO) {
return $this->hasOne(PesquisaOrientacao::class, 'id', 'tarefa_id');
}
if($this->type === self::TYPE_PESQUISA_OUTROS) {
return $this->hasOne(PesquisaOutros::class, 'id', 'tarefa_id');
}
// - - - - - - - - - -
// Return Extensao Models
// - - - - - - - - - -
if($this->type === self::TYPE_EXTENSAO_COORDENACAO) {
return $this->hasOne(ExtensaoCoordenacao::class, 'id', 'tarefa_id');
}
if($this->type === self::TYPE_EXTENSAO_ORIENTACAO) {
return $this->hasOne(ExtensaoOrientacao::class, 'id', 'tarefa_id');
}
if($this->type === self::TYPE_EXTENSAO_OUTROS) {
return $this->hasOne(ExtensaoOutros::class, 'id', 'tarefa_id');
}
// - - - - - - - - - -
// Return Gestao Models
// - - - - - - - - - -
if($this->type === self::TYPE_GESTAO_COORDENACAO_LABORATORIOS_DIDATICOS) {
return $this->hasOne(GestaoCoordenacaoLaboratoriosDidaticos::class, 'id', 'tarefa_id');
}
if($this->type === self::TYPE_GESTAO_COORDENACAO_PROGRAMA_INSTITUCIONAL) {
return $this->hasOne(GestaoCoordenacaoProgramaInstitucional::class, 'id', 'tarefa_id');
}
if($this->type === self::TYPE_GESTAO_MEMBRO_CAMARAS) {
return $this->hasOne(GestaoMembroCamaras::class, 'id', 'tarefa_id');
}
if($this->type === self::TYPE_GESTAO_MEMBRO_COMISSAO) {
return $this->hasOne(GestaoMembroComissao::class, 'id', 'tarefa_id');
}
if($this->type === self::TYPE_GESTAO_MEMBRO_CONSELHO) {
return $this->hasOne(GestaoMembroConselho::class, 'id', 'tarefa_id');
}
if($this->type === self::TYPE_GESTAO_MEMBRO_TITULAR_CONSELHO) {
return $this->hasOne(GestaoMembroTitularConselho::class, 'id', 'tarefa_id');
}
if($this->type === self::TYPE_GESTAO_OUTROS) {
return $this->hasOne(GestaoOutros::class, 'id', 'tarefa_id');
}
if($this->type === self::TYPE_GESTAO_REPRESENTANTE_UNIDADE_EDUCACAO) {
return $this->hasOne(GestaoRepresentanteUnidadeEducacao::class, 'id', 'tarefa_id');
}
// - - - - - - - - - -
}
public function userPad() {
return $this->hasOne(UserPad::class, 'id', 'user_pad_id');
}
public static function listWeekDays($value) {
$values = [
self::WEEK_DAY_SUNDAY => "DOMINGO",
self::WEEK_DAY_MONDAY => "SEGUNDA-FEIRA",
self::WEEK_DAY_TUESDAY => "TERÇA-FEIRA",
self::WEEK_DAY_WEDNESDAY => "QUARTA-FEIRA",
self::WEEK_DAY_THURSDAY => "QUINTA-FEIRA",
self::WEEK_DAY_FRIDAY => "SEXTA-FEIRA",
self::WEEK_DAY_SATURDAY => "SÁBADO",
];
return $value != null ? $values[$value] : $values;
}
}
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateTaskTimeTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('task_time', function (Blueprint $table) {
$table->id();
$table->integer('user_pad_id');
$table->integer('tarefa_id');
$table->tinyInteger('type');
$table->tinyInteger('weekday');
$table->time('start_time');
$table->time('end_time');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('task_time');
}
}
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
<div class="w-100"> <div class="w-100">
<h4 class="mb-4"> Informações </h4> <h4 class="mb-4"> Informações </h4>
</div> </div>
<p class="w-100 text-center"> Bem-Vindo(a) ao PAD </p> <p class="w-100 text-center"> Bem-Vindo(a) ao PDA </p>
<!-- <p class="w-100 text-center text-danger"> Serviço em ajuste. Em breve, será novamente liberado </p> --> <!-- <p class="w-100 text-center text-danger"> Serviço em ajuste. Em breve, será novamente liberado </p> -->
<p class="w-100 text-center"> O primeiro acesso deve ser realizado utilizando o seu e-mail institucional como login e parte local do email como senha. </p> <p class="w-100 text-center"> O primeiro acesso deve ser realizado utilizando o seu e-mail institucional como login e parte local do email como senha. </p>
<p class="w-100 font-weight-bold"> Exemplo: </p> <p class="w-100 font-weight-bold"> Exemplo: </p>
......
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
<div class="stylo p-3 n-flex"> <div class="stylo p-3 n-flex">
<h2>Portal de acesso ao</h2> <h2>Portal de acesso ao</h2>
<h3>Plano de Atividades Docentes - PAD</h3> <h3> Plano Docente de Atividades - PDA </h3>
</div> </div>
<div class="container"> <div class="container">
......
<div class="tab-pane active" id="home" role="tabpanel" aria-labelledby="home-tab"> <div class="tab-pane active" id="home" role="tabpanel" aria-labelledby="home-tab">
<div <div
class="d-flex justify-content-between flex-wrap flex-md-nowrap align-items-center pt-3 pb-2 mb-3 border-bottom"> class="d-flex justify-content-between flex-wrap flex-md-nowrap align-items-center pt-3 pb-2 mb-3 border-bottom">
<h1 class="h2">Bem Vindo ao PAD</h1> <h1 class="h2">Bem Vindo ao PDA</h1>
</div> </div>
</div> </div>
\ No newline at end of file
<div class="tab-pane active" id="home" role="tabpanel" aria-labelledby="home-tab"> <div class="tab-pane active" id="home" role="tabpanel" aria-labelledby="home-tab">
<div class="d-flex justify-content-between flex-wrap flex-md-nowrap align-items-center pt-3 pb-2 mb-3 border-bottom"> <div class="d-flex justify-content-between flex-wrap flex-md-nowrap align-items-center pt-3 pb-2 mb-3 border-bottom">
<h1 class="h2">Bem Vindo ao PAD</h1> <h1 class="h2">Bem Vindo ao PDA</h1>
</div> </div>
<div class="d-flex justify-content-between flex-wrap flex-md-nowrap align-items-center pt-3 pb-2 mb-3"> <div class="d-flex justify-content-between flex-wrap flex-md-nowrap align-items-center pt-3 pb-2 mb-3">
<h3> <h3>
......
<div class="tab-pane active" id="home" role="tabpanel" aria-labelledby="home-tab"> <div class="tab-pane active" id="home" role="tabpanel" aria-labelledby="home-tab">
<div class="d-flex justify-content-between flex-wrap flex-md-nowrap align-items-center pt-3 pb-2 mb-3 border-bottom"> <div class="d-flex justify-content-between flex-wrap flex-md-nowrap align-items-center pt-3 pb-2 mb-3 border-bottom">
<h1 class="h2">Bem Vindo ao PAD</h1> <h1 class="h2">Bem Vindo ao PDA</h1>
</div> </div>
<div class="d-flex justify-content-between flex-wrap flex-md-nowrap align-items-center pt-3 pb-2 mb-3"> <div class="d-flex justify-content-between flex-wrap flex-md-nowrap align-items-center pt-3 pb-2 mb-3">
<h2 class="h3"> <h2 class="h3">
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<div class="tab-pane active" id="home" role="tabpanel" aria-labelledby="home-tab"> <div class="tab-pane active" id="home" role="tabpanel" aria-labelledby="home-tab">
<div class="d-flex justify-content-between flex-wrap flex-md-nowrap align-items-center pt-3 pb-2 mb-3 border-bottom"> <div class="d-flex justify-content-between flex-wrap flex-md-nowrap align-items-center pt-3 pb-2 mb-3 border-bottom">
<h1 class="h2">Bem Vindo ao PAD</h1> <h1 class="h2">Bem Vindo ao PDA</h1>
</div> </div>
<div class="d-flex justify-content-between flex-wrap flex-md-nowrap align-items-center pt-3 pb-2 mb-3"> <div class="d-flex justify-content-between flex-wrap flex-md-nowrap align-items-center pt-3 pb-2 mb-3">
{{-- <h3> {{-- <h3>
......
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
<li class="nav-item"> <li class="nav-item">
<a href="{{ route('pad_index') }}" class="custom-nav-link {{ $pads_active }}"> <a href="{{ route('pad_index') }}" class="custom-nav-link {{ $pads_active }}">
<i class="bi bi-book-half"></i> <i class="bi bi-book-half"></i>
PADs PDAs
</a> </a>
</li> </li>
<li class="nav-item"> <li class="nav-item">
......
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
<path <path
d="M8.5 2.687c.654-.689 1.782-.886 3.112-.752 1.234.124 2.503.523 3.388.893v9.923c-.918-.35-2.107-.692-3.287-.81-1.094-.111-2.278-.039-3.213.492V2.687zM8 1.783C7.015.936 5.587.81 4.287.94c-1.514.153-3.042.672-3.994 1.105A.5.5 0 0 0 0 2.5v11a.5.5 0 0 0 .707.455c.882-.4 2.303-.881 3.68-1.02 1.409-.142 2.59.087 3.223.877a.5.5 0 0 0 .78 0c.633-.79 1.814-1.019 3.222-.877 1.378.139 2.8.62 3.681 1.02A.5.5 0 0 0 16 13.5v-11a.5.5 0 0 0-.293-.455c-.952-.433-2.48-.952-3.994-1.105C10.413.809 8.985.936 8 1.783z" /> d="M8.5 2.687c.654-.689 1.782-.886 3.112-.752 1.234.124 2.503.523 3.388.893v9.923c-.918-.35-2.107-.692-3.287-.81-1.094-.111-2.278-.039-3.213.492V2.687zM8 1.783C7.015.936 5.587.81 4.287.94c-1.514.153-3.042.672-3.994 1.105A.5.5 0 0 0 0 2.5v11a.5.5 0 0 0 .707.455c.882-.4 2.303-.881 3.68-1.02 1.409-.142 2.59.087 3.223.877a.5.5 0 0 0 .78 0c.633-.79 1.814-1.019 3.222-.877 1.378.139 2.8.62 3.681 1.02A.5.5 0 0 0 16 13.5v-11a.5.5 0 0 0-.293-.455c-.952-.433-2.48-.952-3.994-1.105C10.413.809 8.985.936 8 1.783z" />
</svg> </svg>
PAD PDA
</a> </a>
</li> </li>
......
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
<li class="nav-item"> <li class="nav-item">
<a href="{{ route('pad_index') }}" class="custom-nav-link {{ $pads_active }}"> <a href="{{ route('pad_index') }}" class="custom-nav-link {{ $pads_active }}">
<i class="bi bi-book-half"></i> <i class="bi bi-book-half"></i>
PADs PDAs
</a> </a>
</li> </li>
</ul> </ul>
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