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