Commit ae95288d authored by Florent POITTEVIN's avatar Florent POITTEVIN
Browse files

feat: 1098 add link on person form to contributor page

parent 5fede748
......@@ -47,6 +47,12 @@
(navigate)="navigateToInstitution($event)"
>
</dlcm-shared-multi-select>
<button dlcmAlternativeButton
(click)="navigateToContributor()"
>
{{'admin.person.form.button.navigateToContributorPage' | translate}}
</button>
</div>
<div class="right-part">
......
......@@ -94,6 +94,10 @@ export class AdminPersonFormPresentational extends SharedAbstractFormPresentatio
navigateToInstitution(institution: Institution): void {
this.navigate([RoutesEnum.adminInstitutionDetail, institution.resId]);
}
navigateToContributor(): void {
this.navigate([RoutesEnum.contributorDetail, this.model.resId]);
}
}
class FormComponentFormDefinition extends BaseFormDefinition {
......
......@@ -546,6 +546,9 @@
}
},
"form": {
"button": {
"navigateToContributorPage": "See deposits"
},
"firstName": "First Name",
"institution": {
"navigateLinkPlaceholder": "See institution's details",
......
......@@ -546,6 +546,9 @@
}
},
"form": {
"button": {
"navigateToContributorPage": "See deposits"
},
"firstName": "First Name",
"institution": {
"navigateLinkPlaceholder": "See institution's details",
......
......@@ -546,6 +546,9 @@
}
},
"form": {
"button": {
"navigateToContributorPage": "Voir les dépôts"
},
"firstName": "Prénom",
"institution": {
"navigateLinkPlaceholder": "Voir le détail de l'organisme de financement'",
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment