change dmpInvitationExisting User template

This commit is contained in:
amentis 2023-12-15 16:06:30 +02:00
parent a9eb2ff8a7
commit 653991a066
3 changed files with 19 additions and 1 deletions

View File

@ -729,6 +729,7 @@ public class DmpServiceImpl implements DmpService {
fieldInfoList.add(new FieldInfo("{reasonName}", DataType.String, this.queryFactory.query(UserQuery.class).ids(this.userScope.getUserIdSafe()).first().getName()));
fieldInfoList.add(new FieldInfo("{dmpname}", DataType.String, dmp.getLabel()));
fieldInfoList.add(new FieldInfo("{dmprole}", DataType.String, role.toString()));
fieldInfoList.add(new FieldInfo("{id}", DataType.String, dmp.getId().toString()));
data.setFields(fieldInfoList);
event.setData(jsonHandlingService.toJsonSafe(data));
eventHandler.handle(event);

View File

@ -76,7 +76,7 @@ notification:
optional: [ ]
body-path: classpath:notification_templates/dmpinvitationexistinguser/email/body.{language}.html
body-field-options:
mandatory: [ "{dmpname}", "{dmprole}", "{reasonName}" ]
mandatory: [ "{dmpname}", "{dmprole}", "{reasonName}", "{id}"]
optional:
- key: "{recipient}"
value:

View File

@ -262,6 +262,23 @@
<td>
<p>Dear {recipient},</p>
<p>{reasonName} just add you to collaborate to Data Management plan {dmpname} with role {dmprole}.</p>
<p>Click the button to redirect to {dmpname}.</p>
<table border="0" cellpadding="0" cellspacing="0" class="btn btn-primary">
<tbody>
<tr>
<td align="left">
<table border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td> <a href="{installation-url}/plans/edit/{id}" target="_blank">Join</a> </td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</table>