Skip to content

Commit 4bd1f4b

Browse files
authored
Merge pull request #3196 from TechnologyEnhancedLearning/Develop/Fixes/TD-5390-SolvedValidationIssuesOnRadioButtonAndSummary
TD-5390 Solved validation issues on radio button and summary
2 parents e4d180a + 7c2a98a commit 4bd1f4b

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

DigitalLearningSolutions.Web/Views/Support/RequestSupportTicket/RequestSummary.cshtml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
<div class="nhsuk-u-reading-width">
3030
<h1 class="nhsuk-heading-xl">@Model.RequestType</h1>
3131
<form class="nhsuk-u-margin-bottom-3" method="post" asp-action="SetRequestSummary" asp-all-route-data="@cancelLinkData">
32-
<vc:text-input asp-for="RequestSubject"
32+
<vc:text-input asp-for="RequestSubject"
3333
label="Enter a summary of your problem or request"
3434
populate-with-current-value="true"
3535
type="text"
@@ -38,15 +38,17 @@
3838
autocomplete="given-name"
3939
css-class=""
4040
required="true" />
41+
<nhs-form-group nhs-validation-for="RequestDescription">
4142
<vc:text-area asp-for="RequestDescription"
4243
label="Describe your problem or request"
4344
populate-with-current-value="true"
4445
rows="5"
4546
spell-check="false"
4647
hint-text="If you are reporting a problem, please tell us exactly where it occurs and steps to recreate it. If you need to add screenshots, you will be able to do this in the next step."
47-
css-class="html-editor"
48-
character-count="null" />
49-
48+
css-class=""
49+
character-count="null">
50+
</vc:text-area>
51+
</nhs-form-group>
5052
<button class="nhsuk-button" type="submit">Next</button>
5153
</form>
5254

DigitalLearningSolutions.Web/Views/Support/RequestSupportTicket/TypeOfRequest.cshtml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
<div id="form-group">
3030
<form method="post" asp-route-ResponseTypes="@Model.RequestTypes" asp-action="setRequestType" asp-all-route-data="@cancelLinkData">
3131
<div>
32+
<nhs-form-group nhs-validation-for="Id">
3233
<fieldset class="nhsuk-fieldset">
3334
<legend class="nhsuk-fieldset__legend nhsuk-fieldset__legend--l">
3435
<h1 class="nhsuk-fieldset__heading">
@@ -54,7 +55,8 @@
5455
seperator = seperator + 1;
5556
}
5657
</div>
57-
</fieldset>
58+
</fieldset>
59+
</nhs-form-group>
5860
<button class="nhsuk-button nhsuk-u-margin-top-6" id="save-button" type="submit">
5961
Next
6062
</button>

0 commit comments

Comments
 (0)