From 0b3504cab4fea646fb59f2b672be5c0c31e7f566 Mon Sep 17 00:00:00 2001 From: Jack Marshall Date: Thu, 26 Sep 2024 16:21:50 +0100 Subject: [PATCH] Added risk rating and fixed spacing issue --- ...reFundingAgreementCheckpointMeeting.cshtml | 13 +++++++++- ...undingAgreementCheckpointMeeting.cshtml.cs | 24 ++++++++++--------- 2 files changed, 25 insertions(+), 12 deletions(-) diff --git a/Dfe.ManageFreeSchoolProjects/Dfe.ManageFreeSchoolProjects/Pages/Project/Tasks/PreFundingAgreementCheckpointMeeting/ViewPreFundingAgreementCheckpointMeeting.cshtml b/Dfe.ManageFreeSchoolProjects/Dfe.ManageFreeSchoolProjects/Pages/Project/Tasks/PreFundingAgreementCheckpointMeeting/ViewPreFundingAgreementCheckpointMeeting.cshtml index 951632b5c..a6abaae1d 100644 --- a/Dfe.ManageFreeSchoolProjects/Dfe.ManageFreeSchoolProjects/Pages/Project/Tasks/PreFundingAgreementCheckpointMeeting/ViewPreFundingAgreementCheckpointMeeting.cshtml +++ b/Dfe.ManageFreeSchoolProjects/Dfe.ManageFreeSchoolProjects/Pages/Project/Tasks/PreFundingAgreementCheckpointMeeting/ViewPreFundingAgreementCheckpointMeeting.cshtml @@ -20,7 +20,6 @@
-

@Model.Project.SchoolName @@ -53,5 +52,17 @@ Confirm and continue + +
+
+

Review risk rating

+

You may want to update the risk rating after the readiness to open meeting.

+ +
+

\ No newline at end of file diff --git a/Dfe.ManageFreeSchoolProjects/Dfe.ManageFreeSchoolProjects/Pages/Project/Tasks/PreFundingAgreementCheckpointMeeting/ViewPreFundingAgreementCheckpointMeeting.cshtml.cs b/Dfe.ManageFreeSchoolProjects/Dfe.ManageFreeSchoolProjects/Pages/Project/Tasks/PreFundingAgreementCheckpointMeeting/ViewPreFundingAgreementCheckpointMeeting.cshtml.cs index 9656c51cc..d5d7e8cf9 100644 --- a/Dfe.ManageFreeSchoolProjects/Dfe.ManageFreeSchoolProjects/Pages/Project/Tasks/PreFundingAgreementCheckpointMeeting/ViewPreFundingAgreementCheckpointMeeting.cshtml.cs +++ b/Dfe.ManageFreeSchoolProjects/Dfe.ManageFreeSchoolProjects/Pages/Project/Tasks/PreFundingAgreementCheckpointMeeting/ViewPreFundingAgreementCheckpointMeeting.cshtml.cs @@ -1,3 +1,4 @@ +using Dfe.ManageFreeSchoolProjects.API.Contracts.Project.Risk; using Dfe.ManageFreeSchoolProjects.API.Contracts.Project.Tasks; using Dfe.ManageFreeSchoolProjects.Constants; using Dfe.ManageFreeSchoolProjects.Logging; @@ -9,30 +10,31 @@ namespace Dfe.ManageFreeSchoolProjects.Pages.Project.Tasks.PreFundingAgreementCheckpointMeeting; -public class ViewPreFundingAgreementCheckpointMeetingModel : ViewTaskBaseModel +public class ViewPreFundingAgreementCheckpointMeetingModel( + IGetProjectByTaskService getProjectService, + IGetTaskStatusService getTaskStatusService, + IUpdateTaskStatusService updateTaskStatusService, + IGetProjectRiskService getProjectRiskService, + ILogger logger) + : ViewTaskBaseModel(getProjectService, getTaskStatusService, updateTaskStatusService) { - private readonly ILogger _logger; - public ViewPreFundingAgreementCheckpointMeetingModel( - IGetProjectByTaskService getProjectService, - ILogger logger, - IGetTaskStatusService getTaskStatusService, IUpdateTaskStatusService updateTaskStatusService) : base(getProjectService, getTaskStatusService, updateTaskStatusService) - { - _logger = logger; - } + public GetProjectRiskResponse ProjectRisk { get; set; } public async Task OnGet() { - _logger.LogMethodEntered(); + logger.LogMethodEntered(); await GetTask(TaskName.PreFundingAgreementCheckpointMeeting); + ProjectRisk = await getProjectRiskService.Execute(ProjectId, 1); + return Page(); } public async Task OnPost() { - _logger.LogMethodEntered(); + logger.LogMethodEntered(); await PostTask(TaskName.PreFundingAgreementCheckpointMeeting);