Commit 55024ba0 authored by Rodrigo Diez's avatar Rodrigo Diez

Pagina de consultas añadida

parent 5b58a998
Pipeline #38 canceled with stages
This diff is collapsed.
......@@ -990,7 +990,7 @@ h1.page-header {
.chat .panel-body {
overflow-y: scroll;
height: 300px; }
height: 450px; }
.chat-body small {
margin-left: 5px; }
......
......@@ -36,5 +36,10 @@ router.get('/', async(req, res) =>{
});
router.get('/consultas', async(req, res) =>{
const consultas = await Consulta.find().sort({ fecha: 'desc'});
res.render('inicio/consultas', {consultas});
});
module.exports = router;
\ No newline at end of file
<nav class="navbar navbar-custom navbar-fixed-top" role="navigation">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#sidebar-collapse"><span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span></button>
<a class="navbar-brand" href="#"><span>DIEZROFER</span>DNS</a>
<ul class="nav navbar-top-links navbar-right">
</ul>
</div>
</div><!-- /.container-fluid -->
</nav>
<div class="col-sm-12 col-lg-12 main">
<div class="row">
<ol class="breadcrumb">
<li class="active">Consultas</li>
</ol>
</div><!--/.row-->
<div class="row">
<div class="col-md-12">
<div class="panel panel-default chat">
<div class="panel-heading">
DNS
</div>
<div class="panel-body">
<ul>
{{#each consultas}}
<li class="left clearfix">
<div class="chat-body clearfix">
<div class="header"><strong class="primary-font">{{cliente}}</strong> <small class="text-muted">{{fecha}}</small></div>
<p>Ha solicitado {{pagina}} cuya direccion ip es {{direccion}}</p>
</div>
</li>
{{/each}}
</ul>
</div>
</div>
</div><!--/.col-->
<div class="col-sm-12">
<p class="back-link">Pagina ofrecida por <a href="https://www.diezrofer.es">DiezRoFer</a></p>
</div>
</div><!--/.row-->
</div> <!--/.main-->
\ No newline at end of file
<div class="row">
<div class="col-xs-10 col-xs-offset-1 col-sm-8 col-sm-offset-2 col-md-4 col-md-offset-4">
<div class="col-xs-10 col-xs-offset-1 col-sm-8 col-sm-offset-2 col-md-4 col-md-offset-4 align-content-center text-center">
<div class="login-panel panel panel-default">
<div class="panel-heading">Realizar consulta</div>
<div class="panel-body">
<div class="panel-body ">
<form role="form" action="/" method="get">
<fieldset>
<div class="form-group">
......@@ -10,6 +10,7 @@
</div>
<button class="btn btn-primary align-content-center" type="submit">Resolver direccion</button>
<a href="/consultas" class="btn btn-primary align-content-center" >Ver consultas</a>
</form>
</div>
</div>
......
......@@ -6,6 +6,7 @@
<title>DNS DiezRoFer</title>
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/styles.css" rel="stylesheet">
<link href="css/font-awesome.min.css" rel="stylesheet">
</head>
<body>
......
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