-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: notify cosupervisors on decision (#102)
* feat: notify cosupervisors on decision * fix: show the application status * fix: tests
- Loading branch information
Showing
3 changed files
with
65 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
const cosupervisorApplicationDecisionHtmlTemplate = (variables) => { | ||
return ` | ||
<html> | ||
<body> | ||
<p>Dear ${variables.name},</p> | ||
<p>An application has been ${variables.decision} for the thesis proposal "${variables.thesis}" for which you are co-supervisor.</p> | ||
<p>Best regards,</p> | ||
<p>the Thesis Managment system</p> | ||
</body> | ||
</html> | ||
`; | ||
}; | ||
|
||
const cosupervisorApplicationDecisionTextTemplate = (variables) => { | ||
return `Dear ${variables.name},\nAn application has been ${variables.decision} for the thesis proposal "${variables.thesis}" for which you are co-supervisor.\nBest regards,\nthe Thesis Managment system`; | ||
}; | ||
|
||
exports.cosupervisorApplicationDecisionTemplate = (variables) => ({ | ||
html: cosupervisorApplicationDecisionHtmlTemplate(variables), | ||
text: cosupervisorApplicationDecisionTextTemplate(variables) | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,7 +36,7 @@ let proposal, start_request; | |
beforeEach(() => { | ||
proposal = { | ||
title: "Test title", | ||
co_supervisors: ["[email protected]", "[email protected]"], | ||
co_supervisors: ["[email protected]", "[email protected]"], | ||
groups: ["SOFTENG"], | ||
keywords: ["SOFTWARE ENGINEERING", "SOFTWARE DEVELOPMENT"], | ||
types: ["EXPERIMENTAL", "RESEARCH"], | ||
|