diff --git a/frontend/src/app/GN2CommonModule/form/data-form.service.ts b/frontend/src/app/GN2CommonModule/form/data-form.service.ts index 510dccee39..994c4600ab 100644 --- a/frontend/src/app/GN2CommonModule/form/data-form.service.ts +++ b/frontend/src/app/GN2CommonModule/form/data-form.service.ts @@ -145,8 +145,14 @@ export class DataFormService { }); } - getTaxonInfo(cd_nom: number) { - return this._http.get(`${AppConfig.API_TAXHUB}/taxref/${cd_nom}`); + getTaxonInfo(cd_nom: number, areasStatus?: Array) { + let query_string = new HttpParams(); + if (areasStatus) { + query_string = query_string.append('areas_status', areasStatus.join(',')); + } + return this._http.get(`${AppConfig.API_TAXHUB}/taxref/${cd_nom}`, { + params: query_string + }); } getTaxonAttributsAndMedia(cd_nom: number, id_attributs?: Array) { diff --git a/frontend/src/app/shared/syntheseSharedModule/synthese-info-obs/synthese-info-obs.component.html b/frontend/src/app/shared/syntheseSharedModule/synthese-info-obs/synthese-info-obs.component.html index 77cc03b4dc..8423508d09 100644 --- a/frontend/src/app/shared/syntheseSharedModule/synthese-info-obs/synthese-info-obs.component.html +++ b/frontend/src/app/shared/syntheseSharedModule/synthese-info-obs/synthese-info-obs.component.html @@ -389,16 +389,54 @@
Attribut(s) Taxonomique(s) locau -
Réglementation
- - - - + +
Statuts
+
- {{ arrete.intitule }} -
+ + + + + + + + +
{{ status.value.display }}
+
    +
  • + + +
    + ({{ text.value.lb_adm_tr }} - {{ text.value.cd_sig }}) +
    + + Voir / Télécharger + + +
  • +
  • + + + {{ value.value.code_statut }} + + {{ value.value.label_statut }} + {{ value.value.rq_statut }} + +
  • +
+
+

Aucun

-
Médias
diff --git a/frontend/src/app/shared/syntheseSharedModule/synthese-info-obs/synthese-info-obs.component.ts b/frontend/src/app/shared/syntheseSharedModule/synthese-info-obs/synthese-info-obs.component.ts index 1cca7a4ade..61187c66c9 100644 --- a/frontend/src/app/shared/syntheseSharedModule/synthese-info-obs/synthese-info-obs.component.ts +++ b/frontend/src/app/shared/syntheseSharedModule/synthese-info-obs/synthese-info-obs.component.ts @@ -147,7 +147,9 @@ export class SyntheseInfoObsComponent implements OnInit, OnChanges { if (this.selectedObs['unique_id_sinp']) { this.loadValidationHistory(this.selectedObs['unique_id_sinp']); } - this._gnDataService.getTaxonInfo(this.selectedObs['cd_nom']).subscribe((taxInfo) => { + let cdNom = this.selectedObs['cd_nom']; + let areasStatus = this.selectedObs['areas'].map(area => area.id_area); + this._gnDataService.getTaxonInfo(cdNom, areasStatus).subscribe(taxInfo => { this.selectedObsTaxonDetail = taxInfo; if (this.selectedObs.cor_observers) { this.email = this.selectedObs.cor_observers