Skip to content
Snippets Groups Projects
Commit 2cc43a8e authored by Rémi PAILHAREY's avatar Rémi PAILHAREY :fork_knife_plate:
Browse files

Merge branch 'feat/US123-structures-update-date' into 'dev'

Feat/us123 structures update date

See merge request web-et-numerique/pamn_plateforme-des-acteurs-de-la-mediation-numerique/pamn_client!247
parents 54358748 9d80147c
No related branches found
No related tags found
3 merge requests!2921.17,!247Feat/us123 structures update date,!245feat(admin): administration panel for jobs and employers
...@@ -18,3 +18,11 @@ ...@@ -18,3 +18,11 @@
.incomplete { .incomplete {
color: $red; color: $red;
} }
.isOutdated {
color: $red;
}
.structure-updated-at {
text-align: right;
}
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<div *ngIf="!isLoading" fxLayout="column" fxLayoutAlign="center center"> <div *ngIf="!isLoading" fxLayout="column" fxLayoutAlign="center center">
<table aria-describedby="demands attachment results" class="results-tab results-column"> <table aria-describedby="demands attachment results" class="results-tab results-column">
<thead> <thead>
<th scope="col"> <th colspan="2" scope="colgroup">
Structures avec des données manquantes ({{ structuresIncomplete ? structuresIncomplete.length : 0 }}) Structures avec des données manquantes ({{ structuresIncomplete ? structuresIncomplete.length : 0 }})
</th> </th>
</thead> </thead>
...@@ -15,6 +15,9 @@ ...@@ -15,6 +15,9 @@
{{ structure.structureName }}</a {{ structure.structureName }}</a
> >
</td> </td>
<td class="structure-updated-at">
<span [ngClass]="{ isOutdated: structure.isOutdated }">{{ structure.updatedAt | date: 'mediumDate' }}</span>
</td>
</tr> </tr>
<tr *ngIf="!structuresIncomplete?.length"> <tr *ngIf="!structuresIncomplete?.length">
<td colspan="3">Aucune structure</td> <td colspan="3">Aucune structure</td>
...@@ -23,13 +26,16 @@ ...@@ -23,13 +26,16 @@
</table> </table>
<table aria-describedby="demands attachment results" class="results-tab results-column"> <table aria-describedby="demands attachment results" class="results-tab results-column">
<thead> <thead>
<th scope="col">Structures en cours de revendication ({{ structuresInClaim.length }})</th> <th colspan="2" scope="colgroup">Structures en cours de revendication ({{ structuresInClaim.length }})</th>
</thead> </thead>
<tbody> <tbody>
<tr *ngFor="let structure of structuresInClaim"> <tr *ngFor="let structure of structuresInClaim">
<td> <td>
<a href="/acteurs?id={{ structure.structureId }}" target="_blank"> {{ structure.structureName }}</a> <a href="/acteurs?id={{ structure.structureId }}" target="_blank"> {{ structure.structureName }}</a>
</td> </td>
<td class="structure-updated-at">
<span [ngClass]="{ isOutdated: structure.isOutdated }">{{ structure.updatedAt | date: 'mediumDate' }}</span>
</td>
</tr> </tr>
<tr *ngIf="!structuresInClaim?.length"> <tr *ngIf="!structuresInClaim?.length">
<td colspan="3">Aucune structure</td> <td colspan="3">Aucune structure</td>
...@@ -38,13 +44,16 @@ ...@@ -38,13 +44,16 @@
</table> </table>
<table aria-describedby="demands attachment results" class="results-tab results-column"> <table aria-describedby="demands attachment results" class="results-tab results-column">
<thead> <thead>
<th scope="col">Structures à revendiquer ({{ structuresToClaim.length }})</th> <th colspan="2" scope="colgroup">Structures à revendiquer ({{ structuresToClaim.length }})</th>
</thead> </thead>
<tbody> <tbody>
<tr *ngFor="let structure of structuresToClaim"> <tr *ngFor="let structure of structuresToClaim">
<td> <td>
<a href="/acteurs?id={{ structure.structureId }}" target="_blank"> {{ structure.structureName }}</a> <a href="/acteurs?id={{ structure.structureId }}" target="_blank"> {{ structure.structureName }}</a>
</td> </td>
<td class="structure-updated-at">
<span [ngClass]="{ isOutdated: structure.isOutdated }">{{ structure.updatedAt | date: 'mediumDate' }}</span>
</td>
</tr> </tr>
<tr *ngIf="!structuresToClaim?.length"> <tr *ngIf="!structuresToClaim?.length">
<td colspan="3">Aucune structure</td> <td colspan="3">Aucune structure</td>
...@@ -53,13 +62,16 @@ ...@@ -53,13 +62,16 @@
</table> </table>
<table aria-describedby="demands attachment results" class="results-tab results-column"> <table aria-describedby="demands attachment results" class="results-tab results-column">
<thead> <thead>
<th scope="col">Structures revendiquées ({{ structuresClaimed.length }})</th> <th colspan="2" scope="colgroup">Structures revendiquées ({{ structuresClaimed.length }})</th>
</thead> </thead>
<tbody> <tbody>
<tr *ngFor="let structure of structuresClaimed"> <tr *ngFor="let structure of structuresClaimed">
<td> <td>
<a href="/acteurs?id={{ structure.structureId }}" target="_blank"> {{ structure.structureName }}</a> <a href="/acteurs?id={{ structure.structureId }}" target="_blank"> {{ structure.structureName }}</a>
</td> </td>
<td class="structure-updated-at">
<span [ngClass]="{ isOutdated: structure.isOutdated }">{{ structure.updatedAt | date: 'mediumDate' }}</span>
</td>
</tr> </tr>
<tr *ngIf="!structuresClaimed?.length"> <tr *ngIf="!structuresClaimed?.length">
<td colspan="3">Aucune structure</td> <td colspan="3">Aucune structure</td>
......
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