Skip to content

Commit

Permalink
pricing on catalog
Browse files Browse the repository at this point in the history
  • Loading branch information
maltaesousa committed Mar 30, 2021
1 parent 7938472 commit b7b834d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@

<button [disabled]="order && !order.geom" mat-raised-button color="primary" class="action-button"
(click)="naviguateToNewOrder()">
Passer la commande
Poursuivre la commande...
</button>

<div *ngIf="order && !order?.geom" class="flex-row warning-container">
<mat-icon>warning</mat-icon>
<span>Vous devez sélectionner un périmètre avant de passer la commande.</span>
<span>Vous devez sélectionner un périmètre avant de poursuivre la commande.</span>
</div>
11 changes: 10 additions & 1 deletion front/src/app/welcome/catalog/catalog.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,16 @@
<img class="item-logo rounded-image" alt="Logo du produit" aria-label="Logo du produit"
src="{{mediaUrl}}/{{product.thumbnail_link}}">
<div class="item-label text-ellipsis-2" [matTooltip]="product.label">{{product.label}}</div>
<span class="item-price text-secondary">{{product.pricing}}</span>

<ng-container *ngIf="product.pricing === 'Gratuit'; then gratuit; else payant">
</ng-container>
<ng-template #gratuit>
<span class="item-price text-secondary">Gratuit</span>
</ng-template>
<ng-template #payant>
<span class="item-price text-secondary">Tarification selon le type de mandat</span>
</ng-template>

<button class="item-help" matTooltip="Voir les meta données" aria-label="Voir les meta données"
[disabled]="!product.metadata"
color="primary" mat-button
Expand Down

0 comments on commit b7b834d

Please sign in to comment.