Skip to content

Commit

Permalink
done with dash and listing
Browse files Browse the repository at this point in the history
  • Loading branch information
fabcarvalhal committed Oct 7, 2018
1 parent 3e15265 commit 773afb6
Show file tree
Hide file tree
Showing 11 changed files with 154 additions and 159 deletions.
29 changes: 14 additions & 15 deletions app/adm/dash.html
Original file line number Diff line number Diff line change
@@ -1,40 +1,39 @@

<div class="album py-5 bg-light container">
<div class="">
<div class="container">
<!--CARD 1-->
<div class="row-fluid">
<h1 class="title text-center">DASHBOARD</h1>
</div>
<div class="row">
<div class="col-lg-4 col-xl-4 col-md-4 col-sm-12">

<a href="listarEventos.html">
<img class="img-fluid " alt="imagem_curso" data style="height: 225px; width: 100%; display: block;" src="https://mdbootstrap.com/img/Photos/Horizontal/Nature/4-col/img%20%282%29.jpg">
</a>

<div class="row">
<div class="col-lg-4 col-xl-4 col-md-4 col-sm-12 d-flex justify-content-center">
<a href="./#!/adm/cursos" >
<img class="img-menu-dash" src="assets/hat.png">
</a>

</div>

<!--CARD 2-->

<div class="col-lg-4 col-xl-4 col-md-4 col-sm-12">
<div class="col-lg-4 col-xl-4 col-md-4 col-sm-12 d-flex justify-content-center">

<a href="listarCursos.html">
<img class=" img-fluid" alt="imagem_evento" data style="height: 225px; width: 100%; display: block;" src="https://mdbootstrap.com/img/Photos/Horizontal/Nature/4-col/img%20%282%29.jpg">
<a href="./#!/adm/eventos" >
<img class="img-menu-dash" src="assets/event.png">
</a>


</div>


<!--CARD 3-->

<div class="col-lg-4 col-xl-4 col-md-4 col-sm-12">
<div class="col-lg-4 col-xl-4 col-md-4 col-sm-12 d-flex justify-content-center">

<a href="listarInstitut.html">
<img class="card-img-top img-fluid" alt="imagem_instituição" data style="height: 225px; width: 100%; display: block;" src="https://mdbootstrap.com/img/Photos/Horizontal/Nature/4-col/img%20%282%29.jpg">
<a href="./#!/adm/instituicoes">
<img class="img-menu-dash" src="assets/instituition.png">
</a>


</div>

</div>
Expand Down
68 changes: 25 additions & 43 deletions app/adm/listarCursos.html
Original file line number Diff line number Diff line change
@@ -1,55 +1,37 @@
<div class="row" ng-controller="listarEvento">
<div class="row" ng-controller="admCursos">
<div class="container">
<div class="row text-center">
<h2 class="col-lg-12 col-xl-12 col-offset">Cursos</h2>
<h2 class="col-lg-12 col-xl-12 ">Cursos</h2>
</div>
<form action="" class="search-form">
<div class="form-group has-feedback">
<label for="search" class="sr-only">Search</label>
<input type="text" class="form-control" name="search" id="search" placeholder="Pesquisar">
<input type="text" disabled class="form-control" name="search" id="search" placeholder="Pesquisar [Desabilitado Temporariamente]">
<span class="glyphicon glyphicon-search form-control-feedback"></span>
</div>
</form>


<div class="row">


<table class="table table-responsive table-striped table-bordered table-hover col-12">
<thead class="row">
<tr>
<th class="text-center">Nome</th>
<th class="text-center">Data</th>
<th class="text-center">Hora</th>
<th class="text-center">Instituicao</th>
<th class="text-center text-success success"><a class="btn" href="cadastrarCurso.html">+</a></th>
</tr>
</thead>
<tbody class="text-center">
<tr >
<td>RoadSec</td>
<td>10/10/1010</td>
<td>19:00</td>
<td>Ruy barbosa</td>
<td> <a href="#"class="btn text-danger">X</a>
</td>

</tr>
<tr>
<td>RoadSec</td>
<td>10/10/1010</td>
<td>19:00</td>
<td>Ruy barbosa</td>
<td> <a href="#"class="text-danger">X</a>
</tr>
<tr>
<td>RoadSec</td>
<td>10/10/1010</td>
<td>19:00</td>
<td>Ruy barbosa</td>
<td> <a href=""class="text-danger">X</a>
</tr>
</tbody>
<div class="row">
<div class="col-lg-4"><a href="./#!/adm/curso/cadastrar" class="btn btn-success fa fa-plus"> Novo</a></div>
</div>
<br>
<div class="table-responsive">
<table class="table table-hover table-bordered table-striped">
<thead>
<tr>
<th class="text-center">Nome</th>
<th class="text-center">Area</th>
<th class="text-center">Faculdade</th>
<th></th>
</tr>
</thead>
<tbody >
<tr ng-repeat="curso in cursos">
<td class="text-center">{{ curso.nome }}</td>
<td class="text-center">{{ curso.area }}</td>
<td class="text-center">{{ curso.nome_faculdade }}</td>
<td class="text-center"><a href="./#!/adm/curso/{{ curso.id }}/editar" class="btn btn-primary fa fa-pen"></a></td>
</tr>
</tbody>
</table>
</div>

Expand Down
70 changes: 27 additions & 43 deletions app/adm/listarEventos.html
Original file line number Diff line number Diff line change
@@ -1,55 +1,39 @@
<div class="row" ng-controller="listarEvento">
<div class="row" ng-controller="admEventos">
<div class="container">
<div class="row text-center">
<h2 class="col-lg-12 col-xl-12 col-offset">Eventos</h2>
<h2 class="col-lg-12 col-xl-12 ">Eventos</h2>
</div>
<form action="" class="search-form">
<div class="form-group has-feedback">
<label for="search" class="sr-only">Search</label>
<input type="text" class="form-control" name="search" id="search" placeholder="Pesquisar">
<input type="text" disabled class="form-control" name="search" id="search" placeholder="Pesquisar [Desabilitado Temporariamente]">
<span class="glyphicon glyphicon-search form-control-feedback"></span>
</div>
</form>


<div class="row">


<table class="table table-responsive table-striped table-bordered table-hover col-12">
<thead class="row">
<tr>
<th class="text-center">Nome</th>
<th class="text-center">Data</th>
<th class="text-center">Hora</th>
<th class="text-center">Instituicao</th>
<th class="text-center text-success success"><a href="cadastrarEvento.html">+</a></th>
</tr>
</thead>
<tbody class="text-center">
<tr >
<td>RoadSec</td>
<td>10/10/1010</td>
<td>19:00</td>
<td>Ruy barbosa</td>
<td> <a href="#"class="text-danger">X</a>
</td>

</tr>
<tr>
<td>RoadSec</td>
<td>10/10/1010</td>
<td>19:00</td>
<td>Ruy barbosa</td>
<td> <a href="#"class="text-danger">X</a>
</tr>
<tr>
<td>RoadSec</td>
<td>10/10/1010</td>
<td>19:00</td>
<td>Ruy barbosa</td>
<td> <a href=""class="text-danger">X</a>
</tr>
</tbody>
<div class="row">
<div class="col-lg-4"><a href="./#!/adm/evento/cadastrar" class="btn btn-success fa fa-plus"> Novo</a></div>
</div>
<br>
<div class="table-responsive">
<table class="table table-hover table-bordered table-striped">
<thead>
<tr>
<th class="text-center">Nome</th>
<th class="text-center">Faculdade</th>
<th class="text-center">Início</th>
<th class="text-center">Fim</th>
<th></th>
</tr>
</thead>
<tbody >
<tr ng-repeat="evento in eventos">
<td class="text-center">{{ evento.nome }}</td>
<td class="text-center">{{ evento.faculdade }}</td>
<td class="text-center">{{ evento.inicio | date: "dd/MM/yyyy HH:mm" }}</td>
<td class="text-center">{{ evento.fim | date: "dd/MM/yyyy HH:mm" }}</td>
<td class="text-center"><a href="./#!/adm/evento/{{ evento.id }}/editar" class="btn btn-primary fa fa-pen"></a></td>
</tr>
</tbody>
</table>
</div>

Expand Down
66 changes: 23 additions & 43 deletions app/adm/listarInstitut.html
Original file line number Diff line number Diff line change
@@ -1,55 +1,35 @@
<div class="row" ng-controller="listarEvento">
<div class="row" ng-controller="admInstituicoes">
<div class="container">
<div class="row text-center">
<h2 class="col-lg-12 col-xl-12 col-offset">Instituicao</h2>
<h2 class="col-lg-12 col-xl-12 ">Instituições</h2>
</div>
<form action="" class="search-form">
<div class="form-group has-feedback">
<label for="search" class="sr-only">Search</label>
<input type="text" class="form-control" name="search" id="search" placeholder="Pesquisar">
<input type="text" disabled class="form-control" name="search" id="search" placeholder="Pesquisar [Desabilitado Temporariamente]">
<span class="glyphicon glyphicon-search form-control-feedback"></span>
</div>
</form>


<div class="row">


<table class="table table-responsive table-striped table-bordered table-hover col-12">
<thead class="row">
<tr>
<th class="text-center">Nome</th>
<th class="text-center">Data</th>
<th class="text-center">Hora</th>
<th class="text-center">Instituicao</th>
<th class="text-center text-success success"><a href="cadastrarInstituicao.html">+</a></th>
</tr>
</thead>
<tbody class="text-center">
<tr >
<td>RoadSec</td>
<td>10/10/1010</td>
<td>19:00</td>
<td>Ruy barbosa</td>
<td> <a href="#"class="text-danger">X</a>
</td>

</tr>
<tr>
<td>RoadSec</td>
<td>10/10/1010</td>
<td>19:00</td>
<td>Ruy barbosa</td>
<td> <a href="#"class="text-danger">X</a>
</tr>
<tr>
<td>RoadSec</td>
<td>10/10/1010</td>
<td>19:00</td>
<td>Ruy barbosa</td>
<td> <a href=""class="text-danger">X</a>
</tr>
</tbody>
<div class="row">
<div class="col-lg-4"><a href="./#!/adm/instituicao/cadastrar" class="btn btn-success fa fa-plus"> Novo</a></div>
</div>
<br>
<div class="table-responsive">
<table class="table table-hover table-bordered table-striped">
<thead>
<tr>
<th class="text-center">Nome</th>
<th class="text-center">Endereço</th>
<th></th>
</tr>
</thead>
<tbody >
<tr ng-repeat="instituicao in instituicoes">
<td class="text-center">{{ instituicao.nome_faculdade }}</td>
<td class="text-center">{{ instituicao.endereco }}</td>
<td class="text-center"><a href="./#!/adm/instituicao/{{ instituicao.id }}/editar" class="btn btn-primary fa fa-pen"></a></td>
</tr>
</tbody>
</table>
</div>

Expand Down
Binary file added app/assets/event.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/assets/hat.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/assets/instituition.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions app/css/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ body {
background: rgba(0, 0, 0, 0.13);
}

.img.menu-dash {
max-height: 100%;
max-width: 100%;
}

.spinner {
width: 4rem;
Expand Down
2 changes: 1 addition & 1 deletion app/scripts/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ app.config(function($routeProvider) {
.when("/adm/instituicao/:id/editar", {
templateUrl : "adm/editarInstituicao.html"
})
.when("/adm/institut", {
.when("/adm/instituicoes", {
templateUrl : "adm/listarInstitut.html"
})
.when("/credenciamento", {
Expand Down
Loading

0 comments on commit 773afb6

Please sign in to comment.