diff --git a/CHANGELOG.md b/CHANGELOG.md index 6ddaaf9b8..2a980f494 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). ## [Unreleased][unreleased] +### Added + +- Added Governance turnover to governance page + ### Changed - Updated the node version in the github runners and docker image diff --git a/DfE.FindInformationAcademiesTrusts.Data/DateTimeProvider.cs b/DfE.FindInformationAcademiesTrusts.Data/DateTimeProvider.cs index ff0ebcc14..748d1ea8e 100644 --- a/DfE.FindInformationAcademiesTrusts.Data/DateTimeProvider.cs +++ b/DfE.FindInformationAcademiesTrusts.Data/DateTimeProvider.cs @@ -3,10 +3,12 @@ public interface IDateTimeProvider { DateTime Now { get; } + DateTime Today { get; } } public class DateTimeProvider : IDateTimeProvider { public DateTime Now => DateTime.Now; + public DateTime Today => DateTime.Today; } -} +} \ No newline at end of file diff --git a/DfE.FindInformationAcademiesTrusts.Data/Repositories/Trust/TrustGovernance.cs b/DfE.FindInformationAcademiesTrusts.Data/Repositories/Trust/TrustGovernance.cs index bde73c115..485a58a69 100644 --- a/DfE.FindInformationAcademiesTrusts.Data/Repositories/Trust/TrustGovernance.cs +++ b/DfE.FindInformationAcademiesTrusts.Data/Repositories/Trust/TrustGovernance.cs @@ -1,7 +1,7 @@ namespace DfE.FindInformationAcademiesTrusts.Data.Repositories.Trust; public record TrustGovernance( - Governor[] TrustLeadership, - Governor[] Members, - Governor[] Trustees, + Governor[] CurrentTrustLeadership, + Governor[] CurrentMembers, + Governor[] CurrentTrustees, Governor[] HistoricMembers); diff --git a/DfE.FindInformationAcademiesTrusts/Pages/Trusts/Governance.cshtml b/DfE.FindInformationAcademiesTrusts/Pages/Trusts/Governance.cshtml index e6419804e..de45cf6a8 100644 --- a/DfE.FindInformationAcademiesTrusts/Pages/Trusts/Governance.cshtml +++ b/DfE.FindInformationAcademiesTrusts/Pages/Trusts/Governance.cshtml @@ -5,171 +5,189 @@ @{ Layout = "_TrustLayout"; } +
+ @Model.TrustGovernance.TurnoverRate.ToString("0.#")% within the last 12 months +
+Governance turnover % is calculated based on the total number of appointments and resignations in the past calendar year, divided by the total number of current governors.
+Name | +Role | +From | +To | +
---|---|---|---|
+ @governor.FullName + | ++ @governor.Role + | ++ @governor.DateOfAppointment.ShowDateStringOrReplaceWithText() + | ++ @governor.DateOfTermEnd.ShowDateStringOrReplaceWithText() + | +
No Trust Leadership
+ } +Name | -Role | -From | -To | -
---|---|---|---|
- @governor.FullName - | -- @governor.Role - | -- @governor.DateOfAppointment.ShowDateStringOrReplaceWithText() - | -- @governor.DateOfTermEnd.ShowDateStringOrReplaceWithText() - | -
No Trust Leadership
- } -Name | +Appointed by | +From | +To | +
---|---|---|---|
+ @governor.FullName + | ++ @governor.AppointingBody + | ++ @governor.DateOfAppointment.ShowDateStringOrReplaceWithText() + | ++ @governor.DateOfTermEnd.ShowDateStringOrReplaceWithText() + | +
No Trustees
+ } +Name | -Appointed by | -From | -To | -
---|---|---|---|
- @governor.FullName - | -- @governor.AppointingBody - | -- @governor.DateOfAppointment.ShowDateStringOrReplaceWithText() - | -- @governor.DateOfTermEnd.ShowDateStringOrReplaceWithText() - | -
No Trustees
- } -Name | +Appointed by | +From | +To | +
---|---|---|---|
+ @governor.FullName + | ++ @governor.AppointingBody + | ++ @governor.DateOfAppointment.ShowDateStringOrReplaceWithText() + | ++ @governor.DateOfTermEnd.ShowDateStringOrReplaceWithText() + | +
No Members
+ } +Name | -Appointed by | -From | -To | -
---|---|---|---|
- @governor.FullName - | -- @governor.AppointingBody - | -- @governor.DateOfAppointment.ShowDateStringOrReplaceWithText() - | -- @governor.DateOfTermEnd.ShowDateStringOrReplaceWithText() - | -
No Members
- } -Name | -Role | -Appointed by | -From | -To | -
---|---|---|---|---|
- @governor.FullName - | -- @governor.Role - | -- @governor.AppointingBody - | -- @governor.DateOfAppointment.ShowDateStringOrReplaceWithText() - | -- @governor.DateOfTermEnd.ShowDateStringOrReplaceWithText() - | -
No Historic members
- } -Name | +Role | +Appointed by | +From | +To | +
---|---|---|---|---|
+ @governor.FullName + | ++ @governor.Role + | ++ @governor.AppointingBody + | ++ @governor.DateOfAppointment.ShowDateStringOrReplaceWithText() + | ++ @governor.DateOfTermEnd.ShowDateStringOrReplaceWithText() + | +
No Historic members
+ } +