Skip to content
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

Merged
merged 5 commits into from
Jan 29, 2024

Conversation

GurnankCheema
Copy link
Contributor

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.

@@ -214,6 +214,18 @@
print: print
})
}}

Copy link
Contributor Author

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),

Copy link
Contributor Author

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) %}
Copy link
Contributor Author

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}}"
Copy link
Contributor Author

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

Copy link
Contributor

@danbenton-mojdt danbenton-mojdt left a 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
@GurnankCheema
Copy link
Contributor Author

No uniqueness required on list of weapons observed

fixed

@GurnankCheema GurnankCheema merged commit 19dbd70 into main Jan 29, 2024
9 checks passed
@GurnankCheema GurnankCheema deleted the MAP-625-UoF-new-weapons-observed-question branch January 29, 2024 17:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants