Commit a95e9172 authored by Abraão Barbosa's avatar Abraão Barbosa
Browse files

View bug fixes

parent 89a754fa
......@@ -16,7 +16,7 @@ class DiretorController extends Controller
*/
public function index()
{
$diretores = User::where('type', '=', User::TYPE_MANAGER)->get();
$diretores = User::where('type', '=', User::TYPE_DIRECTOR)->get();
return view('diretor.index', [
'index_menu' => MenuItemsAdmin::DIRETORES,
'diretores' => $diretores
......
......@@ -55,7 +55,6 @@ nav {
border-radius: 0.5em;
border: 2px solid #dee2e6 !important;
padding: .5em;
}
nav ul li a {
......
......@@ -17,7 +17,7 @@
<h2 class="">TODOS OS CAMPUS</h2>
@include('components.buttons.btn-create', [
'route' => route('campus_create'),
'css' => '',
'class' => '',
'content' => 'Novo Campus',
'id' => '',
])
......@@ -33,6 +33,7 @@
<th scope="col">Ações</th>
</tr>
</thead>
<tbody>
@foreach ($campus as $camp)
<tr>
......
......@@ -42,7 +42,7 @@
'btn_class' => 'btn btn-warning',
'route' => route('coordenador_edit', ['id' => $coordenador->id]),
])
@include('components.buttons.btn-delete', [
@include('components.buttons.btn-soft-delete', [
'route' => route('coordenador_delete', ['id' => $coordenador->id]),
'modal_id' => $coordenador->id,
])
......
......@@ -33,6 +33,7 @@
</tr>
</thead>
<tbody>
@foreach ($diretores as $diretor)
<tr>
<td>{{ $diretor->name }}</td>
......@@ -42,9 +43,8 @@
'btn_class' => 'btn btn-warning',
'route' => route('diretor_edit', ['id' => $diretor->id]),
])
@include('components.buttons.btn-delete', [
@include('components.buttons.btn-soft-delete', [
'route' => route('diretor_delete', ['id' => $diretor->id]),
'btn_class' => 'btn btn-danger',
'modal_id' => $diretor->id,
])
</td>
......
......@@ -37,6 +37,7 @@
<td>{{ $unidade->name }}</td>
<td>
@include('components.buttons.btn-edit', [
'btn_class' => 'btn btn-warning',
'route' => route('unidade_edit', ['id' => $unidade->id]),
])
@include('components.buttons.btn-soft-delete', [
......
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