From 4b83b9fc1f1138daf703155f75cbb4deb30c460a Mon Sep 17 00:00:00 2001 From: Paul Howes Date: Wed, 8 Apr 2020 14:11:16 +0100 Subject: [PATCH] Changes to work as-is --- .../Controllers/EmployerAgreementController.cs | 7 ------- .../Views/EmployerAgreement/Index.cshtml | 11 ++++++++--- 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/src/SFA.DAS.EmployerAccounts.Web/Controllers/EmployerAgreementController.cs b/src/SFA.DAS.EmployerAccounts.Web/Controllers/EmployerAgreementController.cs index 0ad56ebfb3..0b6fd8b93d 100644 --- a/src/SFA.DAS.EmployerAccounts.Web/Controllers/EmployerAgreementController.cs +++ b/src/SFA.DAS.EmployerAccounts.Web/Controllers/EmployerAgreementController.cs @@ -310,12 +310,5 @@ public async Task WhenDoYouWantToView(int? choice, string agreemen } } } - - [HttpGet] - [Route("agreements/{accountLegalEntityHashedId}/viewallagreements")] - public ActionResult ViewAllAgreements(string hashedAccountId, string accountLegalEntityHashedId) - { - throw new NotImplementedException(); - } } } \ No newline at end of file diff --git a/src/SFA.DAS.EmployerAccounts.Web/Views/EmployerAgreement/Index.cshtml b/src/SFA.DAS.EmployerAccounts.Web/Views/EmployerAgreement/Index.cshtml index 88131712e6..87326032a5 100644 --- a/src/SFA.DAS.EmployerAccounts.Web/Views/EmployerAgreement/Index.cshtml +++ b/src/SFA.DAS.EmployerAccounts.Web/Views/EmployerAgreement/Index.cshtml @@ -73,9 +73,14 @@ } - - View all agreements - + @if (employerAgreement.HasPendingAgreement) + { + Accept agreement + } + else if (employerAgreement.HasSignedAgreement) + { + View + } @if (Model.Data.EmployerAgreementsData.EmployerAgreements.Count > 1)