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-581 fix input field alignment #677

Conversation

GurnankCheema
Copy link
Contributor

The recent changes to remove the Not known option caused the input fields to go out of alignment and the No button to move down. like this:
Screenshot 2024-01-27 at 10 24 10

Have fixed this and also refactored code so that macro is more generic and so can be used for other questions.

The question now looks like this
Screenshot 2024-01-27 at 11 40 57

@@ -170,6 +82,80 @@
{% endcall %}
{% endmacro%}

{% macro radiosWithAddAnotherTextBox(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.

renamed macro and removed the Not known code as it is no longer needed

primaryQuestion:{
text: "Was any part of the incident captured on a body-worn camera?",
name: "bodyWornCamera",
value: data.bodyWornCamera,
errorMessage: errors | findError('bodyWornCamera'),
includeNotKnown: false
questionSubject: 'body-worn-camera'
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

to use this for integration tests and panel that open when Yes is selected

@@ -1,2 +1 @@
new AddAnother($('.add-another-evidence'), '.remove-button-container')
new AddAnother($('.add-another-input'), '.remove-button-container')
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

moved this into a new file that more represents the page it serves, i.e details page

@GurnankCheema
Copy link
Contributor Author

this code has been included in map-625

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.

1 participant