Skip to content

Commit

Permalink
HIPP-1378: Add HIPP user removed from team email template
Browse files Browse the repository at this point in the history
  • Loading branch information
victorarbuesmallada committed Aug 2, 2024
1 parent 103c623 commit d5423e8
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/preview/TemplateParams.scala
Original file line number Diff line number Diff line change
Expand Up @@ -1661,6 +1661,9 @@ object TemplateParams2 {
"otherteamname" -> "New API Team",
"apispecificationname" -> "API Name"
),
"hipp_remove_member_from_team_member" -> Map(
"teamname" -> "Test-Hipp-Team"
),
"chargeable_return_submit" -> Map(
"first_name" -> "FirstName",
"last_name" -> "SecondName",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,15 @@ object HippTemplates {
plainTemplate = txt.ApiOwnershipRemoved.f,
htmlTemplate = html.ApiOwnershipRemoved.f,
priority = Some(MessagePriority.Urgent)
),
MessageTemplate.create(
templateId = "hipp_remove_member_from_team_member",
fromAddress = FromAddress.noReply("Do not reply"),
service = Hipp,
subject = "You have been removed from a team on the Integration Hub",
plainTemplate = txt.RemoveMemberFromTeam.f,
htmlTemplate = html.RemoveMemberFromTeam.f,
priority = Some(MessagePriority.Urgent)
)
)
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
@*
* 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, "You have been removed from a team on the Integration Hub") {
<p style="margin: 0 0 30px; font-size: 19px;">You have been removed as a team member from @params("teamname") within the Integration Hub.</p>
<p style="margin: 0 0 30px; font-size: 19px;">From HMRC The Integration Hub</p>
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
@(params: Map[String, Any])
You have been removed as a team member from @{params("teamname")} within the Integration Hub.
From HMRC The Integration Hub
Original file line number Diff line number Diff line change
Expand Up @@ -535,6 +535,7 @@ class TemplateLocatorSpec extends AnyWordSpecLike with should.Matchers with Opti
"hipp_remove_team_member_from_app_email",
"hipp_api_ownership_added_email",
"hipp_api_ownership_removed_email",
"hipp_remove_member_from_team_member",
"ho10_confirmation_submission",
"ho10_confirmation_submission_cy",
"ho5_code",
Expand Down

0 comments on commit d5423e8

Please sign in to comment.