diff --git a/src/Employer/Employer.Web/Controllers/Part1/TitleController.cs b/src/Employer/Employer.Web/Controllers/Part1/TitleController.cs index 0111425873..070bddf9ee 100644 --- a/src/Employer/Employer.Web/Controllers/Part1/TitleController.cs +++ b/src/Employer/Employer.Web/Controllers/Part1/TitleController.cs @@ -98,20 +98,17 @@ private async Task UpdateTextAndLinks(TitleViewModel vm) if(!string.IsNullOrWhiteSpace(vm.ReferredProgrammeId)) { var training = await _orchestrator.GetProgramme(vm.ReferredProgrammeId); - vm.TrainingTitle = training.Title + ", Level: " + training.EducationLevelNumber; - vm.BackLinkText = "Back to your saved favourites"; - vm.BackLinkRoute = GenerateEmployerFavouriteUrl(vm); + vm.TrainingTitle = training.Title + ", Level: " + training.EducationLevelNumber; + vm.CancelLinkRoute = GenerateEmployerFavouriteUrl(vm); } else - { - vm.BackLinkText = "Return to home"; - vm.BackLinkRoute = Url.RouteUrl(RouteNames.Dashboard_Account_Home); + { + vm.CancelLinkRoute = Url.RouteUrl(RouteNames.Dashboard_Account_Home); } } else - { - vm.BackLinkText = "Back"; - vm.BackLinkRoute = Url.RouteUrl(vm.BackLink); + { + vm.CancelLinkRoute = Url.RouteUrl(vm.CancelLink); } } diff --git a/src/Employer/Employer.Web/ViewModels/Part1/Title/TitleViewModel.cs b/src/Employer/Employer.Web/ViewModels/Part1/Title/TitleViewModel.cs index dc8b97d973..5413883f6e 100644 --- a/src/Employer/Employer.Web/ViewModels/Part1/Title/TitleViewModel.cs +++ b/src/Employer/Employer.Web/ViewModels/Part1/Title/TitleViewModel.cs @@ -19,18 +19,14 @@ public class TitleViewModel public string FormPostRouteName => VacancyId.HasValue ? RouteNames.Title_Post : RouteNames.CreateVacancy_Post; public PartOnePageInfoViewModel PageInfo { get; set; } public bool HasCloneableVacancies { get; set; } - public string BackLink => - HasCloneableVacancies ? RouteNames.Vacancies_Get : RouteNames.Dashboard_Get; - - public string BackLinkText { get; set; } - public string BackLinkRoute { get; set; } + public string CancelLink => HasCloneableVacancies ? RouteNames.Vacancies_Get : RouteNames.Dashboard_Get; + public string CancelLinkRoute { get; set; } public bool ReferredFromMa { get; set; } public string ReferredUkprn { get; set; } public string ReferredProgrammeId { get; set; } public bool ReferredFromSavedFavourites => ReferredFromMa & (!string.IsNullOrEmpty(ReferredUkprn) || !string.IsNullOrEmpty(ReferredProgrammeId)); - public string TrainingTitle { get; set; } } } diff --git a/src/Employer/Employer.Web/Views/Part1/Title/Title.cshtml b/src/Employer/Employer.Web/Views/Part1/Title/Title.cshtml index 159cdc3b4e..cad45b6f46 100644 --- a/src/Employer/Employer.Web/Views/Part1/Title/Title.cshtml +++ b/src/Employer/Employer.Web/Views/Part1/Title/Title.cshtml @@ -1,19 +1,18 @@ @using Esfa.Recruit.Shared.Web.Mappers @model Esfa.Recruit.Employer.Web.ViewModels.Part1.Title.TitleViewModel @inject ManageApprenticeshipsLinkHelper _externalLinksHelper; -@{ +@{ ViewBag.Vpv = "/recruitment/employer/page-part1-title"; ViewBag.ZenDeskLabel = "recruit-what-do-you-want-to-call-this-vacancy"; } -
\ No newline at end of file +