Skip to content

Commit 2e6417e

Browse files
author
OliZor
committed
HEEDLS-443 Add aria-labels to buttons in manage course page expandables
1 parent c632e67 commit 2e6417e

File tree

4 files changed

+5
-3
lines changed

4 files changed

+5
-3
lines changed

DigitalLearningSolutions.Web/Controllers/TrackingSystem/CourseSetup/ManageCourseController.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ EditLearningPathwayDefaultsViewModel model
8181
if (model.AutoRefresh)
8282
{
8383
// TODO in HEEDLS-442: Redirect to "Edit auto-refresh options" page
84+
return RedirectToAction("Index", new { customisationId = model.CustomisationId });
8485
}
8586

8687
var completeWithinMonthsInt =

DigitalLearningSolutions.Web/Views/TrackingSystem/CourseSetup/ManageCourse/_CourseDetailsExpandable.cshtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767

6868
</dl>
6969

70-
<a class="nhsuk-button nhsuk-u-margin-right-2" role="button" href="">
70+
<a class="nhsuk-button nhsuk-u-margin-right-2" role="button" href="" aria-label="Edit course details">
7171
Edit
7272
</a>
7373

DigitalLearningSolutions.Web/Views/TrackingSystem/CourseSetup/ManageCourse/_CourseOptionsExpandable.cshtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
</div>
4040
</dl>
4141

42-
<a class="nhsuk-button nhsuk-u-margin-right-2" role="button" href="">
42+
<a class="nhsuk-button nhsuk-u-margin-right-2" role="button" href="" aria-label="Edit course options">
4343
Edit
4444
</a>
4545

DigitalLearningSolutions.Web/Views/TrackingSystem/CourseSetup/ManageCourse/_LearningPathwayDefaultsExpandable.cshtml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,8 @@
7171
<a class="nhsuk-button nhsuk-u-margin-right-2" role="button"
7272
asp-controller="ManageCourse"
7373
asp-action="EditLearningPathwayDefaults"
74-
asp-route-customisationId="@Model.CustomisationId">
74+
asp-route-customisationId="@Model.CustomisationId"
75+
aria-label="Edit Learning Pathway defaults">
7576
Edit
7677
</a>
7778

0 commit comments

Comments
 (0)