Skip to content
Snippets Groups Projects
Commit b842e2d9 authored by Augustin LECONTE's avatar Augustin LECONTE
Browse files

feat(admin): see incomplete structure in structure list

parent 508364f3
No related branches found
No related tags found
3 merge requests!180release V1.10.0,!178release V1.10.0,!173feat/US12-see-incomplete-structures
@import '../../assets/scss/color';
.selector {
margin-bottom: 20px;
.option {
......@@ -12,3 +14,7 @@
.results-column {
width: 30%;
}
.incomplete {
color: $red;
}
<div fxLayout="column" fxLayoutAlign="center center">
<div *ngIf="!isInClaimStructure && !isToClaimStructure && !isClaimedStructure">
Choisir un filtre pour afficher la liste des structures
</div>
<table aria-describedby="demands attachment results" class="results-tab results-column">
<thead>
<th scope="col">Structures avec des données manquantes ({{ structuresIncomplete?.length }})</th>
</thead>
<tbody>
<tr *ngFor="let structure of structuresIncomplete">
<td>
<a class="incomplete" href="/acteurs?id={{ structure.structureId }}" target="_blank">
{{ structure.structureName }}</a
>
</td>
</tr>
<tr *ngIf="!structuresIncomplete?.length">
<td colspan="3">Aucune structure</td>
</tr>
</tbody>
</table>
<table aria-describedby="demands attachment results" class="results-tab results-column">
<thead>
<th scope="col">Structures en cours de revendication ({{ structuresInClaim.length }})</th>
......
......@@ -11,9 +11,7 @@ export class AdminStructuresListComponent implements OnInit {
public structuresInClaim: StructureAdminInfo[];
public structuresToClaim: StructureAdminInfo[];
public structuresClaimed: StructureAdminInfo[];
public isClaimedStructure: boolean = false;
public isToClaimStructure: boolean = false;
public isInClaimStructure: boolean = true;
public structuresIncomplete: StructureAdminInfo[];
public isAll: boolean = false;
constructor(private adminService: AdminService) {}
......@@ -22,32 +20,7 @@ export class AdminStructuresListComponent implements OnInit {
this.structuresClaimed = structures.claimed;
this.structuresInClaim = structures.inClaim;
this.structuresToClaim = structures.toClaim;
this.structuresIncomplete = structures.incomplete;
});
}
public claimedStructure(event: boolean): void {
this.isClaimedStructure = !this.isClaimedStructure;
}
public toClaimStructure(event: boolean): void {
this.isToClaimStructure = !this.isToClaimStructure;
}
public inClaimStructure(event: boolean): void {
this.isInClaimStructure = !this.isInClaimStructure;
}
public allStructure(event: boolean): void {
if (!this.isAll) {
this.isAll = !this.isAll;
this.isInClaimStructure = true;
this.isToClaimStructure = true;
this.isClaimedStructure = true;
} else {
this.isAll = !this.isAll;
this.isInClaimStructure = false;
this.isToClaimStructure = false;
this.isClaimedStructure = false;
}
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment