-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #189 from hmrc/PODS-9186
PODS-9186: Non UK registration change
- Loading branch information
Showing
7 changed files
with
93 additions
and
4 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
44 changes: 44 additions & 0 deletions
44
app/controllers/individual/NonUKPractitionerController.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,44 @@ | ||
/* | ||
* Copyright 2024 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 controllers.individual | ||
|
||
import controllers.Retrievals | ||
import controllers.actions._ | ||
import play.api.i18n.{I18nSupport, MessagesApi} | ||
import play.api.libs.json.Json | ||
import play.api.mvc.{Action, AnyContent, MessagesControllerComponents} | ||
import renderer.Renderer | ||
import uk.gov.hmrc.play.bootstrap.frontend.controller.FrontendBaseController | ||
import utils.annotations.AuthMustHaveNoEnrolmentWithIV | ||
|
||
import javax.inject.Inject | ||
import scala.concurrent.ExecutionContext | ||
|
||
class NonUKPractitionerController @Inject()( | ||
override val messagesApi: MessagesApi, | ||
@AuthMustHaveNoEnrolmentWithIV authenticate: AuthAction, | ||
getData: DataRetrievalAction, | ||
val controllerComponents: MessagesControllerComponents, | ||
renderer: Renderer | ||
)(implicit ec: ExecutionContext) extends FrontendBaseController | ||
with I18nSupport with Retrievals { | ||
|
||
def onPageLoad: Action[AnyContent] = (authenticate andThen getData).async { | ||
implicit request => | ||
renderer.render(template = "individual/nonUKPractitioner.njk", Json.obj()).map(Ok(_)) | ||
} | ||
} |
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
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,38 @@ | ||
{% extends "includes/layout.njk" %} | ||
|
||
{% from "macros/title.njk" import title %} | ||
{% from "govuk/components/button/macro.njk" import govukButton %} | ||
{% from "govuk/components/inset-text/macro.njk" import govukInsetText %} | ||
|
||
|
||
{% block pageTitle %} | ||
{{ title(messages("nonUKPractitioner.title")) }} | ||
{% endblock %} | ||
|
||
{% block mainContent %} | ||
|
||
<div class="govuk-grid-row"> | ||
<div class="govuk-grid-column-two-thirds"> | ||
|
||
<h1 class="govuk-heading-xl"> | ||
{{ messages("nonUKPractitioner.heading") }} | ||
</h1> | ||
|
||
<p class="govuk-body"> | ||
{{ messages("nonUKPractitioner.p1") }} | ||
</p> | ||
|
||
<p class="govuk-body"> | ||
{{ messages("nonUKPractitioner.p2.1") }} | ||
<a href="mailto:{{ messages("nonUKPractitioner.p2.emailHref") }}"> | ||
{{ messages("nonUKPractitioner.p2.email") }} | ||
</a> | ||
{{ messages("nonUKPractitioner.p2.2") }} | ||
</p> | ||
|
||
</div> | ||
</div> | ||
|
||
|
||
|
||
{% endblock %} |
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