Commit da1ae912 authored by alissonalbuquerque's avatar alissonalbuquerque
Browse files

Add correcoes de importacao de bibliotecas && refatoracao de dimensao ensino do pad

parent 5038dee1
...@@ -5,6 +5,7 @@ namespace App\Http\Controllers\Dimensao; ...@@ -5,6 +5,7 @@ namespace App\Http\Controllers\Dimensao;
use App\Http\Controllers\Controller; use App\Http\Controllers\Controller;
use App\Models\Curso; use App\Models\Curso;
use App\Models\Tabelas\Ensino\EnsinoAula; use App\Models\Tabelas\Ensino\EnsinoAula;
use App\Models\Util\PadTables;
use App\Queries\CursoQuery; use App\Queries\CursoQuery;
use Illuminate\Http\Request; use Illuminate\Http\Request;
use Illuminate\Support\Facades\Auth; use Illuminate\Support\Facades\Auth;
...@@ -21,12 +22,14 @@ class EnsinoController extends Controller ...@@ -21,12 +22,14 @@ class EnsinoController extends Controller
* @return \Illuminate\Http\Response * @return \Illuminate\Http\Response
*/ */
public function index() { public function index() {
$user = Auth::user(); $user = Auth::user();
$cursos = (new CursoQuery())->getQuery()->get(); $cursos = (new CursoQuery())->getQuery()->get();
$niveis = EnsinoAula::listNivel(); $niveis = EnsinoAula::listNivel();
$modalidades = EnsinoAula::listModalidade(); $modalidades = EnsinoAula::listModalidade();
$ensinoAulas = EnsinoAula::all(); $ensinoAulas = EnsinoAula::all();
$divs = PadTables::tablesEnsino();
return view('pad.dimensao.ensino', [ return view('pad.dimensao.ensino', [
'pad_id' => 1, 'pad_id' => 1,
...@@ -34,6 +37,7 @@ class EnsinoController extends Controller ...@@ -34,6 +37,7 @@ class EnsinoController extends Controller
'niveis' => $niveis, 'niveis' => $niveis,
'ensinoAulas' => $ensinoAulas, 'ensinoAulas' => $ensinoAulas,
'modalidades' => $modalidades, 'modalidades' => $modalidades,
'divs' => $divs,
'index_menu' => self::MENU_PAD, 'index_menu' => self::MENU_PAD,
]); ]);
} }
......
<?php
namespace App\Models\Util;
class PadTables {
public static function tablesEnsino() {
return [
['id' => 'ensino_aulas', 'name' => 'ENSINO (AULAS EM COMPONENTES CURRICULARES)'],
['id' => 'ensino_coordenacao_disciplina', 'name' => 'ENSINO (COORDENAÇÃO/ REGÊNCIA COMPONENTES CURRICULARES)'],
['id' => 'ensino_orientacao', 'name' => 'ENSINO (ORIENTAÇÕES: ORIENTAÇÃO DE ESTÁGIO, ORIENTAÇÃO DE TCC, ORIENTAÇÃO DE RESIDÊNCIA, ORIENTAÇÃO DE MESTRADO E/OU ORIENTAÇÃO DE DOUTORADO. COORIENTAÇÕES: TCC, MESTRADO E/OU DOUTORADO)'],
['id' => 'ensino_supervisao', 'name' => 'ENSINO (SUPERVISÕES: SUPERVISÃO/PRECEPTORIA DE ESTÁGIO, SUPERVISÃO DE ESTÁGIO DOCENCIA, SUPERVISÃO/TUTORIA DE RESIDÊNCIA)'],
['id' => 'ensino_atendimento_discente', 'name' => 'ENSINO – ATENDIMENTO AO DISCENTE (O DOCENTE DEVERÁ PUBLICAR NA UNIDADE OS DIAS, HORÁRIOS E LOCAIS QUE PRESTARÁ O ATENDIMENTO)'],
['id' => 'ensino_projeto', 'name' => 'ENSINO (PROJETOS OU AÇÕES DE ENSINO)'],
['id' => 'ensino_participacao', 'name' => 'ENSINO (PARTICIPAÇÃO NAS REUNIÕES DOS COLEGIADOS DE PLENO DE CURSO DE GRADUAÇÃO E PÓS-GRADUAÇÃO)'],
['id' => 'ensino_coordenacao_docente', 'name' => 'ENSINO (COORDENAÇÃO OU MEMBRO DE NÚCLEO DOCENTE ESTRUTURANTE OU NÚCLEO DOCENTE ESTRUTURANTE ASSISTENCIAL)'],
];
}
public static function tablesPesquisa() {
return [
];
}
public static function tablesExtensao() {
return [
];
}
public static function tablesGestao() {
return [
];
}
}
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
<x-guest-layout> @extends('auth.main')
<x-slot name="content">
<!-- Container principal -->
<div class="container">
<div class="row justify-content-center">
<div class="col-md-12 col-lg-7">
<div class="login-wrap">
<!-- Session Status --> @section('body')
<x-auth-session-status class="mb-4" :status="session('status')" /> <!-- Container principal -->
<div class="ftco-section">
<!-- Validation Errors --> <div class="row justify-content-center">
<x-auth-validation-errors class="alert alert-danger mb-2" :errors="$errors" /> <div class="col-md-12 col-lg-7">
<div class="login-wrap">
<form action="{{ route('login') }}" method="POST" class="signin-form d-md-flex"> <!-- Session Status -->
@csrf <x-auth-session-status class="mb-4" :status="session('status')" />
<!-- Informações --> <!-- Validation Errors -->
<div class="half p-4 py-md-5 bg-primary"> <x-auth-validation-errors class="alert alert-danger mb-2" :errors="$errors" />
<div class="w-100">
<h4 class="mb-4">Informações</h4> <form action="{{ route('login') }}" method="POST" class="signin-form d-md-flex">
</div> @csrf
<p class="w-100 text-center">&mdash; Atenção &mdash;</p>
<p class="w-100 text-center">O primeiro acesso deve ser realizado utilizando seu e-mail <!-- Informações -->
e CPF, nos campos de login e senha respectivamente</p> <div class="half p-4 py-md-5 bg-primary">
<div class="w-100">
<h4 class="mb-4">Informações</h4>
</div>
<p class="w-100 text-center">&mdash; Atenção &mdash;</p>
<p class="w-100 text-center">O primeiro acesso deve ser realizado utilizando seu e-mail
e CPF, nos campos de login e senha respectivamente</p>
</div>
<!-- Login -->
<div class="half p-4 py-md-5">
<div class="w-100">
<h4 class="mb-4">Acesso PAD</h4>
</div>
<div class="form-group mt-3">
<label class="label" for="name">Endereço de email</label>
<input type="email" name="email" class="form-control" placeholder="ex: nome@upe.br" :value="old('email')" required
autofocus />
</div>
<div class="form-group">
<label class="label" for="password">Senha</label>
<input id="password-field" type="password" name="password" class="form-control"
:value="__('Password')" placeholder="Senha" required />
<span toggle="#password-field"
class="fa fa-fw fa-eye field-icon toggle-password"></span>
</div>
<div class="form-group">
<button type="submit" class="form-control btn btn-secondary rounded submit px-3">Entrar</button>
</div>
<div class="form-group d-md-flex">
<div class="w-50 text-left">
<label class="checkbox-wrap checkbox-primary mb-0"
style="color: rgb(22, 21, 21);">
Lembrar-me
<input type="checkbox" checked />
<span class="checkmark"></span>
</label>
</div> </div>
<!-- Login --> <div class="w-50 text-md-right">
<div class="half p-4 py-md-5"> <a href="#" style="color: rgb(22, 21, 21);"></a>
<div class="w-100">
<h4 class="mb-4">Acesso PAD</h4>
</div>
<div class="form-group mt-3">
<label class="label" for="name">Endereço de email</label>
<input type="email" name="email" class="form-control" placeholder="ex: nome@upe.br" :value="old('email')" required
autofocus />
</div>
<div class="form-group">
<label class="label" for="password">Senha</label>
<input id="password-field" type="password" name="password" class="form-control"
:value="__('Password')" placeholder="Senha" required />
<span toggle="#password-field"
class="fa fa-fw fa-eye field-icon toggle-password"></span>
</div>
<div class="form-group">
<button type="submit"
class="form-control btn btn-secondary rounded submit px-3">Entrar</button>
</div>
<div class="form-group d-md-flex">
<div class="w-50 text-left">
<label class="checkbox-wrap checkbox-primary mb-0"
style="color: rgb(22, 21, 21);">
Lembrar-me
<input type="checkbox" checked />
<span class="checkmark"></span>
</label>
</div>
<div class="w-50 text-md-right">
<a href="#" style="color: rgb(22, 21, 21);">Reculperar senha</a>
</div>
</div>
</div> </div>
</form> </div>
</div> </div>
</div> </form>
</div> </div>
</div> </div>
</x-slot> </div>
</x-guest-layout>
</div>
@endsection
\ No newline at end of file
<!doctype html>
<html lang="pt-br">
<head>
<title>PAD - Plano de Avaliação Docente </title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
@include('components.frontend-libs')
<link rel="stylesheet" href="{{ asset('css/auth.css') }}" />
</head>
<body>
<header>
<div class="navbar shadow-sm" alt="Max-width 100%">
<div class="container d-flex justify-content-between">
<a class="navbar-brand d-flex align-items-center" href="#">
<img src="http://www.avaliacaodocente.upe.br/assets/img/logo-upe.png" class="img-fluid"
width="128" height="93" alt="" />
</a>
<a class="navbar-brand d-flex align-items-center" href="#">
<img src="https://www.gestaododesempenho.pe.gov.br/AvaliacaoDesempenho/public/resources/images/logos-direita.png"
class="img-fluid" width="268" height="100" alt="" />
</a>
</div>
</div>
</header>
<div class="stylo p-3 n-flex">
<h2>Portal de acesso ao</h2>
<h3>Plano de Atividades Docentes - PAD</h3>
</div>
<div class="container">
@section('body')
@show
</div>
<div class="stylo p-2"> </div>
<footer class="pt-3 my-3 align-items-center border-top" alt="Max-width 100%">
<div class="w-100">
<p class="copyright-upe d-flex text-center text-muted justify-content-center">
Copyright &#9400;2022. Universidade de Pernambuco - Todos os direitos reservados
</p>
</div>
</footer>
</body>
</html>
\ No newline at end of file
@props(['status']) @props(['status'])
@if ($status) @if ($status)
<div {{ $attributes->merge(['class' => 'font-medium text-sm text-green-600']) }}> <div {{ $attributes->merge(['class' => 'font-medium text-sm text-success']) }}>
{{ $status }} {{ $status }}
</div> </div>
@endif @endif
...@@ -2,11 +2,11 @@ ...@@ -2,11 +2,11 @@
@if ($errors->any()) @if ($errors->any())
<div {{ $attributes }}> <div {{ $attributes }}>
<div class="font-medium text-red-600"> <div class="font-medium text-danger">
{{ __('Ops! Algo deu errado.') }} {{ __('Ops! Algo deu errado.') }}
</div> </div>
<ul class="mt-3 list-disc list-inside text-sm text-red-600"> <ul class="mt-3 list-disc list-inside text-sm text-danger">
@foreach ($errors->all() as $error) @foreach ($errors->all() as $error)
<li>{{ $error }}</li> <li>{{ $error }}</li>
@endforeach @endforeach
......
<!-- Bootstrap CSS -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
<!-- Bootstrap JS -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.min.js" integrity="sha384-QJHtvGhmr9XOIpI6YVutG+2QOK9T+ZnN4kzFN1RtK3zEFEIsxhlmWl5/YESvpZ13" crossorigin="anonymous"></script>
<!-- Jquery -->
<script src="https://code.jquery.com/jquery-3.6.0.slim.js" integrity="sha256-HwWONEZrpuoh951cQD1ov2HUK5zA5DwJ1DNUXaM6FsY=" crossorigin="anonymous"></script>
<!-- Pooper.js -->
<script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.10.2/dist/umd/popper.min.js" integrity="sha384-7+zCNj/IqJ95wo16oMtfsKbZ9ccEh31eOz1HGyDuCQ6wgnyJNSYdrPa03rtR1zdB" crossorigin="anonymous"></script>
<!-- Font Awesome -->
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.15.4/css/all.css" integrity="sha384-DyZ88mC6Up2uqS4h/KRgHuoeGwBcD4Ng9SiP4dIRy0EXTlnuz47vAwmeGwVChigm" crossorigin="anonymous"/>
<!-- Bootstrap Icons -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.8.1/font/bootstrap-icons.css">
\ No newline at end of file
@php
use Nette\Utils\Json;
$_divs = [];
foreach($divs as $div) {
$id = $div['id'];
array_push($_divs, ['id' => $id]);
}
$_divs = Json::encode($_divs);
@endphp
<script type="text/javascript">
$('#get-divs').change(function(e) {
e.preventDefault();
const self = $(this);
const divs = {!! $_divs !!}
divs.forEach((div) => {
$('#'+div.id).hide();
})
if(self.val() !== '0') {
div = $('#'+self.val());
console.log(self.val());
div.show();
}
}).change();
$('#ensino_aulas').show();
</script>
<div class="mb-3 row">
<div class="">
<select class="form-select" name="get-divs" id="get-divs">
<option selected value="0">Selecione uma categoria</option>
@foreach ($divs as $div)
<option value="{{ $div['id'] }}"> {{ $div['name'] }}</option>
@endforeach
</select>
</div>
</div>
...@@ -8,20 +8,10 @@ ...@@ -8,20 +8,10 @@
<title>{{ config('app.name') }} - @yield('title')</title> <title>{{ config('app.name') }} - @yield('title')</title>
@include('components.frontend-libs')
<!-- Styles -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css"
integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous" />
<!-- Icons -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.8.1/font/bootstrap-icons.css">
<!-- Font Awesome -->
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.15.4/css/all.css" integrity="sha384-DyZ88mC6Up2uqS4h/KRgHuoeGwBcD4Ng9SiP4dIRy0EXTlnuz47vAwmeGwVChigm" crossorigin="anonymous"/>
<link rel="stylesheet" href="{{ asset('css/styles.css') }}"> <link rel="stylesheet" href="{{ asset('css/styles.css') }}">
<link rel="stylesheet" href="{{ asset('css/dashboard.css') }}"> <link rel="stylesheet" href="{{ asset('css/dashboard.css') }}">
<link rel="stylesheet" href="{{ asset('css/forms.css') }}">
</head> </head>
<body> <body>
...@@ -44,17 +34,7 @@ ...@@ -44,17 +34,7 @@
<footer class="pt-3 my-3 text-center text-muted align-items-center border-top"> <footer class="pt-3 my-3 text-center text-muted align-items-center border-top">
Copyright &copy;2022. Universidade de Pernambuco - Todos os direitos reservados Copyright &copy;2022. Universidade de Pernambuco - Todos os direitos reservados
</footer> </footer>
<!-- Optional JavaScript -->
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
<script src="https://code.jquery.com/jquery-3.1.1.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js"
integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous">
</script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"
integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous">
</script>
@if(Auth::user()->isTypeAdmin()) @if(Auth::user()->isTypeAdmin())
@include('layouts.user-jquery.jquery_admin') @include('layouts.user-jquery.jquery_admin')
...@@ -71,8 +51,6 @@ ...@@ -71,8 +51,6 @@
@if(Auth::user()->isTypeCoordinator()) @if(Auth::user()->isTypeCoordinator())
@include('layouts.user-jquery.jquery_coordinator') @include('layouts.user-jquery.jquery_coordinator')
@endif @endif
<script src="{{ asset('js/forms.js') }}"></script>
</body> </body>
</html> </html>
...@@ -4,13 +4,11 @@ ...@@ -4,13 +4,11 @@
<head> <head>
<title>Avaliação de Desempanho Docente - PAD</title> <title>Avaliação de Desempanho Docente - PAD</title>
<!-- Meta tags Obrigatórias -->
<meta charset="utf-8" /> <meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" /> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" />
<!-- Principal CSS do Bootstrap --> @include('components.frontend-libs')
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css"
integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous" />
<!-- Estilos customizados para esse template --> <!-- Estilos customizados para esse template -->
<link rel="stylesheet" href="{{ asset('css/auth.css') }}" /> <link rel="stylesheet" href="{{ asset('css/auth.css') }}" />
...@@ -51,17 +49,5 @@ ...@@ -51,17 +49,5 @@
</div> </div>
</footer> </footer>
<!-- Option 1: Bootstrap Bundle with Popper -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.bundle.min.js"
integrity="sha384-MrcW6ZMFYlzcLA8Nl+NtUVF0sA7MsXsP1UyJoMp4YLEuNSfAP+JcXn/tWtIaxVXM" crossorigin="anonymous">
</script>
<script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.9.2/dist/umd/popper.min.js"
integrity="sha384-IQsoLXl5PILFhosVNubq5LC7Qb9DXgDA9i+tQ8Zj3iwWAwPtgFTxbJ8NT4GN1R8p" crossorigin="anonymous">
</script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.min.js"
integrity="sha384-cVKIPhGWiC2Al4u+LWgxfKTRIcfu0JTxR+EQDz/bgldoEyl4H0zUF0QKbrJ0EcQF" crossorigin="anonymous">
</script>
</body> </body>
</html> </html>
...@@ -8,19 +8,9 @@ ...@@ -8,19 +8,9 @@
<title>{{ config('app.name') }} - @yield('title')</title> <title>{{ config('app.name') }} - @yield('title')</title>
<!-- Styles --> @include('components.frontend-libs')
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css"
integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous" />
<!-- Icons -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.8.1/font/bootstrap-icons.css">
<!-- Font Awesome -->
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.15.4/css/all.css"
integrity="sha384-DyZ88mC6Up2uqS4h/KRgHuoeGwBcD4Ng9SiP4dIRy0EXTlnuz47vAwmeGwVChigm" crossorigin="anonymous" />
<link rel="stylesheet" href="{{ asset('css/dashboard.css') }}"> <link rel="stylesheet" href="{{ asset('css/dashboard.css') }}">
<link rel="stylesheet" href="{{ asset('css/forms.css') }}">
</head> </head>
<body> <body>
...@@ -48,16 +38,6 @@ ...@@ -48,16 +38,6 @@
Copyright &copy;2022. Universidade de Pernambuco - Todos os direitos reservados Copyright &copy;2022. Universidade de Pernambuco - Todos os direitos reservados
</footer> </footer>
<!-- Optional JavaScript -->
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
<script src="https://code.jquery.com/jquery-3.1.1.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js"
integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous">
</script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"
integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous">
</script>
@if (Auth::user()->isTypeAdmin()) @if (Auth::user()->isTypeAdmin())
@include('layouts.user-jquery.jquery_admin') @include('layouts.user-jquery.jquery_admin')
@endif @endif
...@@ -74,8 +54,6 @@ ...@@ -74,8 +54,6 @@
@include('layouts.user-jquery.jquery_coordinator') @include('layouts.user-jquery.jquery_coordinator')
@endif @endif
<script src="{{ asset('js/forms.js') }}"></script>
@section('scripts-jquery') @section('scripts-jquery')
@show @show
</body> </body>
......
@extends('layouts.main') @extends('layouts.main')
@section('title', 'Unidade') @section('title', 'Ensino')
@section('header') @section('header')
@include('layouts.header', [ @include('layouts.header', [
'user' => Auth::user(), 'user' => Auth::user(),
...@@ -13,147 +13,109 @@ ...@@ -13,147 +13,109 @@
@endsection @endsection
@section('body') @section('body')
<div class="px-4 md:px-10 py-4 md:py-7 bg-gray-100 rounded-tl-lg rounded-tr-lg">
<h5 class="border-bottom">1 - ENSINO (AULAS EM COMPONENTES CURRICULARES)</h5>
</div>
<hr>
<div class="container"> <div class="container">
<div class="comp" id="compbord">
<div class="row clearfix"> @include('components.pad.dropdown-eixo', ['divs' => $divs])
<div class="col-md-12 table-responsive">
<table class="table table-borderless table-hover table-sortable" id="tab_logic"> <div id="ensino_aulas" class="">
<thead> <div>
<tr> <div class="mb-3">
<th class="text-center"> <h3 class="h3"> Ensino - Aulas </h3 class="h3">
CÓDIGO ATIVIDADE
</th>
<th class="text-center">
COMPONENTE CURRICULAR
(NOME DO COMPONENTE)
</th>
<th class="text-center">
CURSO
</th>
<th class="text-center">
NÍVEL
</th>
<th class="text-center">
MODALIDADE
</th>
<th class="text-center">
CH TOTAL
</th>
<th class="text-center">
CH SEMANAL
</th>
<th class="text-center"
style="border-top: 1px solid #ffffff; border-right: 1px solid #ffffff;">
</th>
</tr>
</thead>
<tbody>
@foreach ($ensinoAulas as $ensinoAula)
<tr>
<td class="text-center">
{{ $ensinoAula->cod_atividade }}
</td>
<td class="text-center">
{{ $ensinoAula->disciplina->name }}
</td>
<td class="text-center">
{{ $ensinoAula->curso->name }}
</td>
<td class="text-center">
{{ $ensinoAula::listNivel($ensinoAula->nivel) }}
</td>
<td class="text-center">
{{ $ensinoAula::listModalidade($ensinoAula->modalidade) }}
</td>
<td class="text-center">
{{ $ensinoAula->ch_semanal }}
</td>
<td class="text-center">
{{ $ensinoAula->ch_total }}
</td>
<td class="text-center">
@include('components.buttons.btn-delete', ['route' => route('ensino_aula_delete', ['id' => $ensinoAula->id])]);
</td>
</tr>
@endforeach
</tbody>
</table>
</div> </div>
</div> <form action="" method="post" id="ensino_aulas-form" class="">
<form method="POST" action="{{ route('ensino_aula_create') }}" class="form-add-new-dimencao">
@csrf <div class="row">
@method('POST')
<div class="form-group" style="width: 200px;"> <input type="hidden" name="pad_id" value={{1}}>
<label for="inputNameProfessor">CÓDIGO ATIVIDADE</label>
<input type="text" name="cod_atividade" class="form-control" disable id="cod_atividade" <div class="mb-3 col-sm-2">
placeholder="Automomático " disabled> <label class="form-label" for="ensino_aulas-cod_atividade">Cód. Atividade</label>
</div><br> <input class="form-control" type="text" name="ensino_aulas-cod_atividade" id="ensino_aulas-cod_atividade" disabled readonly>
<div class="form-row"> </div>
<div class="form-group col-md-6"> <div class="mb-3 col-sm-5">
<label for="selectCurso">CURSO</label> <label class="form-label" for="ensino_aulas-componente_curricular">Componente Curricular</label>
<select name="curso_id" class="custom-select mr-sm-2" id="curso_id" required <input class="form-control" type="text" name="ensino_aulas-componente_curricular" id="ensino_aulas-componente_curricular">
aria-label="Default select example"> </div>
<option selected>Selecionar Curso</option> <div class="mb-3 col-sm-5">
@foreach ($cursos as $curso) <label class="form-label" for="ensino_aulas-curso">Curso</label>
<option value="{{ $curso->id }}"> {{ $curso->name }}</option> <input class="form-control" type="text" name="ensino_aulas-curso" id="ensino_aulas-curso">
@endforeach </div>
</select> <div class="mb-3 col-sm-3">
</div> <label class="form-label" for="ensino_aulas-nivel">Nível</label>
<div class="form-group col-md-6"> <select class="form-select" name="ensino_aulas-nivel" id="ensino_aulas-nivel">
<label for="selectCurso">COMPONENTE CURRICULAR</label> <option selected value="0">Selecione um Nível</option>
<select name="componente_curricular" class="custom-select mr-sm-2" id="componente_curricular" <option value="1">Graduação</option>
aria-label="Default select example" required> <option value="2">Pós-Graduação</option>
<option></option> </select>
</select> </div>
</div>
<div class="form-group col-md-6"> <div class="mb-3 col-sm-3">
<label for="selectCurso">NÍVEL</label> <label class="form-label" for="ensino_aulas-modalidade">Modalidade</label>
<select class="custom-select mr-sm-2" name="nivel" id="nivel" aria-label="Default select example" required> <select class="form-select" name="ensino_aulas-modalidade" id="ensino_aulas-modalidade">
<option disabled selected value> Selecionar </option> <option selected value="0">Selecione uma Modalidade</option>
@foreach ($niveis as $key => $nivel) <option value="1">Presencial</option>
<option value="{{ $key }}"> {{ $nivel }}</option> <option value="2">Remoto</option>
@endforeach </select>
</div>
</select>
</div> <div class="mb-3 col-sm-2">
<div class="form-group col-md-6"> <label class="form-label" for="ensino_aulas-ch_total">CH. Total</label>
<label for="selectCurso">Modalidade</label> <input class="form-control" type="number" name="ensino_aulas-ch_total" id="ensino_aulas-ch_total">
<select class="custom-select mr-sm-2" name="modalidade" id="modalidade" required </div>
aria-label="Default select example">
<option disabled selected value> Selecionar</option> <div class="mb-3 col-sm-2">
@foreach ($modalidades as $key => $modalidade) <label class="form-label" for="ensino_aulas-ch_semanal">CH. Semanal</label>
<option value="{{ $key }}"> {{ $modalidade }}</option> <input class="form-control" type="number" name="ensino_aulas-ch_semanal" id="ensino_aulas-ch_semanal">
@endforeach </div>
</select>
</div>
<div class="form-group col-md-3">
<label for="selectCurso">CARGA HORÁRIA SEMANAL</label>
<input type="number" name="ch_semanal" id="ch_semanal" required>
</div> </div>
<div class="form-group col-md-2">
<label for="selectCurso">CARGA HORÁRIA TOTAL</label> <div class="mt-1 text-end">
<input type="number" name="ch_total" id="ch_semanal" required> <button type="submit" class="btn btn-success rounded">Cadastrar</button>
</div> </div>
<input type="hidden" value="{{ $pad_id }}" name="pad_id" id="pad_id">
</div> </form>
<button type="submit" class="btn btn-success"> Salvar</button> </div>
<div>
LISTA
</div>
</div>
<div id="ensino_coordenacao_disciplina" class="">
<h1> ensino_coordenacao_disciplina <h1>
</div>
<div id="ensino_orientacao" class="">
<h1>ensino_orientacao</h1>
</div>
<div id="ensino_supervisao" class="">
<h1>ensino_supervisao</h1>
</div>
<div id="ensino_atendimento_discente" class="">
<h1>ensino_atendimento_discente</h1>
</div>
<div id="ensino_projeto" class="">
<h1>ensino_projeto</h1>
</div>
</form> <div id="ensino_participacao" class="">
<h1>ensino_participacao</h1>
</div> </div>
<div id="ensino_coordenacao_docente" class="">
<h1>ensino_coordenacao_docente</h1>
</div>
</div> </div>
@endsection @endsection
@section('scripts-jquery') @section('scripts-jquery')
@include('layouts.pad-ensino-jquery.ensino-aula') @include('layouts.pad-ensino-jquery.ensino-aula')
@include('components.pad.dropdown-eixo-script', ['divs' => $divs])
@endsection @endsection
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