diff --git a/frontend/src/routes/client/commande/+page.svelte b/frontend/src/routes/client/commande/+page.svelte index 180c5af..71cdfc9 100644 --- a/frontend/src/routes/client/commande/+page.svelte +++ b/frontend/src/routes/client/commande/+page.svelte @@ -1,28 +1,27 @@ + + {#if confirm} - + {/if} {#if pin} @@ -262,199 +294,192 @@ {/if} -
+ + + + +
- {#if !menuPicks} -
-
- - - -
- {#if currentCatgory != ''} - - {/if} -
- {:else} -
-
- - -

- Choix de {(menuPicks.categories ?? [])[menuPicks.step].amount} - {(menuPicks.categories ?? [])[menuPicks.step].name} -

- -
- {#if currentCatgory != ''} - - {/if} -
+ + + + + {#if !order_menu} + {/if} - {#if sidebar} -
-
-
- -

Commande actuelle

- -

- Disponible: -
- - {#if (account?.points ?? 0) > 0} - - {/if} -
-

- - -
-
-
- - -
- {#if order.length == 0} -

Aucun article

- {:else} - - {/if} -
- {#each order as item} -
+ + {#if order_menu} +
+ +

Commande actuelle

+ + {#if order.length == 0} +
Aucun articles
+ {:else} +
    + {#each order as item} +
  • + {item.item.name} +
    {item.item.name}
    +
    + {formatPrice((item.item.display_price ?? 999) * item.amount)}
    +
    - {item.item.name} -
    - - {item.amount} - -
    - {formatPrice((item.item.display_price ?? 999) * item.amount)}{item.amount} +
    - {/each} -
-
-
-
-
-

Total

-

-
-

Coût:

- -
-
-

Reste:

-
- {#if orderPrice < (account?.points ?? 0)} - - {#if (account?.points ?? 0) > 0} - - {/if} - {:else} - - {/if} -
-
-

- - -
-
+ + {/each} + + {/if} +
+ +
+ {/if} + +
+
+ Total : +
+
+ Reste : + + {#if (account?.points ?? 0) > 0} + + {/if} +
+
+ + {#if order_menu} + + {/if} + +
+ +
+ + + {#if categories_menu || order_menu} + {/if} + + +
+ + + +
+ + {#if (account?.points ?? 0) > 0} + + {/if} +
+ + +
+ + +
+ {#if currentCatgoryId != ''} + + {/if} +
+ + + +
+ +
+
+ Total : + +
+
+ Reste : + + {#if (account?.points ?? 0) > 0} + + {/if} +
+