[#FER-30] Revoir l'affichage type bovin (!57)
Some checks failed
Auto Tag Develop / tag (push) Has been cancelled
Some checks failed
Auto Tag Develop / tag (push) Has been cancelled
| Numéro du ticket | Titre du ticket | |------------------|-----------------| | | | ## Description de la PR ## Modification du .env ## Check list - [ ] Pas de régression - [ ] TU/TI/TF rédigée - [ ] TU/TI/TF OK - [ ] CHANGELOG modifié Reviewed-on: #57 Co-authored-by: tristan <tristan@yuno.malio.fr> Co-committed-by: tristan <tristan@yuno.malio.fr>
This commit was merged in pull request #57.
This commit is contained in:
@@ -29,6 +29,14 @@
|
||||
<template #header-code>
|
||||
<UiTextInput v-model="filters.code" placeholder="Code" size="compact" />
|
||||
</template>
|
||||
<template #cell-display="{ item }">
|
||||
<span
|
||||
class="inline-flex items-center px-2 py-0.5 rounded text-sm font-medium"
|
||||
:class="item.display ? 'bg-green-100 text-green-700' : 'bg-slate-100 text-slate-500'"
|
||||
>
|
||||
{{ item.display ? 'Oui' : 'Non' }}
|
||||
</span>
|
||||
</template>
|
||||
</UiDataTable>
|
||||
</div>
|
||||
<div v-else class="mt-6 border border-slate-200 mb-16 px-4 py-6 text-slate-400">
|
||||
@@ -58,7 +66,8 @@ const { items, totalItems, page, perPage, filters, loading, reload } =
|
||||
|
||||
const columns = [
|
||||
{ key: 'label', label: 'Nom' },
|
||||
{ key: 'code', label: 'Code' }
|
||||
{ key: 'code', label: 'Code' },
|
||||
{ key: 'display', label: 'Affiché en réception' }
|
||||
]
|
||||
|
||||
const goToBovin = (bovin: BovineTypeData) => {
|
||||
|
||||
Reference in New Issue
Block a user