fix : review MR et CSS

This commit is contained in:
2026-02-13 08:16:21 +01:00
parent 62102f4edb
commit 72055cac1b
2 changed files with 4 additions and 7 deletions

View File

@@ -1,6 +1,6 @@
<template> <template>
<form @submit.prevent="validate"> <form @submit.prevent="validate">
<div class="flex items-center justify-between gap-10"> <div class="flex items-center justify-between">
<h1 class="text-3xl font-bold uppercase"> <h1 class="text-3xl font-bold uppercase">
{{ customerId ? "Modifications du client" : "Ajout d'un client" }} {{ customerId ? "Modifications du client" : "Ajout d'un client" }}
</h1> </h1>
@@ -14,12 +14,12 @@
</button> </button>
</div> </div>
<div class="grid grid-cols-2 gap-y-16 gap-x-12 mb-10 py-12"> <div class="grid grid-cols-2 gap-y-8 gap-x-80 mb-10 py-12">
<UiTextInput id="customer-label" v-model="form.label" label="Nom du client" :disabled="!auth.isAdmin"/> <UiTextInput id="customer-label" v-model="form.label" label="Nom du client" :disabled="!auth.isAdmin"/>
<UiTextInput id="customer-code" v-model="form.code" label="Code" :disabled="!auth.isAdmin"/> <UiTextInput id="customer-code" v-model="form.code" label="Code" :disabled="!auth.isAdmin"/>
</div> </div>
<div class="mb-4 py-2 bg-black "></div> <div class="mx-24 mb-4 py-6 border-t border-black"></div>
<div class="flex items-center justify-between mb-4"> <div class="flex items-center justify-between mb-4">
<h2 class="text-3xl font-bold uppercase">Adresses client</h2> <h2 class="text-3xl font-bold uppercase">Adresses client</h2>
<button <button
@@ -105,7 +105,6 @@ const goToAddAddress = () => {
path: "/admin/customer/address", path: "/admin/customer/address",
query: { query: {
customerId: String(customerId.value), customerId: String(customerId.value),
fromCustomer: "1",
}, },
}) })
} }
@@ -117,7 +116,6 @@ const goToEditAddress = (addressId: number | null) => {
query: { query: {
customerId: String(customerId.value), customerId: String(customerId.value),
addressId: String(addressId), addressId: String(addressId),
fromCustomer: "1",
}, },
}) })
} }
@@ -174,7 +172,6 @@ async function validate() {
label, label,
code, code,
} }
let targetId: number | null = null let targetId: number | null = null
if (customerId.value !== null) { if (customerId.value !== null) {

View File

@@ -1,6 +1,6 @@
<template> <template>
<div class="flex items-center justify-between"> <div class="flex items-center justify-between">
<h1 class="text-3xl font-bold uppercase">Client</h1> <h1 class="text-3xl font-bold uppercase">Liste des Clients</h1>
<NuxtLink <NuxtLink
to="/admin/customer" to="/admin/customer"
class="flex items-center justify-center text-xl uppercase bg-primary-500 text-white h-[50px] w-[272px]" class="flex items-center justify-center text-xl uppercase bg-primary-500 text-white h-[50px] w-[272px]"