-
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.
Added dummy account homepage and pay in page (#41)
- Loading branch information
1 parent
a82fd1c
commit 03efd9d
Showing
6 changed files
with
100 additions
and
1 deletion.
There are no files selected for viewing
38 changes: 38 additions & 0 deletions
38
app/uk/gov/hmrc/helptosavetestadminfrontend/controllers/DummyPagesController.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,38 @@ | ||
/* | ||
* Copyright 2019 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.helptosavetestadminfrontend.controllers | ||
|
||
import com.google.inject.{Inject, Singleton} | ||
import play.api.i18n.{I18nSupport, MessagesApi} | ||
import play.api.mvc.{Action, AnyContent} | ||
import uk.gov.hmrc.helptosavetestadminfrontend.config.AppConfig | ||
import uk.gov.hmrc.play.bootstrap.controller.FrontendController | ||
import uk.gov.hmrc.helptosavetestadminfrontend.views | ||
|
||
@Singleton | ||
class DummyPagesController @Inject() (implicit val messagesApi: MessagesApi, appConfig: AppConfig) extends FrontendController with I18nSupport { | ||
|
||
def accountHomepage: Action[AnyContent] = Action { implicit request ⇒ | ||
Ok(views.html.account_homepage()) | ||
} | ||
|
||
|
||
def payIn: Action[AnyContent] = Action { implicit request ⇒ | ||
Ok(views.html.pay_in()) | ||
} | ||
|
||
} |
27 changes: 27 additions & 0 deletions
27
app/uk/gov/hmrc/helptosavetestadminfrontend/views/account_homepage.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,27 @@ | ||
@* | ||
* Copyright 2019 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. | ||
*@ | ||
|
||
@import uk.gov.hmrc.helptosavetestadminfrontend.config.AppConfig | ||
|
||
@()(implicit request: Request[_], messages: Messages, appConfig: AppConfig) | ||
|
||
@main_template(title = "Account Homepage", bodyClasses = None) { | ||
<h1>Account Homepage</h1> | ||
<p>This is a dummy page</p> | ||
|
||
<img class="img-thumbnail" src="https://cataas.com/cat/cute" alt="cool picture"> | ||
|
||
} |
27 changes: 27 additions & 0 deletions
27
app/uk/gov/hmrc/helptosavetestadminfrontend/views/pay_in.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,27 @@ | ||
@* | ||
* Copyright 2019 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. | ||
*@ | ||
|
||
@import uk.gov.hmrc.helptosavetestadminfrontend.config.AppConfig | ||
|
||
@()(implicit request: Request[_], messages: Messages, appConfig: AppConfig) | ||
|
||
@main_template(title = "Pay In", bodyClasses = None) { | ||
<h1>Pay In</h1> | ||
<p>This is a dummy page</p> | ||
|
||
<img class="img-thumbnail" src="https://cataas.com/cat/cute" alt="cool picture"> | ||
|
||
} |
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,4 @@ | ||
|
||
GET /account-homepage @uk.gov.hmrc.helptosavetestadminfrontend.controllers.DummyPagesController.accountHomepage | ||
|
||
GET /pay-in @uk.gov.hmrc.helptosavetestadminfrontend.controllers.DummyPagesController.payIn |