-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
payment feature - part 4 : order detail page for payment confirmation
- Loading branch information
1 parent
71ec13c
commit 5b33139
Showing
11 changed files
with
176 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,5 @@ | |
/**/.vscode | ||
/**/target | ||
/**/*.log | ||
.env | ||
TODO |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,5 +2,5 @@ | |
|
||
public enum AnimalBreed { | ||
BEEF_LIMOUSIN, | ||
BEEF_CHAROLLAIS; | ||
BEEF_CHAROLAIS; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,13 +4,13 @@ services: | |
database: | ||
image: postgres:12.2-alpine | ||
volumes: | ||
- <path_to_postgres_datafile_folder_on_real_server>:/var/lib/postgresql/data/pgdata | ||
- ${postgres_datafile_path}:/var/lib/postgresql/data/pgdata | ||
environment: | ||
- POSTGRES_USER=localeat | ||
- POSTGRES_PASSWORD=<password> | ||
- POSTGRES_PASSWORD=${postgres_password} | ||
- PGDATA=/var/lib/postgresql/data/pgdata | ||
ports: | ||
- <published_postgres_port>:5432 | ||
- ${postgres_port}:5432 | ||
|
||
core: | ||
image: benjaminpochat/localeat-core:${DOCKER_IMAGE_TAG:-latest} | ||
|
@@ -19,20 +19,20 @@ services: | |
environment: | ||
- spring_datasource_url=jdbc:postgresql://database:5432/localeat | ||
- spring_datasource_username=localeat | ||
- spring_datasource_password=<password> | ||
- spring_datasource_password=${postgres_password} | ||
- spring_jpa_properties_hibernate_dialect=org.hibernate.dialect.PostgresPlusDialect | ||
- [email protected] | ||
- localeat_smtp_password=localeat | ||
- localeat_http_domainname=<domain_name_for_localeat_server> | ||
- localeat.payment.molliepaymentapikey=<mollie_api_key> | ||
- localeat_smtp_password=${smtp_password} | ||
- localeat_http_domainname=${domain_name} | ||
- localeat_payment_molliepaymentapikey=${mollie_api_key} | ||
ports: | ||
- <published_backend_port>:8080 | ||
- ${backend_port}:8080 | ||
|
||
ui: | ||
image: benjaminpochat/localeat-ui:${DOCKER_IMAGE_TAG:-latest} | ||
depends_on: | ||
- core | ||
volumes: | ||
- <path_to_folder_containing_localeat_ui_config_file_on_real_server>:/usr/local/apache2/htdocs/assets/config | ||
- ${frontend_config_file_path}:/usr/local/apache2/htdocs/assets/config | ||
ports: | ||
- <published_frontend_port>:80 | ||
- ${frontend_port}:80 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
docker-compose -f docker-compose-build.yml run database | ||
docker-compose -f docker-compose-run.yml run --service-ports database |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
.order__title { | ||
top: 0; | ||
z-index: 3; | ||
background-color: darkolivegreen; | ||
color: white; | ||
font-family: "Acme"; | ||
padding-left: 1rem; | ||
} | ||
|
||
.order__title-text { | ||
font-size: var(--main-menu-font-size); | ||
} | ||
|
||
.order__subtitle > div { | ||
padding-right: 0.6rem; | ||
} | ||
|
||
.order__paragraph { | ||
padding: 0.4rem; | ||
} | ||
|
||
.order__subtitle { | ||
font-family: "Acme"; | ||
display: flex; | ||
flex-wrap: wrap; | ||
} | ||
|
||
.order__status_cancelled { | ||
color: darkred; | ||
} | ||
|
||
.order__status_booked { | ||
color: orangered; | ||
} | ||
|
||
.order__status_validated { | ||
color: olivedrab; | ||
} |
62 changes: 61 additions & 1 deletion
62
ui/src/app/customer-area/components/order-details/order-details.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,61 @@ | ||
<p>Commande n° {{order.id}} pour la livraison du {{order.delivery.deliveryStart | date: 'shortDate'}}</p> | ||
<div class="order__title"> | ||
<div class="order__title-text">Votre commande de viande</div> | ||
<div class="order__subtitle"> | ||
<div>Livraison du {{order.delivery.deliveryStart | date: 'shortDate'}}</div> | ||
<div>{{order.delivery.deliveryAddress.name}}</div> | ||
</div> | ||
</div> | ||
|
||
<div class="order__paragraph"> | ||
<div class="order__subtitle">Statut de la commande</div> | ||
<div>{{getStatusLabel()}}</div> | ||
<div *ngIf="isStatusCancelled()" class="order__status_cancelled">Votre commande a été annulée</div> | ||
<div *ngIf="isStatusBooked()" class="order__status_booked">Votre commande n'est pas encore validée. Elle sera annulée si le paiement n'est pas finalisé.</div> | ||
<div *ngIf="isStatusValidated()" class="order__status_validated">Merci de votre confiance !</div> | ||
</div> | ||
|
||
<div *ngIf="isStatusValidated()" class="order__paragraph"> | ||
<div class="order__subtitle"> | ||
Date de la livraison | ||
</div> | ||
<div> | ||
le {{order.delivery.deliveryStart | date: 'shortDate'}} entre {{order.delivery.deliveryStart | date: 'shortTime'}} et {{order.delivery.deliveryEnd | date: 'shortTime'}} | ||
</div> | ||
</div> | ||
|
||
<div *ngIf="isStatusValidated()" class="order__paragraph"> | ||
<div class="order__subtitle"> | ||
Adresse de la livraison : | ||
</div> | ||
<div> | ||
<ul><li *ngFor="let addressElement of getDeliveryAddressElements()">{{addressElement}}</li></ul> | ||
</div> | ||
</div> | ||
|
||
<div *ngIf="isStatusValidated()" class="order__paragraph"> | ||
<div class="order__subtitle"> | ||
Montant de la commande | ||
</div> | ||
<div>{{getTotalPrice() | number: '0.2-2'}} €TTC</div> | ||
</div> | ||
|
||
<div *ngIf="isStatusValidated()" class="order__paragraph"> | ||
<div class="order__subtitle"> | ||
Colis commandés | ||
</div> | ||
<div> | ||
<ul> | ||
<li *ngFor="let orderItem of order.orderedItems"> | ||
<div>Type de colis : {{orderItem.batch.product.name}}</div> | ||
<div>Description : {{orderItem.batch.product.description}}</div> | ||
<div>Poids net : {{orderItem.batch.product.netWeight}} kg</div> | ||
<div>Quantité commandée : {{orderItem.quantity}}</div> | ||
</li> | ||
</ul> | ||
</div> | ||
</div> | ||
|
||
<div class="order__paragraph"> | ||
<button mat-flat-button color="accent" (click)="goHome()">Revenir à l'accueil</button> | ||
<button mat-flat-button (click)="print()">Imprimer cette page</button> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters