Skip to content

Commit

Permalink
MAP-581 Remove Not Known option from body worn camera (#674)
Browse files Browse the repository at this point in the history
* MAP-581 Remove Not Known option from body worn camera

* MAP-581 Inline yes no if notknown not included
  • Loading branch information
danbenton-mojdt authored Jan 26, 2024
1 parent 840c539 commit 68b23b4
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 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
16 changes: 9 additions & 7 deletions server/views/formPages/incidentMacros.njk
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
{{ primaryErrorMessageText}}
</span>

<div class="govuk-radios" data-module="govuk-radios">
<div class="govuk-radios{% if not question.primaryQuestion.includeNotKnown %}--inline{% endif %}" data-module="govuk-radios">
<div class=" govuk-radios">
<div class="govuk-radios__item">
<input class="govuk-radios__input" id="{{question.primaryQuestion.name}}" name="{{question.primaryQuestion.name}}"
Expand Down 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 68b23b4

Please sign in to comment.