Skip to content

Commit

Permalink
MAP-581 Remove Not Known option from body worn camera
Browse files Browse the repository at this point in the history
  • Loading branch information
danbenton-mojdt committed Jan 25, 2024
1 parent 4326a93 commit 87ae8a5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
3 changes: 2 additions & 1 deletion server/views/formPages/incident/useOfForceDetails.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ <h1 class="govuk-heading-xl mainHeading">{{ pageTitle }}</h1>
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",
Expand Down
14 changes: 8 additions & 6 deletions server/views/formPages/incidentMacros.njk
Original file line number Diff line number Diff line change
Expand Up @@ -124,12 +124,14 @@
No
</label>
</div>
<div class="govuk-radios__item">
<input class="govuk-radios__input" id="primary-question-notKnown" name="{{question.primaryQuestion.name}}" type="radio" value="NOT_KNOWN" {% if question.primaryQuestion.value === 'NOT_KNOWN' %} checked="checked" {% endif %}>
<label class="govuk-label govuk-radios__label" for="primary-question-notKnown">
Not known
</label>
</div>
{% if question.primaryQuestion.includeNotKnown %}
<div class="govuk-radios__item">
<input class="govuk-radios__input" id="primary-question-notKnown" name="{{question.primaryQuestion.name}}" type="radio" value="NOT_KNOWN" {% if question.primaryQuestion.value === 'NOT_KNOWN' %} checked="checked" {% endif %}>
<label class="govuk-label govuk-radios__label" for="primary-question-notKnown">
Not known
</label>
</div>
{% endif %}
</div>
</div>
<!-- end of radios -->
Expand Down

0 comments on commit 87ae8a5

Please sign in to comment.