Skip to content

Commit

Permalink
Merge pull request #505 from hmrc/TGP-2632/warning-text-placement
Browse files Browse the repository at this point in the history
TGP-2632: Update CYA views, move warnings above tables
  • Loading branch information
kenneth-rayner authored Oct 16, 2024
2 parents adf05ce + b61d957 commit 4ff66a9
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 9 deletions.
4 changes: 3 additions & 1 deletion app/views/CyaCreateRecordView.scala.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,15 @@
@layout(pageTitle = titleNoForm(messages("cyaCreateRecord.title"))) {

<h1 class="govuk-heading-l">@messages("cyaCreateRecord.h1")</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")))
}
Expand Down
19 changes: 11 additions & 8 deletions app/views/CyaMaintainProfileView.scala.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,7 @@
@layout(pageTitle = titleNoForm(messages(s"cyaMaintainProfile.title.$messageKey"))) {

<h1 class="govuk-heading-l">@messages(s"cyaMaintainProfile.heading.$messageKey")</h1>
<h2 class="govuk-heading-m">@messages("cyaMaintainProfile.h2")</h2>

<ul class="govuk-list govuk-list--bullet">
<li>@messages(s"cyaMaintainProfile.li1")</li>
<li>@messages(s"cyaMaintainProfile.li2")</li>
<li>@messages(s"cyaMaintainProfile.li3")</li>
</ul>
@govukSummaryList(list)
<div class="govuk-warning-text">
<span class="govuk-warning-text__icon" aria-hidden="true">!</span>
<strong class="govuk-warning-text__text">
Expand All @@ -42,7 +35,17 @@ <h2 class="govuk-heading-m">@messages("cyaMaintainProfile.h2")</h2>
</strong>
</div>

<h2 class="govuk-heading-m">@messages("cyaMaintainProfile.h2")</h2>

<ul class="govuk-list govuk-list--bullet">
<li>@messages(s"cyaMaintainProfile.li1")</li>
<li>@messages(s"cyaMaintainProfile.li2")</li>
<li>@messages(s"cyaMaintainProfile.li3")</li>
</ul>

@govukSummaryList(list)

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

0 comments on commit 4ff66a9

Please sign in to comment.