Skip to content

Commit

Permalink
Merge pull request #987 from DFE-Digital/feature/new-trust-template
Browse files Browse the repository at this point in the history
Feature/new trust template
  • Loading branch information
dneed-nimble authored Feb 6, 2024
2 parents 2ab00a6 + b060f26 commit 3e729a7
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 133 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -27,64 +27,4 @@ public async Task Should_navigate_between_trust_template_guidance_and_task_list(

Document.Url.Should().BeUrl($"/task-list/{project.Id}");
}

[Fact]
public async Task Should_navigate_to_getting_your_template_section()
{
AcademyConversionProject project = AddGetProject();

await OpenAndConfirmPathAsync($"/task-list/{project.Id}/trust-guidance");

await NavigateAsync("Getting your template from SharePoint", 0);

Document.Url.Should().BeUrl($"/task-list/{project.Id}/trust-guidance#sharepoint");
}

[Fact]
public async Task Should_navigate_to_updating_your_template_in_the_trust_area_section()
{
AcademyConversionProject project = AddGetProject();

await OpenAndConfirmPathAsync($"/task-list/{project.Id}/trust-guidance");

await NavigateAsync("Updating your template in the trust area in KIM", 0);

Document.Url.Should().BeUrl($"/task-list/{project.Id}/trust-guidance#trust");
}

[Fact]
public async Task Should_navigate_to_updating_your_template_in_the_sponsor_area_section()
{
AcademyConversionProject project = AddGetProject();

await OpenAndConfirmPathAsync($"/task-list/{project.Id}/trust-guidance");

await NavigateAsync("Updating your template in the sponsor area in KIM (if the trust has sponsor status)", 0);

Document.Url.Should().BeUrl($"/task-list/{project.Id}/trust-guidance#sponsor");
}

[Fact]
public async Task Should_navigate_to_download_your_trust_template_section()
{
AcademyConversionProject project = AddGetProject();

await OpenAndConfirmPathAsync($"/task-list/{project.Id}/trust-guidance");

await NavigateAsync("Download your trust template from KIM", 0);

Document.Url.Should().BeUrl($"/task-list/{project.Id}/trust-guidance#download");
}

[Fact]
public async Task Should_navigate_to_send_template_for_review_section()
{
AcademyConversionProject project = AddGetProject();

await OpenAndConfirmPathAsync($"/task-list/{project.Id}/trust-guidance");

await NavigateAsync("Send your project template and trust template for review", 0);

Document.Url.Should().BeUrl($"/task-list/{project.Id}/trust-guidance#send");
}
}

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,17 +1,40 @@
@page "/task-list/{id:int}/trust-guidance"
@using Dfe.PrepareConversions.TagHelpers
@using Microsoft.Extensions.Configuration
@model Dfe.PrepareConversions.Pages.BaseAcademyConversionProjectPageModel
@inject IConfiguration Configuration

@{
ViewData["Title"] = "Prepare your trust template";
}
@section BeforeMain
{
{
<govuk-back-link link-item="@Links.TaskList.Index" />
}
<div class="govuk-grid-row">
<div class="govuk-grid-column-two-thirds">
<span class="govuk-caption-l">@Model.Project.SchoolName</span>
<h1 class="govuk-heading-l">Prepare your trust template</h1>
@await Html.PartialAsync("_GenericTemplateGuidance")
<h1 class="govuk-heading-l">Prepare the trust template</h1>
<p class="govuk-hint">You must prepare a trust template for the advisory board meeting. It helps them learn about the trust the academy will join. That informs their decision about if the project can proceed.</p>
<h1 class="govuk-heading-l govuk-!-margin-top-6">
How to prepare the trust template
</h1>
<ol class="govuk-list govuk-list--number">
<li>Check if a trust template already exists in the trust SharePoint folder</li>
<li>
<a href="@Configuration["ApplicationLinks:SharePointTemplateUrl"]" target="_blank" class="govuk-link">Download a new template (opens in new tab)</a>
if one does not exist or it is more than 3 months since it was last updated
</li>
<li>
Enter or update the information in the trust template
</li>
<li>Save the completed trust template in the trust's SharePoint folder</li>
<li>Share the template with your team leader for approval</li>
</ol>
<p class="govuk-body">Once approved, it is ready to take to the advisory board meeting.</p>
<a href="/task-list/@Model.Project.Id" class="govuk-button" data-module="govuk-button">
Return to task list
</a>

</div>
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@ public class TemplateGuidanceTaskListTagHelper : TagHelper

public override void Process(TagHelperContext context, TagHelperOutput output)
{
output.Content.SetHtmlContent(IsSponsored
? GetHtmlContent(_title, $"{ProjectId}/sponsor-guidance", _linkText)
: GetHtmlContent(_title, $"{ProjectId}/trust-guidance", _linkText));
output.Content.SetHtmlContent(GetHtmlContent(_title, $"{ProjectId}/trust-guidance", _linkText));
}

private static string GetHtmlContent(string title, string urlSlug, string linkText)
Expand All @@ -34,4 +32,5 @@ private static string GetHtmlContent(string title, string urlSlug, string linkTe
</div>";
}
}
}
}

Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@
"ServiceLink": {
"TransfersUrl": "https://dev.prepare-transfers.education.gov.uk"
},
"ApplicationLinks": {
"SharePointTemplateUrl": "https://educationgovuk.sharepoint.com/sites/lvedfe00116/SitePages/Headteacher-Board-Operational-Processes.aspx?xsdata=..."
},
"ApplicationInsights": {
"ConnectionString": "",
"InstrumentationKey": ""
Expand Down

0 comments on commit 3e729a7

Please sign in to comment.