-
Notifications
You must be signed in to change notification settings - Fork 211
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DC-6712 Trader Goods Profile Email notification on file available to …
…download (#1185) * Added email * linting * linting again
- Loading branch information
1 parent
9bf1edd
commit 44859e9
Showing
9 changed files
with
142 additions
and
2 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
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
31 changes: 31 additions & 0 deletions
31
app/uk/gov/hmrc/hmrcemailrenderer/templates/tgp/DownloadRecordNotification.scala.html
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,31 @@ | ||
@* | ||
* Copyright 2023 HM Revenue & Customs | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*@ | ||
|
||
@(params: Map[String, Any])@uk.gov.hmrc.hmrcemailrenderer.templates.helpers.html.template_main(params, "Your Trader Goods Profile (TGP) records file is ready to download", showHeading1 = false) { | ||
<p style="margin: 0 0 30px; font-size: 19px;">Dear customer</p> | ||
<p style="margin: 0 0 30px; font-size: 19px;">Your records file that you asked for is ready to download.</p> | ||
<p style="margin: 0 0 30px; font-size: 19px;">To get your file:</p> | ||
<ol> | ||
<li style="margin: 0 0 30px; font-size: 19px;">Go to GOV.UK</li> | ||
<li style="margin: 0 0 30px; font-size: 19px;">Search for 'Trader Goods Profile'</li> | ||
<li style="margin: 0 0 30px; font-size: 19px;">Log in to your profile</li> | ||
<li style="margin: 0 0 30px; font-size: 19px;">Select the new notification on your homepage.</li> | ||
</ol> | ||
<p style="margin: 0 0 30px; font-size: 19px;">The file will be available until @params("expiredDate").</p> | ||
<p style="margin: 0 0 30px; font-size: 19px;">To get the file again, you can find a link on your goods records page.</p> | ||
<p style="margin: 0 0 30px; font-size: 19px;">From the Trader Goods Profile team</p> | ||
|
||
} |
11 changes: 11 additions & 0 deletions
11
app/uk/gov/hmrc/hmrcemailrenderer/templates/tgp/DownloadRecordNotification.scala.txt
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,11 @@ | ||
@(params: Map[String, Any]) | ||
Dear customer | ||
Your records file that you asked for is ready to download. | ||
To get your file: | ||
1. Go to GOV.UK | ||
2. Search for 'Trader Goods Profile' | ||
3. Log in to your profile | ||
4. Select the new notification on your homepage. | ||
The file will be available until @params("expiredDate"). | ||
To get the file again, you can find a link on your goods records page. | ||
From the Trader Goods Profile team |
30 changes: 30 additions & 0 deletions
30
app/uk/gov/hmrc/hmrcemailrenderer/templates/tgp/DownloadRecordNotification_cy.scala.html
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,30 @@ | ||
@* | ||
* Copyright 2023 HM Revenue & Customs | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*@ | ||
|
||
@(params: Map[String, Any])@uk.gov.hmrc.hmrcemailrenderer.templates.helpers.html.template_main(params, "Mae’r ffeil sy’n cynnwys cofnodion eich Proffil Nwyddau Masnachwr (TGP) yn barod i’w lawrlwytho", showHeading1 = false) { | ||
<p style="margin: 0 0 30px; font-size: 19px;">Annwyl gwsmer</p> | ||
<p style="margin: 0 0 30px; font-size: 19px;">Mae’r ffeil y gofynnoch amdano, sy’n cynnwys eich cofnodion TGP, yn barod i’w lawrlwytho.</p> | ||
<p style="margin: 0 0 30px; font-size: 19px;">Er mwyn cael mynediad at eich ffeil:</p> | ||
<ol> | ||
<li style="margin: 0 0 30px; font-size: 19px;">Ewch i GOV.UK</li> | ||
<li style="margin: 0 0 30px; font-size: 19px;">Chwiliwch am ‘Trader Goods Profile’</li> | ||
<li style="margin: 0 0 30px; font-size: 19px;">Mewngofnodwch i’ch proffil</li> | ||
<li style="margin: 0 0 30px; font-size: 19px;">Dewiswch yr hysbysiad newydd sy’n ymddangos ar eich hafan.</li> | ||
</ol> | ||
<p style="margin: 0 0 30px; font-size: 19px;">Bydd y ffeil ar gael ta @params("expiredDate").</p> | ||
<p style="margin: 0 0 30px; font-size: 19px;">I gael mynediad at y ffeil eto, gweler y cysylltiad sydd ar eich tudalen Cofnodion Nwyddau.</p> | ||
<p style="margin: 0 0 30px; font-size: 19px;">Y Tîm Proffil Nwyddau Masnachwyr</p> | ||
} |
11 changes: 11 additions & 0 deletions
11
app/uk/gov/hmrc/hmrcemailrenderer/templates/tgp/DownloadRecordNotification_cy.scala.txt
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,11 @@ | ||
@(params: Map[String, Any]) | ||
Annwyl gwsmer | ||
Mae’r ffeil y gofynnoch amdano, sy’n cynnwys eich cofnodion TGP, yn barod i’w lawrlwytho. | ||
Er mwyn cael mynediad at eich ffeil: | ||
1. Ewch i GOV.UK | ||
2. Chwiliwch am ‘Trader Goods Profile’ | ||
3. Mewngofnodwch i’ch proffil | ||
4. Dewiswch yr hysbysiad newydd sy’n ymddangos ar eich hafan. | ||
Bydd y ffeil ar gael ta @params("expiredDate"). | ||
I gael mynediad at y ffeil eto, gweler y cysylltiad sydd ar eich tudalen Cofnodion Nwyddau. | ||
Y Tîm Proffil Nwyddau Masnachwyr |
45 changes: 45 additions & 0 deletions
45
app/uk/gov/hmrc/hmrcemailrenderer/templates/tgp/TgpTemplates.scala
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,45 @@ | ||
/* | ||
* Copyright 2023 HM Revenue & Customs | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
package uk.gov.hmrc.hmrcemailrenderer.templates.tgp | ||
|
||
import uk.gov.hmrc.hmrcemailrenderer.domain.{ MessagePriority, MessageTemplate } | ||
import uk.gov.hmrc.hmrcemailrenderer.templates.FromAddress | ||
import uk.gov.hmrc.hmrcemailrenderer.templates.ServiceIdentifier.Tgp | ||
|
||
object TgpTemplates { | ||
|
||
val templates = Seq( | ||
MessageTemplate.create( | ||
templateId = "tgp_download_record_notification_email", | ||
fromAddress = FromAddress.noReply("Do not reply"), | ||
service = Tgp, | ||
subject = "Your TGP records file is ready to download", | ||
plainTemplate = txt.DownloadRecordNotification.f, | ||
htmlTemplate = html.DownloadRecordNotification.f, | ||
priority = Some(MessagePriority.Urgent) | ||
), | ||
MessageTemplate.create( | ||
templateId = "tgp_download_record_notification_email_cy", | ||
fromAddress = FromAddress.noReply("Do not reply"), | ||
service = Tgp, | ||
subject = "Mae’r ffeil sy’n cynnwys cofnodion eich TGP yn barod i’w lawrlwytho", | ||
plainTemplate = txt.DownloadRecordNotification_cy.f, | ||
htmlTemplate = html.DownloadRecordNotification_cy.f, | ||
priority = Some(MessagePriority.Urgent) | ||
) | ||
) | ||
} |
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