Commit 46a46e55 authored by Julien's avatar Julien
Browse files

more details into cards

parent 33f5213d
......@@ -45,7 +45,7 @@
<img class="card-img-top" src="{{vehicule.path_image}}" alt="Card image cap">
<div class="card-body">
<h5 class="card-title">{{vehicule.marque}}</h5>
<p class="card-text">{{vehicule.modele}}</p>
<h6 class="card-subtitle mb-2 text-muted">{{vehicule.modele}}</h6>
<p class="card-text"> Prix : {{vehicule.prix}} €</p>
<p class="card-text"> {{vehicule.nbPlace}} places</p>
<a href="#/vehicule/{{vehicule.id}}/view" class="card-link">En savoir plus</a>
......
......@@ -99,7 +99,8 @@ export class HomeComponent implements OnInit {
.startOf('d')
.toJSON(),
endDate: moment()
.endOf('d')
.add(1, 'd')
.startOf('d')
.toJSON()
})
.subscribe(vehicules => {
......@@ -109,8 +110,12 @@ export class HomeComponent implements OnInit {
}
filter() {
const startDate = $('#daterange').data('daterangepicker').startDate;
const endDate = $('#daterange').data('daterangepicker').endDate;
const startDate = $('#daterange')
.data('daterangepicker')
.startDate.clone();
const endDate = $('#daterange')
.data('daterangepicker')
.endDate.clone();
const nbDays = (<HTMLInputElement>$('#nbDays')[0]).value;
this.vehiculeService
......
Supports Markdown
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