fix(commercial) : champ Fonction du contact sur 2 colonnes (ERP-147) (#88)
Auto Tag Develop / tag (push) Successful in 8s
Auto Tag Develop / tag (push) Successful in 8s
ERP-147 — Le champ « Fonction » (jobTitle) du bloc contact passe sur 2 colonnes, côté Client (M1) et Fournisseur (M2). ## Changements - `ClientContactBlock.vue` — champ Fonction enrobé dans `<div class="col-span-2">` - `SupplierContactBlock.vue` — idem côté fournisseur ## Détail technique Le wrapper `col-span-2` est nécessaire car `MalioInputText` (`inheritAttrs:false`) renvoie `class` sur son input interne et non sur la cellule de grille — même pattern que `ClientAddressBlock.vue`. ## Vérification - `eslint` OK sur les 2 fichiers - Rendu à valider visuellement sur les écrans Ajouter/Modifier client et fournisseur Reviewed-on: #88 Co-authored-by: tristan <tristan@yuno.malio.fr> Co-committed-by: tristan <tristan@yuno.malio.fr>
This commit was merged in pull request #88.
This commit is contained in:
@@ -26,13 +26,18 @@
|
|||||||
:error="errors?.firstName"
|
:error="errors?.firstName"
|
||||||
@update:model-value="(v: string) => update('firstName', v)"
|
@update:model-value="(v: string) => update('firstName', v)"
|
||||||
/>
|
/>
|
||||||
<MalioInputText
|
<!-- Fonction sur 2 colonnes : on wrappe car MalioInputText
|
||||||
:model-value="model.jobTitle"
|
(inheritAttrs:false) renvoie `class` sur l'input interne, pas sur la
|
||||||
:label="t('commercial.clients.form.contact.jobTitle')"
|
cellule de grille. Le wrapper porte le col-span-2, le champ le remplit. -->
|
||||||
:readonly="readonly"
|
<div class="col-span-2">
|
||||||
:error="errors?.jobTitle"
|
<MalioInputText
|
||||||
@update:model-value="(v: string) => update('jobTitle', v)"
|
:model-value="model.jobTitle"
|
||||||
/>
|
:label="t('commercial.clients.form.contact.jobTitle')"
|
||||||
|
:readonly="readonly"
|
||||||
|
:error="errors?.jobTitle"
|
||||||
|
@update:model-value="(v: string) => update('jobTitle', v)"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
<MalioInputEmail
|
<MalioInputEmail
|
||||||
:model-value="model.email"
|
:model-value="model.email"
|
||||||
:label="t('commercial.clients.form.contact.email')"
|
:label="t('commercial.clients.form.contact.email')"
|
||||||
|
|||||||
@@ -25,13 +25,18 @@
|
|||||||
:error="errors?.firstName"
|
:error="errors?.firstName"
|
||||||
@update:model-value="(v: string) => update('firstName', v)"
|
@update:model-value="(v: string) => update('firstName', v)"
|
||||||
/>
|
/>
|
||||||
<MalioInputText
|
<!-- Fonction sur 2 colonnes : on wrappe car MalioInputText
|
||||||
:model-value="model.jobTitle"
|
(inheritAttrs:false) renvoie `class` sur l'input interne, pas sur la
|
||||||
:label="t('commercial.suppliers.form.contact.jobTitle')"
|
cellule de grille. Le wrapper porte le col-span-2, le champ le remplit. -->
|
||||||
:readonly="readonly"
|
<div class="col-span-2">
|
||||||
:error="errors?.jobTitle"
|
<MalioInputText
|
||||||
@update:model-value="(v: string) => update('jobTitle', v)"
|
:model-value="model.jobTitle"
|
||||||
/>
|
:label="t('commercial.suppliers.form.contact.jobTitle')"
|
||||||
|
:readonly="readonly"
|
||||||
|
:error="errors?.jobTitle"
|
||||||
|
@update:model-value="(v: string) => update('jobTitle', v)"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
<MalioInputEmail
|
<MalioInputEmail
|
||||||
:model-value="model.email"
|
:model-value="model.email"
|
||||||
:label="t('commercial.suppliers.form.contact.email')"
|
:label="t('commercial.suppliers.form.contact.email')"
|
||||||
|
|||||||
Reference in New Issue
Block a user