-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Map 625 uof new weapons observed question #678
Map 625 uof new weapons observed question #678
Conversation
@@ -214,6 +214,18 @@ | |||
print: print | |||
}) | |||
}} | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the 'if' is needed for old reports that predate the weapons question
@@ -53,6 +52,27 @@ const completeSchema = joi.object({ | |||
|
|||
pavaDrawn: requiredBooleanMsg('Select yes if PAVA was drawn').alter(optionalForPartialValidation), | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
validation spec for the new weapons observed question
@@ -51,94 +51,6 @@ | |||
</div> | |||
{% endmacro %} | |||
|
|||
|
|||
{% macro radioWithMultipleNestedTextBox(question) %} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this macro renamed and rewritten
@@ -394,7 +380,7 @@ | |||
<div class="govuk-checkboxes__item"> | |||
<input | |||
class="govuk-checkboxes__input" | |||
id="parent-{{option.value}}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fix a label attribute clash
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No uniqueness required on list of weapons observed
2. reinstated Not Known for body-worn cameras 3. fixed label and input associations for checkboxesWithNestedCheckboxes macro as it was cauing label on one question to trigger input on another
fixed |
Add new 'weapons observed' question to the report details page
The functionality for this is identical to the body-worn camera question. So the macro previously used for body-worn cameras has been adapted to make it reusable for both questions.