feat(web): new step for user details
This commit is contained in:
@@ -1,8 +1,24 @@
|
|||||||
<div class="container hero">
|
<div class="container hero">
|
||||||
<h1>{{ 'CALC.TITLE' | translate }}</h1>
|
<h1>{{ 'CALC.TITLE' | translate }}</h1>
|
||||||
<p class="subtitle">{{ 'CALC.SUBTITLE' | translate }}</p>
|
<p class="subtitle">{{ 'CALC.SUBTITLE' | translate }}</p>
|
||||||
|
|
||||||
|
@if (orderSuccess()) {
|
||||||
|
<app-alert type="success">{{ 'USER_DETAILS.ORDER_SUCCESS' | translate }}</app-alert>
|
||||||
|
}
|
||||||
|
@if (error()) {
|
||||||
|
<app-alert type="error">{{ 'CALC.ERROR_GENERIC' | translate }}</app-alert>
|
||||||
|
}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@if (step() === 'details' && result()) {
|
||||||
|
<div class="container">
|
||||||
|
<app-user-details
|
||||||
|
[quote]="result()!"
|
||||||
|
(submitOrder)="onSubmitOrder($event)"
|
||||||
|
(cancel)="onCancelDetails()">
|
||||||
|
</app-user-details>
|
||||||
|
</div>
|
||||||
|
} @else {
|
||||||
<div class="container content-grid">
|
<div class="container content-grid">
|
||||||
<!-- Left Column: Input -->
|
<!-- Left Column: Input -->
|
||||||
<div class="col-input">
|
<div class="col-input">
|
||||||
@@ -32,9 +48,6 @@
|
|||||||
|
|
||||||
<!-- Right Column: Result or Info -->
|
<!-- Right Column: Result or Info -->
|
||||||
<div class="col-result" #resultCol>
|
<div class="col-result" #resultCol>
|
||||||
@if (error()) {
|
|
||||||
<app-alert type="error">Si è verificato un errore durante il calcolo del preventivo.</app-alert>
|
|
||||||
}
|
|
||||||
|
|
||||||
@if (loading()) {
|
@if (loading()) {
|
||||||
<app-card class="loading-state">
|
<app-card class="loading-state">
|
||||||
@@ -48,6 +61,7 @@
|
|||||||
<app-quote-result
|
<app-quote-result
|
||||||
[result]="result()!"
|
[result]="result()!"
|
||||||
(consult)="onConsult()"
|
(consult)="onConsult()"
|
||||||
|
(proceed)="onProceed()"
|
||||||
(itemChange)="uploadForm.updateItemQuantityByName($event.fileName, $event.quantity)"
|
(itemChange)="uploadForm.updateItemQuantityByName($event.fileName, $event.quantity)"
|
||||||
></app-quote-result>
|
></app-quote-result>
|
||||||
} @else {
|
} @else {
|
||||||
@@ -62,3 +76,4 @@
|
|||||||
}
|
}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user