Skip to content

Commit

Permalink
🐛 fix build errors
Browse files Browse the repository at this point in the history
  • Loading branch information
lucie1704 committed Jul 26, 2024
1 parent 13ec517 commit cf9d3ea
Showing 1 changed file with 4 additions and 61 deletions.
65 changes: 4 additions & 61 deletions frontend/src/pages/Backoffice/OrderList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -24,74 +24,17 @@
:loading="loading"
:error="error"
:url="url"
:new-item="undefined"
:current-page="currentPage"
:total-pages="totalPages"
:set-page="setPage"
:refresh="refresh"
@update-item="console.log('update-item')"
>
<!-- Start Edit Form Slot-->
<template #form="{ item, submit }">
<template #form>
<v-card class="text-center pa-5">
<v-card-title>{{ item.id ? 'Modifier une commande' : 'Créer une commande' }}</v-card-title>
<v-form @submit.prevent="submit">
<v-row>
<v-col>
<v-text-field
v-model="item.price"
label="Prix"
type="number"
step="0.01"
required
/>
<v-text-field
v-model="item.paymentStatus"
label="Statut de paiement"
required
/>
<v-text-field
v-model="item.deliveryStatus"
label="Statut de livraison"
required
/>
<v-text-field
v-model="item.date"
label="Date"
type="date"
required
/>
<v-text-field
v-model="item.customerId"
label="ID Client"
required
/>
<v-text-field
v-model="item.customerAddressId"
label="ID Adresse Client"
required
/>
<v-text-field
v-model="item.orderBillingId"
label="ID Facturation"
required
/>
<v-text-field
v-model="item.shippingId"
label="ID Expédition"
required
/>
</v-col>
</v-row>
<v-row>
<v-col>
<v-btn
type="submit"
color="blue"
>
{{ item.id ? 'Modifier' : 'Créer' }}
</v-btn>
</v-col>
</v-row>
</v-form>
edit form for order list incoming
</v-card>
</template>
<!-- End Edit Form Slot -->
Expand Down

0 comments on commit cf9d3ea

Please sign in to comment.