From b61d9574a59e16f69c4efe334e4b28b875e98ee9 Mon Sep 17 00:00:00 2001 From: kenneth-rayner Date: Wed, 16 Oct 2024 08:15:45 +0100 Subject: [PATCH] TGP-2632: Update CYA views, move warnings above tables --- app/views/CyaCreateRecordView.scala.html | 4 +++- app/views/CyaMaintainProfileView.scala.html | 19 +++++++++++-------- 2 files changed, 14 insertions(+), 9 deletions(-) diff --git a/app/views/CyaCreateRecordView.scala.html b/app/views/CyaCreateRecordView.scala.html index 7abfb4bc..d7c26a43 100644 --- a/app/views/CyaCreateRecordView.scala.html +++ b/app/views/CyaCreateRecordView.scala.html @@ -27,13 +27,15 @@ @layout(pageTitle = titleNoForm(messages("cyaCreateRecord.title"))) {

@messages("cyaCreateRecord.h1")

- @govukSummaryList(list) @govukWarningText(WarningText( iconFallbackText = Some(messages("cyaCreateRecord.warning")), content = Text(messages("cyaCreateRecord.warningText")) )) + @govukSummaryList(list) + + @formHelper(action = routes.CyaCreateRecordController.onSubmit()) { @govukButton(ButtonViewModel(messages("site.save.continue"))) } diff --git a/app/views/CyaMaintainProfileView.scala.html b/app/views/CyaMaintainProfileView.scala.html index 99fe4319..d559ac89 100644 --- a/app/views/CyaMaintainProfileView.scala.html +++ b/app/views/CyaMaintainProfileView.scala.html @@ -26,14 +26,7 @@ @layout(pageTitle = titleNoForm(messages(s"cyaMaintainProfile.title.$messageKey"))) {

@messages(s"cyaMaintainProfile.heading.$messageKey")

-

@messages("cyaMaintainProfile.h2")

- - @govukSummaryList(list)
@@ -42,7 +35,17 @@

@messages("cyaMaintainProfile.h2")

+

@messages("cyaMaintainProfile.h2")

+ + + + @govukSummaryList(list) + @formHelper(action = action) { @govukButton(ButtonViewModel(messages("site.save.continue"))) -} + } }