diff --git a/Dfe.PrepareConversions/Dfe.PrepareConversions/Resources/htb-template.docx b/Dfe.PrepareConversions/Dfe.PrepareConversions/Resources/htb-template.docx index 764fb30d9..bf96f6635 100644 Binary files a/Dfe.PrepareConversions/Dfe.PrepareConversions/Resources/htb-template.docx and b/Dfe.PrepareConversions/Dfe.PrepareConversions/Resources/htb-template.docx differ diff --git a/Dfe.PrepareConversions/Dfe.PrepareConversions/Services/DocumentGenerator/DocumentGenerator.cs b/Dfe.PrepareConversions/Dfe.PrepareConversions/Services/DocumentGenerator/DocumentGenerator.cs index 7e0b637d5..30d366e07 100644 --- a/Dfe.PrepareConversions/Dfe.PrepareConversions/Services/DocumentGenerator/DocumentGenerator.cs +++ b/Dfe.PrepareConversions/Dfe.PrepareConversions/Services/DocumentGenerator/DocumentGenerator.cs @@ -34,8 +34,8 @@ public HtbTemplate GenerateDocument(ApiResponse respon MemoryStream ms = CreateMemoryStream("htb-template"); DocumentBuilder documentBuilder = DocumentBuilder.CreateFromTemplate(ms, document); - AddSchoolAndTrustInfoAndProjectDates(documentBuilder, project); AddSchoolOverview(documentBuilder, document); + AddSchoolAndTrustInfoAndProjectDates(documentBuilder, project); AddOfstedInformation(documentBuilder, document, project); AddRationale(documentBuilder, document, project); AddRisksAndIssues(documentBuilder, document); diff --git a/Dfe.PrepareConversions/Dfe.PrepareConversions/Services/DocumentGenerator/LegalRequirementsGenerator.cs b/Dfe.PrepareConversions/Dfe.PrepareConversions/Services/DocumentGenerator/LegalRequirementsGenerator.cs index 82cac032d..ec27004a3 100644 --- a/Dfe.PrepareConversions/Dfe.PrepareConversions/Services/DocumentGenerator/LegalRequirementsGenerator.cs +++ b/Dfe.PrepareConversions/Dfe.PrepareConversions/Services/DocumentGenerator/LegalRequirementsGenerator.cs @@ -25,6 +25,12 @@ public static void AddLegalRequirements(IDocumentBuilder builder, HtbTemplate do build.AddParagraph(""); }); } + else + { + builder.ReplacePlaceholderWithContent("LegalRequirements", build => + { + }); + } } } } \ No newline at end of file diff --git a/Dfe.PrepareConversions/Dfe.PrepareConversions/Services/DocumentGenerator/SchoolAndTrustInformationAndProjectDatesGenerator.cs b/Dfe.PrepareConversions/Dfe.PrepareConversions/Services/DocumentGenerator/SchoolAndTrustInformationAndProjectDatesGenerator.cs index c7410b3f7..7679ce49c 100644 --- a/Dfe.PrepareConversions/Dfe.PrepareConversions/Services/DocumentGenerator/SchoolAndTrustInformationAndProjectDatesGenerator.cs +++ b/Dfe.PrepareConversions/Dfe.PrepareConversions/Services/DocumentGenerator/SchoolAndTrustInformationAndProjectDatesGenerator.cs @@ -38,7 +38,10 @@ private static void AddLocalAuthorityAndSponsorDetails(IDocumentBuilder builder, } }; - builder.ReplacePlaceholderWithContent("LocalAuthorityAndSponsorDetails", body => body.AddTable(localAuthorityAndSponsorDetails)); + builder.ReplacePlaceholderWithContent("LocalAuthorityAndSponsorDetails", body => + { + body.AddTable(localAuthorityAndSponsorDetails); + }); } private static void AddAdvisoryBoardDetails(IDocumentBuilder builder, AcademyConversionProject project) { @@ -46,7 +49,7 @@ private static void AddAdvisoryBoardDetails(IDocumentBuilder builder, AcademyCon { new[] { - new TextElement { Value = "Date of Advisory Board", Bold = true }, + new TextElement { Value = "Date of advisory board", Bold = true }, new TextElement { Value = project.HeadTeacherBoardDate.ToDateString()} }, new[] @@ -56,7 +59,7 @@ private static void AddAdvisoryBoardDetails(IDocumentBuilder builder, AcademyCon }, new[] { - new TextElement { Value = "Previous Advisory Board", Bold = true }, + new TextElement { Value = "Previous advisory board", Bold = true }, new TextElement { Value = project.PreviousHeadTeacherBoardDate.ToDateString() } } }; @@ -77,7 +80,11 @@ private static void AddAcademyRouteInfo(IDocumentBuilder builder, AcademyConvers break; } - builder.ReplacePlaceholderWithContent("AcademyRouteInfo", body => body.AddTable(academyRouteInfo)); + builder.ReplacePlaceholderWithContent("AcademyRouteInfo", body => + { + body.AddHeading("Conversion details", HeadingLevel.One); + body.AddTable(academyRouteInfo); + }); } @@ -88,7 +95,17 @@ private static List VoluntaryRouteInfo(AcademyConversionProject p new[] { new TextElement { Value = "Academy type and route", Bold = true }, - new TextElement { Value = $"{project.AcademyTypeAndRoute} {project.ConversionSupportGrantChangeReason} {project.ConversionSupportGrantAmount.ToMoneyString(true)}" } + new TextElement { Value = project.AcademyTypeAndRoute } + }, + new[] + { + new TextElement { Value = "Grant funding amount", Bold = true }, + new TextElement { Value = project.ConversionSupportGrantAmount.ToMoneyString(true) } + }, + new[] + { + new TextElement { Value = "Grant funding reason", Bold = true }, + new TextElement { Value = project.ConversionSupportGrantChangeReason } }, new[] { @@ -111,7 +128,27 @@ private static List SponsoredRouteInfo(AcademyConversionProject p new[] { new TextElement { Value = "Academy type and route", Bold = true }, - new TextElement { Value = $"{project.AcademyTypeAndRoute} {project.ConversionSupportGrantChangeReason} {project.ConversionSupportGrantAmount.ToMoneyString(true)}" } + new TextElement { Value = project.AcademyTypeAndRoute} + }, + new[] + { + new TextElement { Value = "Grant funding type", Bold = true }, + new TextElement { Value = project.ConversionSupportGrantType } + }, + new[] + { + new TextElement { Value = "Grant funding amount", Bold = true }, + new TextElement { Value = project.ConversionSupportGrantAmount.ToMoneyString(true) } + }, + new[] + { + new TextElement { Value = "Grant funding reason", Bold = true }, + new TextElement { Value = project.ConversionSupportGrantChangeReason } + }, + new[] + { + new TextElement { Value = "Is the school applying for an EIG (Environmental Improvement Grant)?", Bold = true }, + new TextElement { Value = project.ConversionSupportGrantEnvironmentalImprovementGrant } }, new[] { diff --git a/Dfe.PrepareConversions/Dfe.PrepareConversions/Services/DocumentGenerator/SchoolBudgetInformationGenerator.cs b/Dfe.PrepareConversions/Dfe.PrepareConversions/Services/DocumentGenerator/SchoolBudgetInformationGenerator.cs index ae593665a..f3bf29b4c 100644 --- a/Dfe.PrepareConversions/Dfe.PrepareConversions/Services/DocumentGenerator/SchoolBudgetInformationGenerator.cs +++ b/Dfe.PrepareConversions/Dfe.PrepareConversions/Services/DocumentGenerator/SchoolBudgetInformationGenerator.cs @@ -11,7 +11,7 @@ public static void AddSchoolBudgetInformation(IDocumentBuilder builder, HtbTempl { builder.ReplacePlaceholderWithContent("SchoolBudgetInformation", build => { - build.AddHeading("School budget information", HeadingLevel.One); + build.AddHeading("Budget information", HeadingLevel.One); build.AddTable(new List { // Current financial year diff --git a/Dfe.PrepareConversions/Dfe.PrepareConversions/Services/DocumentGenerator/SchoolPupilForecastGenerator.cs b/Dfe.PrepareConversions/Dfe.PrepareConversions/Services/DocumentGenerator/SchoolPupilForecastGenerator.cs index 0adb3402a..f20b40d7c 100644 --- a/Dfe.PrepareConversions/Dfe.PrepareConversions/Services/DocumentGenerator/SchoolPupilForecastGenerator.cs +++ b/Dfe.PrepareConversions/Dfe.PrepareConversions/Services/DocumentGenerator/SchoolPupilForecastGenerator.cs @@ -11,7 +11,7 @@ public static void AddSchoolPupilForecast(IDocumentBuilder builder, HtbTemplate { builder.ReplacePlaceholderWithContent("SchoolPupilForecast", build => { - build.AddHeading("School pupil forecasts", HeadingLevel.One); + build.AddHeading("Pupil forecasts", HeadingLevel.One); build.AddTable(new List { new[] @@ -30,21 +30,21 @@ public static void AddSchoolPupilForecast(IDocumentBuilder builder, HtbTemplate }, new [] { - new TextElement{ Value = "Projected pupil numbers on roll in the year the academy opens (year 1)", Bold = true}, + new TextElement{ Value = "Projected pupil numbers on roll (year 1)", Bold = true}, new TextElement{ Value = document.YearOneProjectedCapacity}, new TextElement{ Value = document.YearOneProjectedPupilNumbers}, new TextElement{ Value = document.YearOnePercentageSchoolFull}, }, new [] { - new TextElement{ Value = "Projected pupil numbers on roll in the year the academy opens (year 2)", Bold = true}, + new TextElement{ Value = "Projected pupil numbers on roll (year 2)", Bold = true}, new TextElement{ Value = document.YearTwoProjectedCapacity}, new TextElement{ Value = document.YearTwoProjectedPupilNumbers}, new TextElement{ Value = document.YearTwoPercentageSchoolFull}, }, new [] { - new TextElement{ Value = "Projected pupil numbers on roll in the year the academy opens (year 3)", Bold = true}, + new TextElement{ Value = "Projected pupil numbers on roll (year 3)", Bold = true}, new TextElement{ Value = document.YearThreeProjectedCapacity}, new TextElement{ Value = document.YearThreeProjectedPupilNumbers}, new TextElement{ Value = document.YearThreePercentageSchoolFull},