Skip to content

Commit

Permalink
Merge pull request #172 from SkillsFundingAgency/MF-337_BackLinkBug
Browse files Browse the repository at this point in the history
MF-337 MF-328
  • Loading branch information
SijiOdun authored Oct 28, 2019
2 parents 9a439de + 1088b02 commit b9803c8
Show file tree
Hide file tree
Showing 19 changed files with 66 additions and 51 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@model CourseGuidanceViewModel
@{
ViewData["Title"] = "Reservations - Select Course Guidance";
ViewData["Title"] = "You must select a course to reserve apprenticeship funding";
}


Expand Down
Original file line number Diff line number Diff line change
@@ -1,44 +1,53 @@
@using SFA.DAS.Reservations.Web.Infrastructure
@using SFA.DAS.Reservations.Web.Infrastructure
@model FundingRestrictionNotificationViewModel

<main class="govuk-main-wrapper " id="main-content" role="main">
@if (!string.IsNullOrEmpty(Model.BackLink))
{
if (Model.BackLink.StartsWith("http"))
{
<a href="@Model.BackLink" class="govuk-back-link">Back</a>
}
else
{
<a asp-route="@Model.BackLink" class="govuk-back-link">Back</a>
}
@{
ViewData["Title"] = "Upcoming change to government-funded training";
}

@if (!string.IsNullOrEmpty(Model.BackLink))
{
if (Model.BackLink.StartsWith("http"))
{
<a href="@Model.BackLink" class="govuk-back-link">Back</a>
}
else
{
<a asp-route="@Model.BackLink" class="govuk-back-link">Back</a>
}

}

<main class="govuk-main-wrapper " id="main-content" role="main">

<div class="govuk-grid-row">
<div class="govuk-grid-column-two-thirds">
<div class="das-panel das-panel--featured">
<h1 class="das-panel__heading">
Upcoming change to government-funded training
</h1>
<p>Government funding for apprenticeship training will be paused on @Model.RestrictionStartDate.ToString("d MMMM yyyy").
You must reserve funding for your training before this date.</p>
<p>
Government funding for apprenticeship training will be paused on @Model.RestrictionStartDate.ToString("d MMMM yyyy").
You must reserve funding for your training before this date.
</p>
<p>This change will not affect funding reserved before @Model.RestrictionStartDate.ToString("d MMMM yyyy")</p>

<form asp-route="@RouteNames.EmployerSaveRuleNotificationChoice">
<input type="hidden" name="RuleId" value="@Model.RuleId" />
<input type="hidden" name="TypeOfRule" value="@Model.TypeOfRule" />
<button type="submit" class="govuk-button das-button--inverted das-panel__button">
Continue
</button>

<p>
<div class="govuk-checkboxes">
<div class="govuk-checkboxes__item">
<input type="checkbox" class="govuk-checkboxes__input" id="markAsReadCheckbox" name="markRuleAsRead" value="true"/>
<label class="govuk-checkboxes__label" for="markAsReadCheckbox">Do not show this message again</label>
<div>
<div class="govuk-checkboxes">
<div class="govuk-checkboxes__item">
<input type="checkbox" class="govuk-checkboxes__input" id="markAsReadCheckbox" name="markRuleAsRead" value="true" />
<label class="govuk-checkboxes__label" for="markAsReadCheckbox">Do not show this message again</label>
</div>
</div>
</div>
</div>
</p>
</form>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
@model SFA.DAS.Reservations.Web.Models.EmployerStartViewModel

@{
ViewData["Title"] = "Reservations";
ViewData["Title"] = "Reserve funding to train and assess an apprentice";
}

<a asp-route="@RouteNames.EmployerManage" class="govuk-back-link">Back</a>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
@using SFA.DAS.Reservations.Web.Infrastructure
@model EmployerSelectCourseViewModel
@{
ViewData["Title"] = "Reservations - Select Course";
ViewData["Title"] = "Select apprenticeship training course";
}

@if (string.IsNullOrEmpty(Model.CohortReference) && !Model.IsEmptyCohortFromSelect)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
@using SFA.DAS.Reservations.Web.Infrastructure
@model SelectLegalEntityViewModel
@{
ViewData["Title"] = "Reservations - Select Organisation";
ViewData["Title"] = "Choose which organisation you’ll be reserving funding for";

var accountLegalEntityPublicHashedId = Model.LegalEntities.FirstOrDefault()?.AccountLegalEntityPublicHashedId;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
@model ManageViewModel

@{
ViewData["Title"] = "Reservations";
ViewData["Title"] = "Manage existing funding reservations or create new reservations";
}

@if (!Model.Reservations.Any())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
@using SFA.DAS.Reservations.Web.Infrastructure
@model ManageViewModel
@{
ViewData["Title"] = "Reservations";
ViewData["Title"] = "Manage existing funding reservations or create new reservations";
}

@if (!Model.Reservations.Any())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@


@{
ViewBag.Title = "Choose Employer";
ViewBag.Title = "Choose which employer you’ll be reserving funding for";
var routeData = new Dictionary<string, string>
{
{"UkPrn",ViewContext.RouteData.Values["ukPrn"].ToString()}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
@using SFA.DAS.Reservations.Web.Infrastructure
@model ConfirmEmployerViewModel
@{
ViewBag.Title = "Confirm Employer";
ViewBag.Title = "Confirm the employer you’ll be reserving funding for";
}

<a asp-route="@RouteNames.ProviderChooseEmployer" class="govuk-back-link">Back</a>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,18 +1,23 @@
@using SFA.DAS.Reservations.Web.Infrastructure
@using SFA.DAS.Reservations.Web.Infrastructure
@model FundingRestrictionNotificationViewModel

<main class="govuk-main-wrapper " id="main-content" role="main">
@if (!string.IsNullOrEmpty(Model.BackLink))
@{
ViewData["Title"] = "Upcoming change to government-funded training";
}

@if (!string.IsNullOrEmpty(Model.BackLink))
{
if (Model.BackLink.StartsWith("http"))
{
<a href="@Model.BackLink" class="govuk-back-link">Back</a>
}
else
{
if (Model.BackLink.StartsWith("http"))
{
<a href="@Model.BackLink" class="govuk-back-link">Back</a>
}
else
{
<a asp-route="@Model.BackLink" class="govuk-back-link">Back</a>
}
<a asp-route="@Model.BackLink" class="govuk-back-link">Back</a>
}
}

<main class="govuk-main-wrapper " id="main-content" role="main">

<div class="govuk-grid-row">
<div class="govuk-grid-column-two-thirds">
Expand All @@ -34,11 +39,11 @@
<button type="submit" class="govuk-button das-button--inverted das-panel__button">
Continue
</button>

<p>
<div class="govuk-checkboxes">
<div class="govuk-checkboxes__item">
<input type="checkbox" class="govuk-checkboxes__input" id="markAsReadCheckbox" name="markRuleAsRead" value="true"/>
<input type="checkbox" class="govuk-checkboxes__input" id="markAsReadCheckbox" name="markRuleAsRead" value="true" />
<label class="govuk-checkboxes__label" for="markAsReadCheckbox">Do not show this message again</label>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
@using SFA.DAS.Reservations.Web.Infrastructure
@model ProviderStartViewModel
@{
ViewData["Title"] = "Reservations";
ViewData["Title"] = "Reserve funding for non-levy employers";
}

@if (Model.IsFromManage)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
@using SFA.DAS.Reservations.Web.Extensions
@model ApprenticeshipTrainingViewModel
@{
ViewData["Title"] = "Reservations - Apprenticeship training";
ViewData["Title"] = "Select apprenticeship training course start date";

var firstStartDate = Model.PossibleStartDates.FirstOrDefault()?.Id;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
@using SFA.DAS.Reservations.Web.Infrastructure
@model CompletedViewModel
@{
ViewData["Title"] = "Reservations";
ViewData["Title"] = "Funding reserved";
}
<main class="govuk-main-wrapper " id="main-content" role="main">
<div class="govuk-grid-row">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
@using SFA.DAS.Reservations.Web.Infrastructure
@model ReviewViewModel
@{
ViewData["Title"] = "Reservations";
ViewData["Title"] = "Check your reservation information";
var changeRouteData = (new Dictionary<string, string> {{"fromReview", "true"}});
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
@using SFA.DAS.Reservations.Web.Infrastructure
@model CompletedViewModel
@{
ViewData["Title"] = "Reservations";
ViewData["Title"] = "Funding reserved";
}
<main class="govuk-main-wrapper " id="main-content" role="main">
<div class="govuk-grid-row">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
@using SFA.DAS.Reservations.Web.Extensions
@model ReviewViewModel
@{
ViewData["Title"] = "Reservations";
ViewData["Title"] = "Check your reservation information";
var changeRouteData = (new Dictionary<string, string> {{"fromReview", "true"}});
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

@{
ViewData["Title"] = "EmployerFundingPaused";
ViewData["Title"] = "Government funding is currently paused";
}


Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

@{
ViewData["Title"] = "ProviderFundingPaused";
ViewData["Title"] = "Government funding is currently paused";
}

<a asp-external-controller="Account" tabindex="2" class="govuk-back-link">Back</a>
Expand Down
3 changes: 2 additions & 1 deletion src/SFA.DAS.Reservations.Web/Views/Shared/_Layout.cshtml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
@using Microsoft.Azure.Documents.SystemFunctions
@using StructureMap.Diagnostics.TreeView
@{
var tagManagerCode = "GTM-TD56SF5";
}
Expand All @@ -10,7 +11,7 @@
<html lang="en" class="govuk-template">
<head>
<meta charset="utf-8" />
<title>GOV.UK - The best place to find government services and information</title>
<title>@(ViewData["Title"] ?? "GOV.UK - The best place to find government services and information")</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="theme-color" content="#0b0c0c" />

Expand Down

0 comments on commit b9803c8

Please sign in to comment.