From 68b23b4d5fe1d346717f8996392f13f379d5c09a Mon Sep 17 00:00:00 2001 From: danbenton-mojdt <113102670+danbenton-mojdt@users.noreply.github.com> Date: Fri, 26 Jan 2024 10:21:33 +0000 Subject: [PATCH] MAP-581 Remove Not Known option from body worn camera (#674) * MAP-581 Remove Not Known option from body worn camera * MAP-581 Inline yes no if notknown not included --- .../formPages/incident/useOfForceDetails.html | 3 ++- server/views/formPages/incidentMacros.njk | 16 +++++++++------- 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/server/views/formPages/incident/useOfForceDetails.html b/server/views/formPages/incident/useOfForceDetails.html index 44a57734..fca56701 100644 --- a/server/views/formPages/incident/useOfForceDetails.html +++ b/server/views/formPages/incident/useOfForceDetails.html @@ -37,7 +37,8 @@

{{ pageTitle }}

text: "Was any part of the incident captured on a body-worn camera?", name: "bodyWornCamera", value: data.bodyWornCamera, - errorMessage: errors | findError('bodyWornCamera') + errorMessage: errors | findError('bodyWornCamera'), + includeNotKnown: false }, followUpQuestion:{ name: "bodyWornCameraNumbers", diff --git a/server/views/formPages/incidentMacros.njk b/server/views/formPages/incidentMacros.njk index 2b477da1..518dfd9b 100644 --- a/server/views/formPages/incidentMacros.njk +++ b/server/views/formPages/incidentMacros.njk @@ -69,7 +69,7 @@ {{ primaryErrorMessageText}} -
+
-
- - -
+ {% if question.primaryQuestion.includeNotKnown %} +
+ + +
+ {% endif %}