From dfe3bff9576e179ab3e62ba559fbdc44778f979f Mon Sep 17 00:00:00 2001
From: sebastien <dupuy@datakode.fr>
Date: Wed, 1 Mar 2023 15:59:43 +0100
Subject: [PATCH] correctif filtre type sur la liste des structures

---
 .../js/components/Organizations/List.vue      | 27 ++++++++++++++++---
 1 file changed, 23 insertions(+), 4 deletions(-)

diff --git a/resources/js/components/Organizations/List.vue b/resources/js/components/Organizations/List.vue
index 9b74e826..f2e95689 100644
--- a/resources/js/components/Organizations/List.vue
+++ b/resources/js/components/Organizations/List.vue
@@ -30,9 +30,6 @@
                 <div slot="filter__name" class="VueTables__list-filter">
                     <input v-model="orgName" type="text" class="form-control" placeholder="Structure" />
                 </div>
-                <div slot="filter__type" class="VueTables__list-filter">
-                    <input v-model="typeName" type="text" class="form-control" placeholder="Type" />
-                </div>
                 <div slot="filter__territory" class="VueTables__list-filter">
                     <input v-model="territoryName" type="text" class="form-control" placeholder="Territoire" />
                 </div>
@@ -112,10 +109,11 @@ export default {
                 },
                 columnsDropdown: true,
                 filterByColumn: true,
-                filterable : ['short_name', 'siren', 'active'],
+                filterable : ['short_name', 'siren', 'type', 'active'],
                 headings: {
                     name: 'Structure',
                     short_name: 'Nom court',
+                    type: 'Type',
                     active: 'Statut',
                     territory: 'Territoire',
                 },
@@ -128,6 +126,27 @@ export default {
                         id: false,
                         text: 'Inactif'
                     }
+                    ],
+                    type: [{
+                        id: 'Autre',
+                        text: 'Autre'
+                    },
+                    {
+                        id: 'CCAS',
+                        text: 'CCAS'
+                    },
+                    {
+                        id: 'CIAS',
+                        text: 'CIAS'
+                    },
+                    {
+                        id: 'EPCI',
+                        text: 'EPCI'
+                    },
+                    {
+                        id: 'Syndicat départemental',
+                        text: 'Syndicat départemental'
+                    },
                     ]
                 },
                 customSorting: {
-- 
GitLab