update text of invitation emails (monitor) and add stakeholder entities as enum
This commit is contained in:
parent
5a107677fb
commit
73dae143f3
|
@ -1,4 +1,5 @@
|
||||||
import {Option} from "../../sharedComponents/input/input.component";
|
import {Option} from "../../sharedComponents/input/input.component";
|
||||||
|
import {StakeholderEntities} from "../../monitor/entities/stakeholder";
|
||||||
|
|
||||||
export class PortalUtils{
|
export class PortalUtils{
|
||||||
|
|
||||||
|
@ -7,10 +8,10 @@ export class PortalUtils{
|
||||||
{value: 'connect', label: 'Connect portal'},
|
{value: 'connect', label: 'Connect portal'},
|
||||||
{value: 'monitor', label: 'Monitor portal'},
|
{value: 'monitor', label: 'Monitor portal'},
|
||||||
{value: 'community', label: 'Community Gateway'},
|
{value: 'community', label: 'Community Gateway'},
|
||||||
{value: 'funder', label: 'Funder Dashboard'},
|
{value: 'funder', label: StakeholderEntities.FUNDER + ' Dashboard'},
|
||||||
{value: 'ri', label: 'Research Initiative Dashboard'},
|
{value: 'ri', label: StakeholderEntities.RI + ' Dashboard'},
|
||||||
{value: 'organization', label: 'Institution Dashboard'},
|
{value: 'organization', label: StakeholderEntities.ORGANIZATION + ' Dashboard'},
|
||||||
{value: 'project', label: 'Project Dashboard'}
|
{value: 'project', label: StakeholderEntities.PROJECT + ' Dashboard'}
|
||||||
];
|
];
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -285,13 +285,13 @@ export class IndicatorFilterUtils{
|
||||||
export enum StakeholderEntities {
|
export enum StakeholderEntities {
|
||||||
STAKEHOLDER = 'Dashboard',
|
STAKEHOLDER = 'Dashboard',
|
||||||
FUNDER = 'Funder',
|
FUNDER = 'Funder',
|
||||||
RI = 'Research initiative',
|
RI = 'Research Initiative',
|
||||||
ORGANIZATION = 'Research institution',
|
ORGANIZATION = 'Research Institution',
|
||||||
PROJECT = 'Project',
|
PROJECT = 'Project',
|
||||||
|
|
||||||
STAKEHOLDERS = 'Dashboards',
|
STAKEHOLDERS = 'Dashboards',
|
||||||
FUNDERS = 'Funders',
|
FUNDERS = 'Funders',
|
||||||
RIS = 'Research initiatives',
|
RIS = 'Research Initiatives',
|
||||||
ORGANIZATIONS = 'Research institutions',
|
ORGANIZATIONS = 'Research Institutions',
|
||||||
PROJECTS = 'Projects'
|
PROJECTS = 'Projects'
|
||||||
}
|
}
|
||||||
|
|
|
@ -227,10 +227,12 @@ export class Composer {
|
||||||
}
|
}
|
||||||
|
|
||||||
public static composeMessageForMonitorDashboard(name: string, role: "manager" | "member", user: string = null, invitation: any = null) {
|
public static composeMessageForMonitorDashboard(name: string, role: "manager" | "member", user: string = null, invitation: any = null) {
|
||||||
|
let pdppLink = 'http://catalogue.openaire.eu/files/Personal%20Data%20Protection%20Policy%20for%20OpenAIRE%20Services%20April%202022.pdf';
|
||||||
let message = '<p>Dear ((__user__)),</p>' +
|
let message = '<p>Dear ((__user__)),</p>' +
|
||||||
'<p>You have been invited to be a ' + role +' of the OpenAIRE Monitor Dashboard for the ' + name + '.</p>' +
|
'<p>You have been invited to be a ' + role +' of the OpenAIRE Monitor Dashboard for the ' + name + '.</p>' +
|
||||||
'<p>Click <a href="((__link__))" target="_blank">this URL</a> and use the verification code below to accept the invitation.</p>' +
|
'<p>Click <a href="((__link__))" target="_blank">this URL</a> and use the verification code below to accept the invitation.</p>' +
|
||||||
'<p>The verification code is <b>((__code__))</b>.</p>' +
|
'<p>The verification code is <b>((__code__))</b>.</p>' +
|
||||||
|
'<p>By logging in and using the service you accept and agree to the <a href="' + pdppLink + '" target="_blank">OpenAIRE personal data protection policy</a>.</p>' +
|
||||||
(role === "manager"?
|
(role === "manager"?
|
||||||
'<p>As a manager of the OpenAIRE Monitor Dashboard, you will have access to the administration part of the dashboard, ' +
|
'<p>As a manager of the OpenAIRE Monitor Dashboard, you will have access to the administration part of the dashboard, ' +
|
||||||
'where you will be able to customize and manage the profile of the ' + name + '.</p>':
|
'where you will be able to customize and manage the profile of the ' + name + '.</p>':
|
||||||
|
|
Loading…
Reference in New Issue