diff --git a/src/frontend/app/indexation/technical-information/technical-information.component.html b/src/frontend/app/indexation/technical-information/technical-information.component.html index d682942b05f770e35a8043272b4ddcf99125e333..6e8b80d81cffeef69fec9b37be3f5652365ce456 100644 --- a/src/frontend/app/indexation/technical-information/technical-information.component.html +++ b/src/frontend/app/indexation/technical-information/technical-information.component.html @@ -10,8 +10,8 @@ <div *ngIf="loading" class="loading" color="primary"> <mat-spinner></mat-spinner> </div> - <mat-form-field *ngFor="let data of techData | keyvalue"> - <mat-icon matPrefix [class]="data.value.icon" color="primary" style="width: 30px;"></mat-icon> + <mat-form-field class="data-item" *ngFor="let data of techData | keyvalue"> + <mat-icon matPrefix [class]="data.value.icon" color="primary" style="width: 35px;text-align: center;"></mat-icon> <mat-label>{{'lang.'+data.key | translate}}</mat-label> <input matInput [value]="data.value.value" readonly> </mat-form-field> @@ -20,11 +20,11 @@ <mat-expansion-panel expanded> <mat-expansion-panel-header> <mat-panel-title> - Informations complémentaires + {{'lang.otherInformations' | translate}} </mat-panel-title> </mat-expansion-panel-header> - <mat-form-field *ngFor="let custom of customsData | keyvalue"> - <mat-icon matPrefix [class]="custom.value.icon" color="primary" style="width: 30px;"></mat-icon> + <mat-form-field *ngFor="let custom of customsData | keyvalue" class="data-item"> + <mat-icon matPrefix [class]="custom.value.icon" color="primary" style="width: 35px;text-align: center;"></mat-icon> <mat-label>{{custom.value.label}}</mat-label> <input matInput [value]="custom.value.value" readonly> </mat-form-field> diff --git a/src/frontend/app/indexation/technical-information/technical-information.component.scss b/src/frontend/app/indexation/technical-information/technical-information.component.scss index a51c80f154a1252f042f167d98280c25b770ba7d..a903dcd0f2debb36e505199ec7376e06db1e7e6c 100644 --- a/src/frontend/app/indexation/technical-information/technical-information.component.scss +++ b/src/frontend/app/indexation/technical-information/technical-information.component.scss @@ -1 +1,7 @@ @import '../../../css/vars.scss'; + +.data-item { + ::ng-deep.mat-form-field-flex { + align-items: center; + } +} \ No newline at end of file diff --git a/src/frontend/app/indexation/technical-information/technical-information.component.ts b/src/frontend/app/indexation/technical-information/technical-information.component.ts index 3e2c2921613c54427263c1074982581d6f7f801f..3e8438042b744c16054129fcd4b51eb08c261335 100644 --- a/src/frontend/app/indexation/technical-information/technical-information.component.ts +++ b/src/frontend/app/indexation/technical-information/technical-information.component.ts @@ -39,8 +39,8 @@ export class TechnicalInformationComponent implements OnInit { value: '', icon: 'fas fa-fingerprint' }, - docserverPath: { - label: 'docserverPath', + docserverPathFile: { + label: 'docserverPathFile', value: '', icon: 'fas fa-terminal' }, @@ -82,6 +82,9 @@ export class TechnicalInformationComponent implements OnInit { this.techData.fingerprint.value = data.information.fingerprint, this.techData.size.value = this.functions.formatBytes(data.information.filesize), this.techData.fulltext.value = data.information.fulltext_result, + this.techData.docserverPathFile.value = data.information.docserverPathFile, + this.techData.filename.value = data.information.filename, + this.techData.creationDate.value = this.datePipe.transform(data.information.creationDate, 'dd/MM/y HH:mm') , this.loading = false; }), diff --git a/src/lang/lang-fr.json b/src/lang/lang-fr.json index 1850317ababa14ab2eb11a434c6f04d4278a2043..6e2165e852ed4122a9a6c00371957ebb08162d91 100644 --- a/src/lang/lang-fr.json +++ b/src/lang/lang-fr.json @@ -2094,6 +2094,7 @@ "openidEnabled": "Openid activé", "casEnabled": "CAS activé", "displayAsTechnicalData" : "Afficher en tant que donnée technique", - "displayInForm" : "Afficher dans le formulaire" + "displayInForm" : "Afficher dans le formulaire", + "technicalInformations" : "Informations techniques" }