admin-page + prix card resto

This commit is contained in:
Thomas Cardon 2022-02-18 15:11:51 +01:00
parent d7f423f93c
commit 19feceeb19
2 changed files with 10 additions and 3 deletions

View File

@ -39,9 +39,16 @@
<i class="fas fa-walking ps-2 pe-2" style="color:#a8a8a8"></i> <i class="fas fa-walking ps-2 pe-2" style="color:#a8a8a8"></i>
<span class="categorie pe-2" style="font-weight: bold;">{{distance}}m</span> <span class="categorie pe-2" style="font-weight: bold;">{{distance}}m</span>
<!-- <div class="d-inline-flex" *ngIf="restaurant.prix != null; else noPrice"> -->
<i class="fas fa-euro-sign ps-2 pe-2" style="color:#a8a8a8"></i>
<span class="prix" style="font-weight: bold;">{{ priceRef[restaurant.prix] }}</span>
<!-- </div> -->
<i class="fas fa-euro-sign ps-2 pe-2" style="color:#a8a8a8"></i> <!-- <ng-template #noPrice>
<span class="prix" style="font-weight: bold;"></span> <div class="d-inline-flex">
<p class="description pt-3 ps-3 pe-1 " style="font-size:1.9vh ;color:#545454">{{ priceRef[0] }} </p>
</div>
</ng-template> -->
<div class="d-inline-flex" *ngIf="restaurant.website; else noWebsite"> <div class="d-inline-flex" *ngIf="restaurant.website; else noWebsite">
<p class="description pt-3 ps-2 pe-1"><i class="bi bi-globe2 ps-2 pe-2" style="color:#a8a8a8"></i> <p class="description pt-3 ps-2 pe-1"><i class="bi bi-globe2 ps-2 pe-2" style="color:#a8a8a8"></i>

View File

@ -13,7 +13,7 @@ export class CardRestoComponent implements OnInit {
@Input() likeResto: any; @Input() likeResto: any;
@Output() clickLike = new EventEmitter<boolean>(); @Output() clickLike = new EventEmitter<boolean>();
isLiked : boolean = false; isLiked : boolean = false;
priceRef = ["Info indisponible","1-10€ "," €€ 11-20€"," €€€ 21-30€"," €€€€ 31-40€"]; priceRef = ["Info indisponible","1-10€ ","11-20€","21-30€","31-40€"];
constructor(private apiBackService : ApiBackService) { constructor(private apiBackService : ApiBackService) {
this.distance = 0 ; this.distance = 0 ;