Skip to content
Snippets Groups Projects
Commit 8c6e3c1c authored by Bastien DUMONT's avatar Bastien DUMONT :angel:
Browse files

water alert

parent 773dd8dd
No related branches found
No related tags found
1 merge request!598Feat/us754 water alert consumption
...@@ -7,16 +7,18 @@ ...@@ -7,16 +7,18 @@
{{#> base/header}} {{#> base/header}}
{{/base/header}} {{/base/header}}
<mj-section background-color="#121212"> <mj-section background-color="#121212">
<mj-column width="60%" vertical-align="middle"> <mj-column width="60%" vertical-align="middle">
<mj-text color="white" font-weight="900" font-size="24px"> <mj-text color="white" font-weight="900" font-size="24px">
Bonjour {{username}}, Bonjour {{username}},
</mj-text> </mj-text>
<mj-text color="white" font-weight="400" font-size="18px"> <mj-text color="white" font-weight="400" font-size="18px">
La limite de consommation d'eau journalière que vous avez fixée à {{userLimit}} L a été dépassée le {{limitDate}}.<br /> La limite de consommation d'eau journalière que vous avez fixée à {{userLimit}} L a été dépassée.<br />
Pour comprendre ce qu’il s’est passé, rendez-vous dans Ecolyo. Le <span style="color: #E3B82A; font-weight: 700;">{{limitDate}}</span>, vous avez consommé <span style="color: #3a98ec; font-weight:700;">{{consumption}}</span>.<br />
</mj-text> </mj-text>
<mj-text color="white" font-weight="400" font-size="18px">
Pour comprendre ce qu’il s’est passé, rendez-vous dans Ecolyo.
</mj-text>
</mj-column> </mj-column>
<mj-column width="40%" vertical-align="middle"> <mj-column width="40%" vertical-align="middle">
<mj-image src="{{baseUrl}}/assets/baignoire.png" width="132px" align="center"></mj-image> <mj-image src="{{baseUrl}}/assets/baignoire.png" width="132px" align="center"></mj-image>
......
...@@ -89,6 +89,7 @@ const consumptionAlert = async ({ client }: ConsumptionAlertProps) => { ...@@ -89,6 +89,7 @@ const consumptionAlert = async ({ client }: ConsumptionAlertProps) => {
unsubscribeUrl: `${appLink}/#/options`, unsubscribeUrl: `${appLink}/#/options`,
userLimit: userProfil.waterDailyConsumptionLimit, userLimit: userProfil.waterDailyConsumptionLimit,
limitDate: `${alertDay.day} ${getPreviousMonthName(alertDay)}`, limitDate: `${alertDay.day} ${getPreviousMonthName(alertDay)}`,
consumption: lastDayValue,
}) })
const mailData = { const mailData = {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment