Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Walter Felipe
pad-upe
Commits
61006e34
Commit
61006e34
authored
Mar 24, 2022
by
Abraão Barbosa
Browse files
alteracao na estrutura de carregamento de views
parent
a037d173
Changes
23
Show whitespace changes
Inline
Side-by-side
app/Http/Controllers/DashboardController.php
View file @
61006e34
...
...
@@ -2,6 +2,7 @@
namespace
App\Http\Controllers
;
use
App\Models\PAD
;
use
App\Queries\UnidadeQuery
;
use
Illuminate\Http\Request
;
use
Illuminate\Support\Facades\Auth
;
...
...
@@ -20,7 +21,7 @@ class DashboardController extends Controller
if
(
$user
->
isTypeTeacher
())
{
return
view
(
'dashboard'
);
return
view
(
'dashboard'
,
[
'PADs'
=>
PAD
::
all
(),
'menu_index'
=>
0
]
);
}
}
...
...
app/Http/Controllers/PADController.php
0 → 100644
View file @
61006e34
<?php
namespace
App\Http\Controllers
;
use
App\Http\Controllers\Controller
;
use
Illuminate\Http\Request
;
use
App\Models\PAD
;
use
Exception
;
use
Illuminate\Support\Facades\Auth
;
use
Illuminate\Support\Facades\Validator
;
use
Illuminate\Validation\Rule
;
class
PADController
extends
Controller
{
/**
* Show last PAD.
*
* @return \Illuminate\View\View
*/
public
function
index
()
{
$PADs
=
PAD
::
where
(
'professor_id'
,
'='
,
Auth
::
user
()
->
id
);
return
view
(
'pad.index'
,
[
"PADs"
=>
$PADs
,
'index_menu'
=>
1
]);
}
/**
* Show the form for creating a new resource.
*
* @return \Illuminate\Http\Response
*/
public
function
create
()
{
return
view
(
'pad.create'
,
[
'index_menu'
=>
1
]);
}
/**
* Store a newly created resource in storage.
*
* @param \Illuminate\Http\Request $request
* @return \Illuminate\Http\Response
*/
public
function
store
(
Request
$request
)
{
$rules
=
[
'first_name'
=>
'required|string|min:3|max:255'
,
'city_name'
=>
'required|string|min:3|max:255'
,
'email'
=>
'required|string|email|max:255'
];
$validator
=
Validator
::
make
(
$request
->
all
(),
$rules
);
if
(
$validator
->
fails
())
{
return
redirect
(
'insert'
)
->
withInput
()
->
withErrors
(
$validator
);
}
else
{
$data
=
$request
->
input
();
try
{
$student
=
new
StudInsert
;
$student
->
first_name
=
$data
[
'first_name'
];
$student
->
last_name
=
$data
[
'last_name'
];
$student
->
city_name
=
$data
[
'city_name'
];
$student
->
email
=
$data
[
'email'
];
$student
->
save
();
return
redirect
(
'insert'
)
->
with
(
'status'
,
"Insert successfully"
);
}
catch
(
Exception
$e
){
return
redirect
(
'insert'
)
->
with
(
'failed'
,
"operation failed"
);
}
}
return
redirect
(
'/dashboard'
);
}
/**
* Show the form for editing the specified resource.
*
* @param int $id
* @return \Illuminate\Http\Response
*/
public
function
edit
(
$id
)
{
$model
=
PAD
::
find
(
$id
);
return
view
(
'pad.update'
,
[
'pad'
=>
$model
]);
}
/**
* Update the specified resource in storage.
*
* @param \Illuminate\Http\Request $request
* @param int $id
* @return \Illuminate\Http\Response
*/
public
function
update
(
Request
$request
,
$id
)
{
$model
=
PAD
::
find
(
$id
);
$model
->
name
=
$request
->
name
;
$model
->
save
();
return
redirect
(
'/pad/index'
);
}
/**
* Remove the specified resource from storage.
*
* @param int $id
* @return \Illuminate\Http\Response
*/
public
function
destroy
(
$id
)
{
$model
=
PAD
::
find
(
$id
);
$model
->
delete
();
return
redirect
(
'/pad/index'
);
}
}
\ No newline at end of file
app/Models/Curso.php
View file @
61006e34
...
...
@@ -14,7 +14,7 @@ class Curso extends Model
*
* @var string
*/
protected
$table
=
'curso'
;
protected
$table
=
'curso
s
'
;
/**
* The attributes that are mass assignable.
...
...
app/Models/PAD.php
View file @
61006e34
...
...
@@ -8,4 +8,38 @@ use Illuminate\Database\Eloquent\Model;
class
PAD
extends
Model
{
use
HasFactory
;
/**
* References table PADs
*
* @var string
*/
protected
$table
=
'PADs'
;
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected
$fillable
=
[
'ano'
,
'semestre'
,
'carga_horaria'
,
'categoria'
,
'afastamento_total'
,
'afastamento_parcial'
,
'exerce_funcao_admin'
,
'exerce_funcao_sindical'
,
'licenca_de_acor_legais'
,
'outras_observacoes'
,
'professor_id'
,
'curso_id'
];
/**
* Get User with user.id = user.campus_id
*
* @return User
*/
public
function
professor
()
{
return
$this
->
belongsTo
(
User
::
class
);
}
/**
* Get Curso with curso.id = curso.curso_id
*
* @return Curso
*/
public
function
curso
()
{
return
$this
->
belongsTo
(
Curso
::
class
);
}
}
app/Queries/PADQuery.php
0 → 100644
View file @
61006e34
<?php
namespace
App\Queries
;
use
App\Models\PAD
;
class
PADQuery
extends
PAD
{
/**
* @param integer $id
* @param string $expression
* @return PAD|null
*/
public
static
function
whereUnidadeId
(
int
$id
,
string
$expression
=
'='
)
{
return
PAD
::
where
(
'unidade_id'
,
$expression
,
$id
);
}
}
\ No newline at end of file
database/migrations/2022_02_02_014310_create_curso_table.php
View file @
61006e34
...
...
@@ -13,7 +13,7 @@ class CreateCursoTable extends Migration
*/
public
function
up
()
{
Schema
::
create
(
'curso'
,
function
(
Blueprint
$table
)
{
Schema
::
create
(
'curso
s
'
,
function
(
Blueprint
$table
)
{
$table
->
id
();
$table
->
string
(
'name'
);
$table
->
foreignId
(
'campus_id'
);
...
...
database/migrations/2022_03_20_233337_create_p_a_d_s_table.php
View file @
61006e34
...
...
@@ -13,7 +13,7 @@ class CreatePADSTable extends Migration
*/
public
function
up
()
{
Schema
::
create
(
'
p_a_d_
s'
,
function
(
Blueprint
$table
)
{
Schema
::
create
(
'
PAD
s'
,
function
(
Blueprint
$table
)
{
$table
->
id
();
$table
->
timestamps
();
$table
->
integer
(
'ano'
);
...
...
@@ -26,6 +26,12 @@ class CreatePADSTable extends Migration
$table
->
boolean
(
'exerce_funcao_sindical'
)
->
default
(
false
);
$table
->
string
(
'licenca_de_acor_legais'
,
50
)
->
default
(
null
);
$table
->
string
(
'outras_observacoes'
,
200
)
->
nullable
(
true
);
$table
->
unsignedBigInteger
(
'professor_id'
);
$table
->
foreign
(
'professor_id'
)
->
references
(
'id'
)
->
on
(
'users'
);
$table
->
unsignedBigInteger
(
'curso_id'
);
$table
->
foreign
(
'curso_id'
)
->
references
(
'id'
)
->
on
(
'cursos'
);
});
}
...
...
@@ -36,6 +42,6 @@ class CreatePADSTable extends Migration
*/
public
function
down
()
{
Schema
::
dropIfExists
(
'
p_a_d_
s'
);
Schema
::
dropIfExists
(
'
PAD
s'
);
}
}
database/migrations/2022_03_20_233345_create_ref_planejamento_ches_table.php
View file @
61006e34
...
...
@@ -19,7 +19,7 @@ class CreateRefPlanejamentoChesTable extends Migration
$table
->
string
(
"descricao_atividade"
,
50
);
$table
->
float
(
"ch_semanal"
,
5
,
2
);
$table
->
float
(
"ch_maxima"
,
5
,
2
);
$table
->
foreignId
(
'
p_a_d_s
_id'
)
$table
->
foreignId
(
'
PAD
_id'
)
->
constrained
()
->
onUpdate
(
'cascade'
)
->
onDelete
(
'cascade'
);
...
...
database/seeders/CursoSeeder.php
View file @
61006e34
...
...
@@ -5,7 +5,7 @@ namespace Database\Seeders;
use
App\Models\Campus
;
use
App\Models\Curso
;
use
Illuminate\Database\Seeder
;
use
Illuminate\Support\Facades\DB
;
class
CursoSeeder
extends
Seeder
{
...
...
@@ -29,6 +29,5 @@ class CursoSeeder extends Seeder
]);
}
}
}
}
public/css/forms.css
0 → 100644
View file @
61006e34
/* content que contem o corpo da pagina */
.content
{
position
:
relative
;
top
:
0px
;
width
:
100%
;
}
.titulo
{
font-size
:
32px
;
color
:
#000000
;
font-family
:
Arial
,
sans-serif
;
font-weight
:
bold
;
text-align
:
center
;
}
#bordcab
{
margin
:
0
0
0
0
;
background
:
#e6e7e8
;
width
:
100%
;
height
:
100%
;
border-radius
:
0px
0px
20px
20px
;
}
hr
{
margin-top
:
0px
;
background-color
:
rgb
(
105
,
105
,
105
);
border-top
:
1px
solid
;
}
#bord
{
border-width
:
1px
;
border-style
:
solid
;
border-color
:
rgb
(
105
,
105
,
105
);
background-color
:
#e6e7e8
;
width
:
100%
;
height
:
100%
;
border-radius
:
20px
;
padding
:
1em
;
margin
:
20px
;
}
#compbord
{
padding
:
20px
;
margin
:
0px
;
}
#addrow
{
padding
:
20px
;
margin
:
0px
;
}
public/js/forms.js
0 → 100644
View file @
61006e34
$
(
document
).
ready
(
function
()
{
$
(
"
#add_row
"
).
on
(
"
click
"
,
function
()
{
// Dynamic Rows Code
// Get max row id and set new id
var
newid
=
0
;
$
.
each
(
$
(
"
#tab_logic tr
"
),
function
()
{
if
(
parseInt
(
$
(
this
).
data
(
"
id
"
))
>
newid
)
{
newid
=
parseInt
(
$
(
this
).
data
(
"
id
"
));
}
});
newid
++
;
var
tr
=
$
(
"
<tr></tr>
"
,
{
id
:
"
addr
"
+
newid
,
"
data-id
"
:
newid
});
// loop through each td and create new elements with name of newid
$
.
each
(
$
(
"
#tab_logic tbody tr:nth(0) td
"
),
function
()
{
var
td
;
var
cur_td
=
$
(
this
);
var
children
=
cur_td
.
children
();
// add new td and element if it has a nane
if
(
$
(
this
).
data
(
"
name
"
)
!==
undefined
)
{
td
=
$
(
"
<td></td>
"
,
{
"
data-name
"
:
$
(
cur_td
).
data
(
"
name
"
)
});
var
c
=
$
(
cur_td
).
find
(
$
(
children
[
0
]).
prop
(
'
tagName
'
)).
clone
().
val
(
""
);
c
.
attr
(
"
name
"
,
$
(
cur_td
).
data
(
"
name
"
)
+
newid
);
c
.
appendTo
(
$
(
td
));
td
.
appendTo
(
$
(
tr
));
}
else
{
td
=
$
(
"
<td></td>
"
,
{
'
text
'
:
$
(
'
#tab_logic tr
'
).
length
}).
appendTo
(
$
(
tr
));
}
});
// add delete button and td
/*
$("<td></td>").append(
$("<button class='btn btn-danger glyphicon glyphicon-remove row-remove'></button>")
.click(function() {
$(this).closest("tr").remove();
})
).appendTo($(tr));
*/
// add the new row
$
(
tr
).
appendTo
(
$
(
'
#tab_logic
'
));
$
(
tr
).
find
(
"
td button.row-remove
"
).
on
(
"
click
"
,
function
()
{
$
(
this
).
closest
(
"
tr
"
).
remove
();
});
});
// Sortable Code
var
fixHelperModified
=
function
(
e
,
tr
)
{
var
$originals
=
tr
.
children
();
var
$helper
=
tr
.
clone
();
$helper
.
children
().
each
(
function
(
index
)
{
$
(
this
).
width
(
$originals
.
eq
(
index
).
width
())
});
return
$helper
;
};
$
(
"
.table-sortable tbody
"
).
sortable
({
helper
:
fixHelperModified
}).
disableSelection
();
$
(
"
.table-sortable thead
"
).
disableSelection
();
$
(
"
#add_row
"
).
trigger
(
"
click
"
);
});
\ No newline at end of file
resources/views/layouts/app.blade.php
View file @
61006e34
...
...
@@ -20,6 +20,7 @@
<link
rel=
"stylesheet"
href=
"{{ asset('css/styles.css') }}"
>
<link
rel=
"stylesheet"
href=
"{{ asset('css/dashboard.css') }}"
>
<link
rel=
"stylesheet"
href=
"{{ asset('css/forms.css') }}"
>
</head>
<body>
...
...
@@ -69,6 +70,8 @@
@if(Auth::user()->isTypeCoordinator())
@include('layouts.user-jquery.jquery_coordinator')
@endif
<script
src=
"{{ asset('js/forms.js') }}"
></script>
</body>
</html>
resources/views/layouts/main.blade.php
View file @
61006e34
<!DOCTYPE html>
<html
lang=
"pt-br"
>
<head>
<meta
charset=
"UTF-8"
>
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0"
>
<meta
charset=
"utf-8"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1"
>
<meta
name=
"csrf-token"
content=
"{{ csrf_token() }}"
>
<title>
{{ config('app.name', 'Laravel') }}
</title>
<!-- Bootstrap CSS -->
<link
rel=
"stylesheet"
href=
"https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"
integrity=
"sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T"
crossorigin=
"anonymous"
>
<!-- 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=
"https://use.fontawesome.com/releases/v5.15.4/css/all.css"
integrity=
"sha384-DyZ88mC6Up2uqS4h/KRgHuoeGwBcD4Ng9SiP4dIRy0EXTlnuz47vAwmeGwVChigm"
crossorigin=
"anonymous"
/>
<title>
@yield('title')
</title>
<link
rel=
"stylesheet"
href=
"{{ asset('css/styles.css') }}"
>
<link
rel=
"stylesheet"
href=
"{{ asset('css/dashboard.css') }}"
>
<link
rel=
"stylesheet"
href=
"{{ asset('css/forms.css') }}"
>
</head>
<body>
@section('body')
<body>
<div
class=
"min-h-screen bg-gray-100"
>
<!-- Page Header -->
@section('header')
@show
@section('script')
<div
class=
"container-fluid"
>
<div
class=
"main-container"
>
<!-- Page Header -->
@section('nav')
@show
<main
class=
""
>
@section('body')
@show
</main>
</div>
</div>
</div>
<footer
class=
"pt-3 my-3 text-center text-muted align-items-center border-top"
>
Copyright
©
2022. Universidade de Pernambuco - Todos os direitos reservados
</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())
@include('layouts.user-jquery.jquery_admin')
@endif
@if (Auth::user()->isTypeTeacher())
@include('layouts.user-jquery.jquery_teacher')
@endif
@if (Auth::user()->isTypeMenager())
@include('layouts.user-jquery.jquery_menager')
@endif
@if (Auth::user()->isTypeCoordinator())
@include('layouts.user-jquery.jquery_coordinator')
@endif
<!-- jQuery, Popper.js and Bootstrap JS -->
<script
src=
"https://code.jquery.com/jquery-3.3.1.slim.min.js"
integrity=
"sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo"
crossorigin=
"anonymous"
></script>
<script
src=
"https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"
integrity=
"sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1"
crossorigin=
"anonymous"
></script>
<script
src=
"https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"
integrity=
"sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM"
crossorigin=
"anonymous"
></script>
<script
src=
"{{ asset('js/forms.js') }}"
></script>
</body>
</html>
resources/views/layouts/navigation.blade.php
View file @
61006e34
...
...
@@ -24,7 +24,9 @@
<!-- SidebarMenu : Professor -->
@if (Auth::user()->isTypeTeacher())
@include('layouts.user-navigation.navigation_teacher')
@include('layouts.user-navigation.navigation_teacher', [
'index_menu' => (!empty($index_menu) ? $index_menu : 0),
])
@endif
<!-- SidebarMenu : Diretor -->
...
...
resources/views/layouts/pad/create.blade.php
deleted
100644 → 0
View file @
a037d173
@
extends
(
'dashboard'
)
@
section
(
'form-unidade-create'
)
<
div
class
=
"mt-4"
>
<
form
action
=
"{{ route('unidade_store') }}"
method
=
"post"
>
@
method
(
'POST'
)
@
csrf
<
div
class
=
"form-group"
>
<
label
for
=
"name"
>
Nome
</
label
>
<
input
type
=
"text"
name
=
"name"
id
=
"name"
>
</
div
>
<
button
type
=
"submit"
class
=
"btn btn-primary"
>
Create
</
button
>
</
form
>
</
div
>
@
endsection
resources/views/layouts/pad/index.blade.php
deleted
100644 → 0
View file @
a037d173
@
extends
(
'layouts.main'
)
@
section
(
'title'
,
'Unidade'
)
@
section
(
'body'
)
<
div
>
@
include
(
'components.devcomponents.btn-create'
,
[
'route'
=>
route
(
'unidade_create'
)])
</
div
>
<
table
class
=
"table"
>
<
thead
>
<
tr
>
<
th
scope
=
"col"
>
#</th>
<
th
scope
=
"col"
>
Name
</
th
>
<
th
scope
=
"col"
>
Opções
</
th
>
</
tr
>
</
thead
>
<
tbody
>
@
foreach
(
$unidades
as
$unidade
)
<
tr
>
<
th
scope
=
"row"
>
{{
$unidade
->
id
}}
</
th
>
<
td
>
{{
$unidade
->
name
}}
</
td
>
<
td
>
@
include
(
'components.devcomponents.btn-edit'
,
[
'route'
=>
route
(
'unidade_edit'
,
[
'id'
=>
$unidade
->
id
])])
@
include
(
'components.devcomponents.btn-delete'
,
[
'route'
=>
route
(
'unidade_delete'
,
[
'id'
=>
$unidade
->
id
])])
</
td
>
</
tr
>
@
endforeach
</
tbody
>
</
table
>
@
endsection
resources/views/layouts/user-navigation/navigation_teacher.blade.php
View file @
61006e34
<!-- Botoes link lista vertical sidebarMenu -->
<ul
class=
"nav flex-column nav-pills"
id=
"myTab"
role=
"tablist"
aria-orientation=
"vertical"
>
<li
class=
"nav-item"
>
<a
class=
"nav-link active"
id=
"home-tab"
data-toggle=
"tab"
href=
"#home"
role=
"tab"
aria-controls=
"home"
aria-selected=
"true"
>
<svg
xmlns=
"http://www.w3.org/2000/svg"
width=
"16"
height=
"16"
fill=
"currentColor"
class=
"bi bi-house-fill"
viewBox=
"0 0 16 16"
>
<path
fill-rule=
"evenodd"
d=
"m8 3.293 6 6V13.5a1.5 1.5 0 0 1-1.5 1.5h-9A1.5 1.5 0 0 1 2 13.5V9.293l6-6zm5-.793V6l-2-2V2.5a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5z"
/>
<path
fill-rule=
"evenodd"
d=
"M7.293 1.5a1 1 0 0 1 1.414 0l6.647 6.646a.5.5 0 0 1-.708.708L8 2.207 1.354 8.854a.5.5 0 1 1-.708-.708L7.293 1.5z"
/>
<a
class=
"nav-link {{ ((!empty($index_menu) ? $index_menu : 0) == 0? "
active
"
:
"")
}}"
href=
"{{ route('dashboard') }}"
aria-selected=
"true"
>
<svg
xmlns=
"http://www.w3.org/2000/svg"
width=
"16"
height=
"16"
fill=
"currentColor"
class=
"bi bi-house-fill"
viewBox=
"0 0 16 16"
>
<path
fill-rule=
"evenodd"
d=
"m8 3.293 6 6V13.5a1.5 1.5 0 0 1-1.5 1.5h-9A1.5 1.5 0 0 1 2 13.5V9.293l6-6zm5-.793V6l-2-2V2.5a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5z"
/>
<path
fill-rule=
"evenodd"
d=
"M7.293 1.5a1 1 0 0 1 1.414 0l6.647 6.646a.5.5 0 0 1-.708.708L8 2.207 1.354 8.854a.5.5 0 1 1-.708-.708L7.293 1.5z"
/>
</svg>
Home
</a>
</li>
<li
class=
"nav-item"
>
<a
class=
"nav-link"
id=
"pad-tab"
data-toggle=
"tab"
href=
"#pad"
role=
"tab"
aria-controls=
"pad"
aria-selected=
"false"
>
<svg
xmlns=
"http://www.w3.org/2000/svg"
width=
"16"
height=
"16"
fill=
"currentColor"
class=
"bi bi-book-half"
viewBox=
"0 0 16 16"
>
<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"
/>
<a
class=
"nav-link {{ ((!empty($index_menu) ? $index_menu : 0) == 1? "
active
"
:
"")
}}"
id=
"pad-tab"
href=
"{{ route('pad_index') }}"
aria-controls=
"pad"
aria-selected=
"false"
>
<svg
xmlns=
"http://www.w3.org/2000/svg"
width=
"16"
height=
"16"
fill=
"currentColor"
class=
"bi bi-book-half"
viewBox=
"0 0 16 16"
>
<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"
/>
</svg>
PAD
</a>
</li>
<li
class=
"nav-item"
>
<a
class=
"nav-link"
id=
"update-perfil-tab"
data-toggle=
"tab"
href=
"#update-perfil"
role=
"tab"
aria-controls=
"update-perfil"
aria-selected=
"true"
>
<a
class=
"nav-link"
id=
"update-perfil-tab"
data-toggle=
"tab"
href=
"#update-perfil"
role=
"tab"
aria-controls=
"update-perfil"
aria-selected=
"true"
>
<!-- Update Perfil - Hidden -->
</a>
</li>
...
...
resources/views/pad/components/list.blade.php
0 → 100644
View file @
61006e34
<table
class=
"table"
>
<thead>
<tr>
<th
scope=
"col"
>
#
</th>
<th
scope=
"col"
>
Semestre
</th>
<th
scope=
"col"
>
Opções
</th>
</tr>
</thead>
<tbody>
@foreach ($PADs as $pad)
<tr>
<th
scope=
"row"
>
{{ $pad->id }}
</th>
<td>
{{ $pad->semestre }}
</td>
<td>
@include('components.devcomponents.btn-edit', [
'route' => route('pad_edit', ['id' => $pad->id]),
])
@include('components.devcomponents.btn-delete', [
'route' => route('pad_delete', ['id' => $pad->id]),
])
</td>
</tr>
@endforeach
</tbody>
</table>
resources/views/pad/create.blade.php
0 → 100644
View file @
61006e34
@
extends
(
'layouts.main'
)
@
section
(
'title'
,
'Unidade'
)
@
section
(
'header'
)
@
include
(
'layouts.header'
,
[
'user'
=>
Auth
::
user
(),
])
@
endsection
@
section
(
'nav'
)
@
include
(
'layouts.navigation'
,
[
'index_menu'
=>
$index_menu
,
])
@
endsection
@
section
(
'body'
)
<
form
class
=
"row g-3"
>
<
div
class
=
"col-md-6"
>
<
label
for
=
"inputEmail4"
class
=
"form-label"
>
Email
</
label
>
<
input
type
=
"email"
class
=
"form-control"
id
=
"inputEmail4"
>
</
div
>
<
div
class
=
"col-md-6"
>
<
label
for
=
"inputPassword4"
class
=
"form-label"
>
Password
</
label
>
<
input
type
=
"password"
class
=
"form-control"
id
=
"inputPassword4"
>
</
div
>
<
div
class
=
"col-12"
>
<
label
for
=
"inputAddress"
class
=
"form-label"
>
Address
</
label
>
<
input
type
=
"text"
class
=
"form-control"
id
=
"inputAddress"
placeholder
=
"1234 Main St"
>
</
div
>
<
div
class
=
"col-12"
>
<
label
for
=
"inputAddress2"
class
=
"form-label"
>
Address
2
</
label
>
<
input
type
=
"text"
class
=
"form-control"
id
=
"inputAddress2"
placeholder
=
"Apartment, studio, or floor"
>
</
div
>
<
div
class
=
"col-md-6"
>
<
label
for
=
"inputCity"
class
=
"form-label"
>
City
</
label
>
<
input
type
=
"text"
class
=
"form-control"
id
=
"inputCity"
>
</
div
>
<
div
class
=
"col-md-4"
>
<
label
for
=
"inputState"
class
=
"form-label"
>
State
</
label
>
<
select
id
=
"inputState"
class
=
"form-select"
>
<
option
selected
>
Choose
...
</
option
>
<
option
>...</
option
>
</
select
>
</
div
>
<
div
class
=
"col-md-2"
>
<
label
for
=
"inputZip"
class
=
"form-label"
>
Zip
</
label
>
<
input
type
=
"text"
class
=
"form-control"
id
=
"inputZip"
>
</
div
>
<
div
class
=
"col-12"
>
<
div
class
=
"form-check"
>
<
input
class
=
"form-check-input"
type
=
"checkbox"
id
=
"gridCheck"
>
<
label
class
=
"form-check-label"
for
=
"gridCheck"
>
Check
me
out
</
label
>
</
div
>
</
div
>
<
div
class
=
"col-12"
>
<
button
type
=
"submit"
class
=
"btn btn-primary"
>
Sign
in
</
button
>
</
div
>
</
form
>
@
endsection
resources/views/pad/index.blade.php
0 → 100644
View file @
61006e34
@
extends
(
'layouts.main'
)
@
section
(
'title'
,
'Unidade'
)
@
section
(
'header'
)
@
include
(
'layouts.header'
,
[
'user'
=>
Auth
::
user
(),
])
@
endsection
@
section
(
'nav'
)
@
include
(
'layouts.navigation'
,
[
'index_menu'
=>
$index_menu
,
])
@
endsection
@
section
(
'body'
)
<
div
class
=
"content mx-auto"
>
<
div
class
=
"header"
id
=
"bordcab"
>
<
h1
class
=
"titulo pt-4 pb-4 mb-3 border-bottom"
>
PLANO
DE
ATIVIDADES
DOCENTES
(
PAD
)
</
h1
>
<
p
class
=
"pb-4 mb-3 text-center text-muted align-items-center"
>
ANEXO
B
</
p
>
<
p
class
=
"pb-4 mb-3 text-center text-muted align-items-center"
>
Insira
os
dados
correspondentes
nos
campos
exibidos
abaixo
</
p
>
</
div
>
<!--
Formulario
-->
<
form
>
<
div
class
=
"form-row"
id
=
"bord"
>
<
div
class
=
"form-group col-md-6"
>
<
label
for
=
"selectCampus"
>
UNIDADE
DE
EDUCAÇÃO
/
CAMPUS
:</
label
>
<
select
class
=
"custom-select mr-sm-2"
id
=
"inlineFormCustomSelect"
aria
-
label
=
"Default select example"
>
<
option
selected
>
Selecionar
o
Campus
</
option
>
<
option
value
=
"1"
>
ARCOVERDE
</
option
>
<
option
value
=
"2"
>
CARUARU
</
option
>
<
option
value
=
"3"
>
GARANHUNS
</
option
>
<
option
value
=
"4"
>
NAZARE
DA
MATA
</
option
>
<
option
value
=
"5"
>
PALMARES
</
option
>
<
option
value
=
"6"
>
PETROLINA
</
option
>
<
option
value
=
"7"
>
RECIFE
</
option
>
<
option
value
=
"8"
>
SALGUEIRO
</
option
>
<
option
value
=
"9"
>
SERRA
TALHADA
</
option
>
</
select
>
</
div
>
<
div
class
=
"form-group col-md-6"
>
<
label
for
=
"selectCurso"
>
CURSO
:</
label
>
<
select
class
=
"custom-select mr-sm-2"
id
=
"inlineFormCustomSelect"
aria
-
label
=
"Default select example"
>
<
option
selected
>
Selecionar
Curso
</
option
>
<
option
value
=
"1"
>
Um
</
option
>
<
option
value
=
"2"
>
Dois
</
option
>
<
option
value
=
"3"
>
Três
</
option
>
</
select
>
</
div
>
</
div
>
<
div
class
=
"row"
id
=
"bord"
>
<
div
class
=
"col-sm"
>
<
label
for
=
"selectCurso"
>
PLANO
DE
ATIVIDADE
DOCENTE
-
ANO
:</
label
>
<
select
class
=
"custom-select mr-sm-2"
id
=
"inlineFormCustomSelect"
aria
-
label
=
"Default select example"
>
<
option
selected
>
2022
</
option
>
</
select
>
</
div
>
<
div
class
=
"col-sm"
>
<
div
class
=
"form-check"
>
<
input
class
=
"form-check-input"
type
=
"radio"
name
=
"exampleRadios"
id
=
"exampleRadios1"
value
=
"opcao1"
checked
>
<
label
class
=
"form-check-label"
for
=
"exampleRadios1"
>
1
º
SEMESTRE
-
janeiro
a
julho
</
label
>
</
div
>
</
div
>
<
div
class
=
"col-sm"
>
<
div
class
=
"form-check"
>
<
input
class
=
"form-check-input"
type
=
"radio"
name
=
"exampleRadios"
id
=
"exampleRadios2"
value
=
"opcao2"
>
<
label
class
=
"form-check-label"
for
=
"exampleRadios2"
>
2
º
SEMESTRE
-
agosto
a
dezembro
</
label
>
</
div
>
</
div
>
</
div
>
<
div
class
=
"row"
id
=
"bord"
>
<
div
class
=
"col-8"
>
<
label
for
=
"inputNameProfessor"
>
DOCENTE
:</
label
>
<
input
type
=
"text"
class
=
"form-control"
id
=
"inputNameProfessor"
placeholder
=
"Nome"
>
</
div
>
<
div
class
=
"col-4"
>
<
label
for
=
"inputCPF"
>
CPF
</
label
>
<
input
type
=
"text"
class
=
"form-control"
id
=
"inputCPF"
placeholder
=
"000.000.000-00"
>
</
div
>
<
div
class
=
"col-5"
>
<
label
for
=
"inputMatricula"
>
MATRÍCULA
:</
label
>
<
input
type
=
"text"
class
=
"form-control"
id
=
"inputMatricula"
placeholder
=
"Nº Matricula"
>
</
div
>
<
div
class
=
"col"
>
<
label
for
=
"inputMatricula"
>
CARGA
HORÁRIA
:</
label
>
<
input
type
=
"text"
class
=
"form-control"
id
=
"inputMatricula"
placeholder
=
"Valor Carga Horária"
>
</
div
>
<
div
class
=
"col-5"
>
<
label
for
=
"inputMatricula"
>
CATEGORIA
/
NÍVEL
:</
label
>
<
input
type
=
"text"
class
=
"form-control"
id
=
"inputMatricula"
placeholder
=
"Vazio"
>
</
div
>
</
div
>
<
div
class
=
"row"
id
=
"bord"
>
<
div
class
=
"col-8"
>
<
p
class
=
"pt-4 border-top"
>
AFASTAMENTO
TOTAL
?
</
p
>
<
div
class
=
"form-check form-check-inline"
>
<
input
class
=
"form-check-input"
type
=
"radio"
name
=
"inlineRadioOptions"
id
=
"inlineRadio1"
value
=
"opcao1"
>
<
label
class
=
"form-check-label"
for
=
"inlineRadio1"
>
SIM
</
label
>
</
div
>
<
div
class
=
"form-check form-check-inline"
>
<
input
class
=
"form-check-input"
type
=
"radio"
name
=
"inlineRadioOptions"
id
=
"inlineRadio2"
value
=
"opcao2"
>
<
label
class
=
"form-check-label"
for
=
"inlineRadio2"
>
NÃO
</
label
>
</
div
>
</
div
>
<
div
class
=
"col-6"
>
PORTARIA
DE
AFASTAMENTO
:
<
div
class
=
"custom-file"
>
<
input
type
=
"file"
class
=
"custom-file-input"
id
=
"customFile"
>
<
label
class
=
"custom-file-label"
for
=
"customFile"
>
Anexar
arquivo
</
label
>
</
div
>
</
div
>
<
div
class
=
"col-8"
>
<
p
class
=
"pt-4 border-top"
>
AFASTAMENTO
PARCIAL
?
</
p
>
<
div
class
=
"form-check form-check-inline"
>
<
input
class
=
"form-check-input"
type
=
"radio"
name
=
"inlineRadioOptions"
id
=
"inlineRadio1"
value
=
"opcao1"
>
<
label
class
=
"form-check-label"
for
=
"inlineRadio1"
>
SIM
</
label
>
</
div
>
<
div
class
=
"form-check form-check-inline"
>
<
input
class
=
"form-check-input"
type
=
"radio"
name
=
"inlineRadioOptions"
id
=
"inlineRadio2"
value
=
"opcao2"
>
<
label
class
=
"form-check-label"
for
=
"inlineRadio2"
>
NÃO
</
label
>
</
div
>
</
div
>
<
div
class
=
"col-6"
>
PORTARIA
DE
AFASTAMENTO
:
<
div
class
=
"custom-file"
>
<
input
type
=
"file"
class
=
"custom-file-input"
id
=
"customFile"
>
<
label
class
=
"custom-file-label"
for
=
"customFile"
>
Anexar
arquivo
</
label
>
</
div
>
</
div
>
</
div
>
</
div
>
<
div
class
=
"row justify-content-between text-center align-items-center pt-5"
>
<
div
class
=
"col-4"
>
<
button
type
=
"button"
class
=
"btn btn-success"
>
Salvar
<
svg
xmlns
=
"http://www.w3.org/2000/svg"
width
=
"16"
height
=
"16"
fill
=
"currentColor"
class
=
"bi bi-sd-card-fill"
viewBox
=
"0 0 16 16"
>
<
path
d
=
"M12.5 0H5.914a1.5 1.5 0 0 0-1.06.44L2.439 2.853A1.5 1.5 0 0 0 2 3.914V14.5A1.5 1.5 0 0 0 3.5 16h9a1.5 1.5 0 0 0 1.5-1.5v-13A1.5 1.5 0 0 0 12.5 0Zm-7 2.75a.75.75 0 0 1 .75.75v2a.75.75 0 0 1-1.5 0v-2a.75.75 0 0 1 .75-.75Zm2 0a.75.75 0 0 1 .75.75v2a.75.75 0 0 1-1.5 0v-2a.75.75 0 0 1 .75-.75Zm2.75.75v2a.75.75 0 0 1-1.5 0v-2a.75.75 0 0 1 1.5 0Zm1.25-.75a.75.75 0 0 1 .75.75v2a.75.75 0 0 1-1.5 0v-2a.75.75 0 0 1 .75-.75Z"
/>
</
svg
>
</
button
>
</
div
>
<
div
class
=
"col-4"
>
<
button
type
=
"button"
class
=
"btn btn-secondary"
>
Cancelar
<
svg
xmlns
=
"http://www.w3.org/2000/svg"
width
=
"16"
height
=
"16"
fill
=
"currentColor"
class
=
"bi bi-x-square"
viewBox
=
"0 0 16 16"
>
<
path
d
=
"M14 1a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1h12zM2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2H2z"
/>
<
path
d
=
"M4.646 4.646a.5.5 0 0 1 .708 0L8 7.293l2.646-2.647a.5.5 0 0 1 .708.708L8.707 8l2.647 2.646a.5.5 0 0 1-.708.708L8 8.707l-2.646 2.647a.5.5 0 0 1-.708-.708L7.293 8 4.646 5.354a.5.5 0 0 1 0-.708z"
/>
</
svg
>
</
button
>
</
div
>
</
div
>
</
form
>
</
div
>
@
endsection
Prev
1
2
Next
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment