Skip to content

Commit

Permalink
Merge pull request #42 from hmrc/Content-Profile-Setup-Page
Browse files Browse the repository at this point in the history
Content Profile Setup Page
  • Loading branch information
besscerule authored May 13, 2024
2 parents 68c2245 + d5ac7ec commit 91ab30f
Show file tree
Hide file tree
Showing 4 changed files with 70 additions and 10 deletions.
16 changes: 16 additions & 0 deletions app/models/TraderProfile.scala
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* 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 models

import cats.data.{Ior, IorNec}
Expand Down
40 changes: 34 additions & 6 deletions app/views/ProfileSetupView.scala.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,42 @@

@()(implicit request: Request[_], messages: Messages)

@layout(pageTitle = titleNoForm(messages("profileSetup.title"))) {
@layout(pageTitle = titleNoForm(messages("profileSetup.title")), showBackLink = false) {

<h1 class="govuk-heading-xl">@messages("profileSetup.heading")</h1>
<h1 class="govuk-heading-xl">@messages("profileSetup.h1")</h1>

@formHelper(action = routes.ProfileSetupController.onSubmit()) {
<p class="govuk-body">@messages("profileSetup.intro")</p>

@govukButton(
ButtonViewModel(messages("site.continue"))
)
<h2 class="govuk-heading-m">@messages("profileSetup.ukims.h2")</h2>
<p class="govuk-body">@messages("profileSetup.p1")</p>
<p class="govuk-body">@messages("profileSetup.p2")</p>
<p class="govuk-body">
@messages("profileSetup.p3")
<a target="_self" href="https://www.gov.uk/guidance/apply-for-authorisation-for-the-uk-internal-market-scheme-if-you-bring-goods-into-northern-ireland" class="govuk-link" >@messages("profileSetup.p3.linkText")</a>.
</p>

<h2 class="govuk-heading-m">@messages("profileSetup.nirms.h2")</h2>
<p class="govuk-body">@messages("profileSetup.p4")</p>
<p class="govuk-body">@messages("profileSetup.p5")</p>
<p class="govuk-body">
@messages("profileSetup.p6")
<a target="_self" href="https://www.gov.uk/guidance/northern-ireland-retail-movement-scheme-how-to-register-and-seal-consignments" class="govuk-link" >@messages("profileSetup.p6.linkText")</a>.
</p>

<h2 class="govuk-heading-m">@messages("profileSetup.niphl.h2")</h2>
<p class="govuk-body">@messages("profileSetup.p7")</p>
<p class="govuk-body">@messages("profileSetup.p8")</p>
<p class="govuk-body">
@messages("profileSetup.p9")
<a target="_self" href="https://www.gov.uk/guidance/moving-plants-from-great-britain-to-northern-ireland" class="govuk-link" >@messages("profileSetup.p9.linkText")</a>.
</p>

@formHelper(action = routes.ProfileSetupController.onSubmit()) {
@govukButton(ButtonViewModel(messages("site.continue")))
}
}





4 changes: 2 additions & 2 deletions conf/app.routes
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ POST /nirmsNumber controllers.NirmsNumberController
GET /changeNirmsNumber controllers.NirmsNumberController.onPageLoad(mode: Mode = CheckMode)
POST /changeNirmsNumber controllers.NirmsNumberController.onSubmit(mode: Mode = CheckMode)

GET /profileSetup controllers.ProfileSetupController.onPageLoad()
POST /profileSetup controllers.ProfileSetupController.onSubmit()
GET /profile-setup controllers.ProfileSetupController.onPageLoad()
POST /profile-setup controllers.ProfileSetupController.onSubmit()

GET /ukimsNumber controllers.UkimsNumberController.onPageLoad(mode: Mode = NormalMode)
POST /ukimsNumber controllers.UkimsNumberController.onSubmit(mode: Mode = NormalMode)
Expand Down
20 changes: 18 additions & 2 deletions conf/messages.en
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,24 @@ nirmsNumber.error.required = Enter nirmsNumber
nirmsNumber.error.length = NirmsNumber must be 100 characters or less
nirmsNumber.change.hidden = NirmsNumber

profileSetup.title = profileSetup
profileSetup.heading = profileSetup
profileSetup.title = Setting up your profile
profileSetup.h1 = Setting up your profile
profileSetup.intro = We’re going to ask you some questions, then for some information depending on your answers.
profileSetup.ukims.h2 = UK Internal Market Scheme (UKIMS)
profileSetup.p1 = The trader who is registering for a Trader Goods Profile must be UKIMS registered. You’ll need your UKIMS numbers to set up your profile.
profileSetup.p2 = If you’ve applied to UKIMS, HMRC will have sent you a letter with your UKIMS authorisation number.
profileSetup.p3 = If you are not UKIMS registered, you can check here to find out
profileSetup.p3.linkText = who can apply to UKIMS
profileSetup.nirms.h2 = Northern Ireland Retail Movement Scheme (NIRMS)
profileSetup.p4 = Businesses responsible for selling or facilitating the movement of food for final consumption in Northern Ireland are eligible to benefit from the NIRMS arrangements.
profileSetup.p5 = NIRMS registered traders can add their NIRMS authorisation to their Trader Goods Profile. Doing this will help categorise goods that are subject to NIRMS.
profileSetup.p6 = NIRMS authorisation is optional for Trader Goods Profile. If you aren’t sure if you should be NIRMS authorised, find out about
profileSetup.p6.linkText = the Northern Ireland Retail Movement Scheme
profileSetup.niphl.h2 = Northern Ireland plant health label (NIPHL)
profileSetup.p7 = The NIPHL scheme is a way for growers and traders in Great Britain (England, Scotland and Wales) to move certain products to Northern Ireland.
profileSetup.p8 = NIPHL registered traders can add their NIPHL authorisation to their Trader Goods Profile. Doing this will help categorise goods that are subject to NIPHL.
profileSetup.p9 = NIPHL authorisation is optional for Trader Goods Profile. If you aren’t sure if you should be NIPHL authorised, find out about
profileSetup.p9.linkText = Moving plants from Great Britain to Northern Ireland

ukimsNumber.title = ukimsNumber
ukimsNumber.heading = ukimsNumber
Expand Down

0 comments on commit 91ab30f

Please sign in to comment.