From f3112e45bec8cc7a9e3cef341acdf8bafd8e9be0 Mon Sep 17 00:00:00 2001
From: Augustin Leconte <ext.sopra.aleconte@grandlyon.com>
Date: Fri, 17 Dec 2021 11:37:58 +0100
Subject: [PATCH] feat(admin-structure-list): remove filters checkboxes && show
 all structures with their tag by default

---
 .../admin-structures-list.component.html      | 40 ++-----------------
 1 file changed, 4 insertions(+), 36 deletions(-)

diff --git a/src/app/admin/components/structures-list/admin-structures-list.component.html b/src/app/admin/components/structures-list/admin-structures-list.component.html
index 3d166152b..a1c46c157 100644
--- a/src/app/admin/components/structures-list/admin-structures-list.component.html
+++ b/src/app/admin/components/structures-list/admin-structures-list.component.html
@@ -1,40 +1,8 @@
 <div fxLayout="column" fxLayoutAlign="center center">
-  <div fxLayout="row" class="selector">
-    <div fxLayout="row" class="checkbox no-width">
-      <div class="checkboxItem">
-        <label>
-          <input type="checkbox" [checked]="isInClaimStructure" (change)="inClaimStructure($event)" />
-          <span class="customCheck"></span>
-          <div class="label pass option">En revendication</div>
-        </label>
-      </div>
-      <div class="checkboxItem">
-        <label>
-          <input type="checkbox" [checked]="isClaimedStructure" (change)="claimedStructure($event)" />
-          <span class="customCheck"></span>
-          <div class="label pass option">Revendiquées</div>
-        </label>
-      </div>
-      <div class="checkboxItem">
-        <label>
-          <input type="checkbox" [checked]="isToClaimStructure" (change)="toClaimStructure($event)" />
-          <span class="customCheck"></span>
-          <div class="label pass option">Non revendiquées</div>
-        </label>
-      </div>
-      <div class="checkboxItem">
-        <label>
-          <input type="checkbox" [checked]="isAll" (change)="allStructure($event)" />
-          <span class="customCheck"></span>
-          <div class="label pass option">Toutes</div>
-        </label>
-      </div>
-    </div>
-  </div>
   <div *ngIf="!isInClaimStructure && !isToClaimStructure && !isClaimedStructure">
     Choisir un filtre pour afficher la liste des structures
   </div>
-  <table *ngIf="isInClaimStructure" aria-describedby="demands attachment results" class="results-tab results-column">
+  <table aria-describedby="demands attachment results" class="results-tab results-column">
     <thead>
       <th scope="col">Structures en cours de revendication ({{ structuresInClaim.length }})</th>
     </thead>
@@ -49,7 +17,7 @@
       </tr>
     </tbody>
   </table>
-  <table *ngIf="isToClaimStructure" aria-describedby="demands attachment results" class="results-tab results-column">
+  <table aria-describedby="demands attachment results" class="results-tab results-column">
     <thead>
       <th scope="col">Structures à revendiquer ({{ structuresToClaim.length }})</th>
     </thead>
@@ -64,7 +32,7 @@
       </tr>
     </tbody>
   </table>
-  <table *ngIf="isClaimedStructure" aria-describedby="demands attachment results" class="results-tab results-column">
+  <table aria-describedby="demands attachment results" class="results-tab results-column">
     <thead>
       <th scope="col">Structures revendiquées ({{ structuresClaimed.length }})</th>
     </thead>
@@ -74,7 +42,7 @@
           <a href="/acteurs?id={{ structure.structureId }}" target="_blank"> {{ structure.structureName }}</a>
         </td>
       </tr>
-      <tr *ngIf="!structuresInClaim?.length">
+      <tr *ngIf="!structuresClaimed?.length">
         <td colspan="3">Aucune structure</td>
       </tr>
     </tbody>
-- 
GitLab