Skip to content

Commit

Permalink
Merge pull request #191 from ukhsa-collaboration/feat/OOC-4382
Browse files Browse the repository at this point in the history
OOC-4382: Add description & feedback link to phase banner
https://jira.collab.test-and-trace.nhs.uk/browse/OOC-4382
  • Loading branch information
masuk-kazi98 authored Jun 5, 2024
2 parents 4487362 + 42b8da0 commit afed112
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ export class DatePartsField extends FormComponent {
// @ts-ignore - eslint does not report this as an error, only tsc
getViewModel(formData: FormData, errors: FormSubmissionErrors) {
const viewModel = super.getViewModel(formData, errors);

viewModel.label!.classes = "govuk-fieldset__legend--s";
// Use the component collection to generate the subitems
const componentViewModels = this.children
.getViewModel(formData, errors)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ export class SelectionControlField extends ListFormComponent {
const { name, items } = this;
const options: any = this.options;
const viewModel: ViewModel = super.getViewModel(formData, errors);
viewModel.label!.classes = "govuk-fieldset__legend--s";

viewModel.fieldset = {
legend: viewModel.label,
Expand Down
18 changes: 15 additions & 3 deletions runner/src/server/views/summary.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,18 @@
{% from "partials/summary-detail.html" import summaryDetail %} {% from
"components/checkboxes/macro.njk" import govukCheckboxes %} {% extends
'layout.html' %} {% block content %}
{% from "partials/summary-detail.html" import summaryDetail %}
{% from "components/checkboxes/macro.njk" import govukCheckboxes %}
{% extends 'layout.html' %}

{% block beforeContent %}
{{ govukPhaseBanner({
tag: {
text: "Beta"
},
html: 'This is a new service – your <a class="govuk-link" href=" + feedbackLink + " target="_blank">feedback</a> will help us to improve
it.'
}) }}
{% endblock %}

{% block content %}
<div class="govuk-main-wrapper">
<div class="govuk-grid-row">
<div class="govuk-grid-column-two-thirds">
Expand Down

0 comments on commit afed112

Please sign in to comment.