From f749af822f62df8d8e50aacf44ad0b4e3aa2fba3 Mon Sep 17 00:00:00 2001 From: Thomas Leese Date: Tue, 26 Mar 2024 09:51:25 +0000 Subject: [PATCH] Include waiting on LoPS persona status This allows us to sign in as a teacher where we're waiting on the LoPS to be returned. --- app/controllers/personas_controller.rb | 6 ++++++ app/views/personas/_teachers.html.erb | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/app/controllers/personas_controller.rb b/app/controllers/personas_controller.rb index 9dbdc3694f..e9623c16cc 100644 --- a/app/controllers/personas_controller.rb +++ b/app/controllers/personas_controller.rb @@ -138,6 +138,7 @@ def load_staff_personas %w[ draft not_started + waiting_on_lops waiting_on_consent waiting_on_further_information awarded @@ -173,6 +174,11 @@ def load_teacher_personas stage_or_status = persona[:stage_or_status] + if stage_or_status == "waiting_on_lops" && + !application_form.teaching_authority_provides_written_statement + next + end + application_form.stage == stage_or_status || application_form.statuses.include?(stage_or_status) end diff --git a/app/views/personas/_teachers.html.erb b/app/views/personas/_teachers.html.erb index 10f8f9e1c2..9a78d7b141 100644 --- a/app/views/personas/_teachers.html.erb +++ b/app/views/personas/_teachers.html.erb @@ -7,7 +7,7 @@ row.with_cell(header: true, text: "Sanction check") row.with_cell(header: true, text: "Stage/status") row.with_cell(header: true, text: "Email address") - row.with_cell(header: true, text: "Actions", numeric: true) + row.with_cell(header: true) end end