ccs-digitalmarketplace-frontend-jinja 4.10.1__tar.gz → 4.11.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (73) hide show
  1. {ccs_digitalmarketplace_frontend_jinja-4.10.1/ccs_digitalmarketplace_frontend_jinja.egg-info → ccs_digitalmarketplace_frontend_jinja-4.11.0}/PKG-INFO +3 -2
  2. {ccs_digitalmarketplace_frontend_jinja-4.10.1 → ccs_digitalmarketplace_frontend_jinja-4.11.0}/README.md +1 -0
  3. {ccs_digitalmarketplace_frontend_jinja-4.10.1 → ccs_digitalmarketplace_frontend_jinja-4.11.0/ccs_digitalmarketplace_frontend_jinja.egg-info}/PKG-INFO +3 -2
  4. {ccs_digitalmarketplace_frontend_jinja-4.10.1 → ccs_digitalmarketplace_frontend_jinja-4.11.0}/ccs_digitalmarketplace_frontend_jinja.egg-info/requires.txt +1 -1
  5. ccs_digitalmarketplace_frontend_jinja-4.11.0/digitalmarketplace_frontend_jinja/__init__.py +1 -0
  6. {ccs_digitalmarketplace_frontend_jinja-4.10.1 → ccs_digitalmarketplace_frontend_jinja-4.11.0}/digitalmarketplace_frontend_jinja/templates/components/question-checkbox-tree-large/macro.html +14 -8
  7. {ccs_digitalmarketplace_frontend_jinja-4.10.1 → ccs_digitalmarketplace_frontend_jinja-4.11.0}/digitalmarketplace_frontend_jinja/templates/components/question-checkboxes/macro.html +23 -19
  8. {ccs_digitalmarketplace_frontend_jinja-4.10.1 → ccs_digitalmarketplace_frontend_jinja-4.11.0}/digitalmarketplace_frontend_jinja/templates/components/question-radios/macro.html +23 -19
  9. {ccs_digitalmarketplace_frontend_jinja-4.10.1 → ccs_digitalmarketplace_frontend_jinja-4.11.0}/pyproject.toml +1 -1
  10. ccs_digitalmarketplace_frontend_jinja-4.10.1/digitalmarketplace_frontend_jinja/__init__.py +0 -1
  11. {ccs_digitalmarketplace_frontend_jinja-4.10.1 → ccs_digitalmarketplace_frontend_jinja-4.11.0}/LICENCE +0 -0
  12. {ccs_digitalmarketplace_frontend_jinja-4.10.1 → ccs_digitalmarketplace_frontend_jinja-4.11.0}/MANIFEST.in +0 -0
  13. {ccs_digitalmarketplace_frontend_jinja-4.10.1 → ccs_digitalmarketplace_frontend_jinja-4.11.0}/ccs_digitalmarketplace_frontend_jinja.egg-info/SOURCES.txt +0 -0
  14. {ccs_digitalmarketplace_frontend_jinja-4.10.1 → ccs_digitalmarketplace_frontend_jinja-4.11.0}/ccs_digitalmarketplace_frontend_jinja.egg-info/dependency_links.txt +0 -0
  15. {ccs_digitalmarketplace_frontend_jinja-4.10.1 → ccs_digitalmarketplace_frontend_jinja-4.11.0}/ccs_digitalmarketplace_frontend_jinja.egg-info/top_level.txt +0 -0
  16. {ccs_digitalmarketplace_frontend_jinja-4.10.1 → ccs_digitalmarketplace_frontend_jinja-4.11.0}/digitalmarketplace_frontend_jinja/templates/components/alert/macro.html +0 -0
  17. {ccs_digitalmarketplace_frontend_jinja-4.10.1 → ccs_digitalmarketplace_frontend_jinja-4.11.0}/digitalmarketplace_frontend_jinja/templates/components/attachment/macro.html +0 -0
  18. {ccs_digitalmarketplace_frontend_jinja-4.10.1 → ccs_digitalmarketplace_frontend_jinja-4.11.0}/digitalmarketplace_frontend_jinja/templates/components/banner/macro.html +0 -0
  19. {ccs_digitalmarketplace_frontend_jinja-4.10.1 → ccs_digitalmarketplace_frontend_jinja-4.11.0}/digitalmarketplace_frontend_jinja/templates/components/character-count-from-form/macro.html +0 -0
  20. {ccs_digitalmarketplace_frontend_jinja-4.10.1 → ccs_digitalmarketplace_frontend_jinja-4.11.0}/digitalmarketplace_frontend_jinja/templates/components/checkboxes-from-form/macro.html +0 -0
  21. {ccs_digitalmarketplace_frontend_jinja-4.10.1 → ccs_digitalmarketplace_frontend_jinja-4.11.0}/digitalmarketplace_frontend_jinja/templates/components/compliance-communication-attachment-row/macro.html +0 -0
  22. {ccs_digitalmarketplace_frontend_jinja-4.10.1 → ccs_digitalmarketplace_frontend_jinja-4.11.0}/digitalmarketplace_frontend_jinja/templates/components/compliance-communication-attachments/macro.html +0 -0
  23. {ccs_digitalmarketplace_frontend_jinja-4.10.1 → ccs_digitalmarketplace_frontend_jinja-4.11.0}/digitalmarketplace_frontend_jinja/templates/components/cookie-banner/macro.html +0 -0
  24. {ccs_digitalmarketplace_frontend_jinja-4.10.1 → ccs_digitalmarketplace_frontend_jinja-4.11.0}/digitalmarketplace_frontend_jinja/templates/components/documents/macro.html +0 -0
  25. {ccs_digitalmarketplace_frontend_jinja-4.10.1 → ccs_digitalmarketplace_frontend_jinja-4.11.0}/digitalmarketplace_frontend_jinja/templates/components/file-upload-from-form/macro.html +0 -0
  26. {ccs_digitalmarketplace_frontend_jinja-4.10.1 → ccs_digitalmarketplace_frontend_jinja-4.11.0}/digitalmarketplace_frontend_jinja/templates/components/footer/macro.html +0 -0
  27. {ccs_digitalmarketplace_frontend_jinja-4.10.1 → ccs_digitalmarketplace_frontend_jinja-4.11.0}/digitalmarketplace_frontend_jinja/templates/components/header/macro.html +0 -0
  28. {ccs_digitalmarketplace_frontend_jinja-4.10.1 → ccs_digitalmarketplace_frontend_jinja-4.11.0}/digitalmarketplace_frontend_jinja/templates/components/input-from-form/macro.html +0 -0
  29. {ccs_digitalmarketplace_frontend_jinja-4.10.1 → ccs_digitalmarketplace_frontend_jinja-4.11.0}/digitalmarketplace_frontend_jinja/templates/components/list-input/macro.html +0 -0
  30. {ccs_digitalmarketplace_frontend_jinja-4.10.1 → ccs_digitalmarketplace_frontend_jinja-4.11.0}/digitalmarketplace_frontend_jinja/templates/components/option-select/macro.html +0 -0
  31. {ccs_digitalmarketplace_frontend_jinja-4.10.1 → ccs_digitalmarketplace_frontend_jinja-4.11.0}/digitalmarketplace_frontend_jinja/templates/components/previous-next-pagination/macro.html +0 -0
  32. {ccs_digitalmarketplace_frontend_jinja-4.10.1 → ccs_digitalmarketplace_frontend_jinja-4.11.0}/digitalmarketplace_frontend_jinja/templates/components/question/macro.html +0 -0
  33. {ccs_digitalmarketplace_frontend_jinja-4.10.1 → ccs_digitalmarketplace_frontend_jinja-4.11.0}/digitalmarketplace_frontend_jinja/templates/components/question-boolean/macro.html +0 -0
  34. {ccs_digitalmarketplace_frontend_jinja-4.10.1 → ccs_digitalmarketplace_frontend_jinja-4.11.0}/digitalmarketplace_frontend_jinja/templates/components/question-character-count/macro.html +0 -0
  35. {ccs_digitalmarketplace_frontend_jinja-4.10.1 → ccs_digitalmarketplace_frontend_jinja-4.11.0}/digitalmarketplace_frontend_jinja/templates/components/question-checkbox-tree/macro.html +0 -0
  36. {ccs_digitalmarketplace_frontend_jinja-4.10.1 → ccs_digitalmarketplace_frontend_jinja-4.11.0}/digitalmarketplace_frontend_jinja/templates/components/question-date/macro.html +0 -0
  37. {ccs_digitalmarketplace_frontend_jinja-4.10.1 → ccs_digitalmarketplace_frontend_jinja-4.11.0}/digitalmarketplace_frontend_jinja/templates/components/question-format-hint/macro.html +0 -0
  38. {ccs_digitalmarketplace_frontend_jinja-4.10.1 → ccs_digitalmarketplace_frontend_jinja-4.11.0}/digitalmarketplace_frontend_jinja/templates/components/question-hidden/macro.html +0 -0
  39. {ccs_digitalmarketplace_frontend_jinja-4.10.1 → ccs_digitalmarketplace_frontend_jinja-4.11.0}/digitalmarketplace_frontend_jinja/templates/components/question-list/macro.html +0 -0
  40. {ccs_digitalmarketplace_frontend_jinja-4.10.1 → ccs_digitalmarketplace_frontend_jinja-4.11.0}/digitalmarketplace_frontend_jinja/templates/components/question-list-multiquestion/macro.html +0 -0
  41. {ccs_digitalmarketplace_frontend_jinja-4.10.1 → ccs_digitalmarketplace_frontend_jinja-4.11.0}/digitalmarketplace_frontend_jinja/templates/components/question-list-multiquestion-client-side/macro.html +0 -0
  42. {ccs_digitalmarketplace_frontend_jinja-4.10.1 → ccs_digitalmarketplace_frontend_jinja-4.11.0}/digitalmarketplace_frontend_jinja/templates/components/question-list-multiquestion-server-side/macro.html +0 -0
  43. {ccs_digitalmarketplace_frontend_jinja-4.10.1 → ccs_digitalmarketplace_frontend_jinja-4.11.0}/digitalmarketplace_frontend_jinja/templates/components/question-money/macro.html +0 -0
  44. {ccs_digitalmarketplace_frontend_jinja-4.10.1 → ccs_digitalmarketplace_frontend_jinja-4.11.0}/digitalmarketplace_frontend_jinja/templates/components/question-multiquestion/macro.html +0 -0
  45. {ccs_digitalmarketplace_frontend_jinja-4.10.1 → ccs_digitalmarketplace_frontend_jinja-4.11.0}/digitalmarketplace_frontend_jinja/templates/components/question-number/macro.html +0 -0
  46. {ccs_digitalmarketplace_frontend_jinja-4.10.1 → ccs_digitalmarketplace_frontend_jinja-4.11.0}/digitalmarketplace_frontend_jinja/templates/components/question-pricing/macro.html +0 -0
  47. {ccs_digitalmarketplace_frontend_jinja-4.10.1 → ccs_digitalmarketplace_frontend_jinja-4.11.0}/digitalmarketplace_frontend_jinja/templates/components/question-select/macro.html +0 -0
  48. {ccs_digitalmarketplace_frontend_jinja-4.10.1 → ccs_digitalmarketplace_frontend_jinja-4.11.0}/digitalmarketplace_frontend_jinja/templates/components/question-text/macro.html +0 -0
  49. {ccs_digitalmarketplace_frontend_jinja-4.10.1 → ccs_digitalmarketplace_frontend_jinja-4.11.0}/digitalmarketplace_frontend_jinja/templates/components/question-upload/macro.html +0 -0
  50. {ccs_digitalmarketplace_frontend_jinja-4.10.1 → ccs_digitalmarketplace_frontend_jinja-4.11.0}/digitalmarketplace_frontend_jinja/templates/components/radios-from-form/macro.html +0 -0
  51. {ccs_digitalmarketplace_frontend_jinja-4.10.1 → ccs_digitalmarketplace_frontend_jinja-4.11.0}/digitalmarketplace_frontend_jinja/templates/components/search-box/macro.html +0 -0
  52. {ccs_digitalmarketplace_frontend_jinja-4.10.1 → ccs_digitalmarketplace_frontend_jinja-4.11.0}/digitalmarketplace_frontend_jinja/templates/components/select-country-from-form/macro.html +0 -0
  53. {ccs_digitalmarketplace_frontend_jinja-4.10.1 → ccs_digitalmarketplace_frontend_jinja-4.11.0}/digitalmarketplace_frontend_jinja/templates/components/summary-content/macro.html +0 -0
  54. {ccs_digitalmarketplace_frontend_jinja-4.10.1 → ccs_digitalmarketplace_frontend_jinja-4.11.0}/digitalmarketplace_frontend_jinja/templates/components/summary-content-boolean/macro.html +0 -0
  55. {ccs_digitalmarketplace_frontend_jinja-4.10.1 → ccs_digitalmarketplace_frontend_jinja-4.11.0}/digitalmarketplace_frontend_jinja/templates/components/summary-content-checkbox-tree/macro.html +0 -0
  56. {ccs_digitalmarketplace_frontend_jinja-4.10.1 → ccs_digitalmarketplace_frontend_jinja-4.11.0}/digitalmarketplace_frontend_jinja/templates/components/summary-content-list/macro.html +0 -0
  57. {ccs_digitalmarketplace_frontend_jinja-4.10.1 → ccs_digitalmarketplace_frontend_jinja-4.11.0}/digitalmarketplace_frontend_jinja/templates/components/summary-content-list-multiquestion/macro.html +0 -0
  58. {ccs_digitalmarketplace_frontend_jinja-4.10.1 → ccs_digitalmarketplace_frontend_jinja-4.11.0}/digitalmarketplace_frontend_jinja/templates/components/summary-content-multiquestion/macro.html +0 -0
  59. {ccs_digitalmarketplace_frontend_jinja-4.10.1 → ccs_digitalmarketplace_frontend_jinja-4.11.0}/digitalmarketplace_frontend_jinja/templates/components/summary-content-number/macro.html +0 -0
  60. {ccs_digitalmarketplace_frontend_jinja-4.10.1 → ccs_digitalmarketplace_frontend_jinja-4.11.0}/digitalmarketplace_frontend_jinja/templates/components/summary-content-radios/macro.html +0 -0
  61. {ccs_digitalmarketplace_frontend_jinja-4.10.1 → ccs_digitalmarketplace_frontend_jinja-4.11.0}/digitalmarketplace_frontend_jinja/templates/components/summary-content-service-id/macro.html +0 -0
  62. {ccs_digitalmarketplace_frontend_jinja-4.10.1 → ccs_digitalmarketplace_frontend_jinja-4.11.0}/digitalmarketplace_frontend_jinja/templates/components/summary-content-text/macro.html +0 -0
  63. {ccs_digitalmarketplace_frontend_jinja-4.10.1 → ccs_digitalmarketplace_frontend_jinja-4.11.0}/digitalmarketplace_frontend_jinja/templates/components/summary-content-upload/macro.html +0 -0
  64. {ccs_digitalmarketplace_frontend_jinja-4.10.1 → ccs_digitalmarketplace_frontend_jinja-4.11.0}/digitalmarketplace_frontend_jinja/templates/components/system-message-banner/macro.html +0 -0
  65. {ccs_digitalmarketplace_frontend_jinja-4.10.1 → ccs_digitalmarketplace_frontend_jinja-4.11.0}/digitalmarketplace_frontend_jinja/templates/components/temporary-message/macro.html +0 -0
  66. {ccs_digitalmarketplace_frontend_jinja-4.10.1 → ccs_digitalmarketplace_frontend_jinja-4.11.0}/digitalmarketplace_frontend_jinja/templates/errors/400.html +0 -0
  67. {ccs_digitalmarketplace_frontend_jinja-4.10.1 → ccs_digitalmarketplace_frontend_jinja-4.11.0}/digitalmarketplace_frontend_jinja/templates/errors/403.html +0 -0
  68. {ccs_digitalmarketplace_frontend_jinja-4.10.1 → ccs_digitalmarketplace_frontend_jinja-4.11.0}/digitalmarketplace_frontend_jinja/templates/errors/404.html +0 -0
  69. {ccs_digitalmarketplace_frontend_jinja-4.10.1 → ccs_digitalmarketplace_frontend_jinja-4.11.0}/digitalmarketplace_frontend_jinja/templates/errors/410.html +0 -0
  70. {ccs_digitalmarketplace_frontend_jinja-4.10.1 → ccs_digitalmarketplace_frontend_jinja-4.11.0}/digitalmarketplace_frontend_jinja/templates/errors/500.html +0 -0
  71. {ccs_digitalmarketplace_frontend_jinja-4.10.1 → ccs_digitalmarketplace_frontend_jinja-4.11.0}/digitalmarketplace_frontend_jinja/templates/layouts/_custom_dimensions.html +0 -0
  72. {ccs_digitalmarketplace_frontend_jinja-4.10.1 → ccs_digitalmarketplace_frontend_jinja-4.11.0}/digitalmarketplace_frontend_jinja/templates/layouts/_site_verification.html +0 -0
  73. {ccs_digitalmarketplace_frontend_jinja-4.10.1 → ccs_digitalmarketplace_frontend_jinja-4.11.0}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ccs-digitalmarketplace-frontend-jinja
3
- Version: 4.10.1
3
+ Version: 4.11.0
4
4
  Summary: Jinja templates for Digital Marketplace apps.
5
5
  Author: CCS Developers
6
6
  Project-URL: Homepage, https://github.com/Crown-Commercial-Service/ccs-digitalmarketplace-frontend-jinja
@@ -15,7 +15,7 @@ Requires-Dist: ccs-govuk-frontend-jinja<2,>=1.5
15
15
  Requires-Dist: ccs-digitalmarketplace-utils>=69.0.0
16
16
  Provides-Extra: dev
17
17
  Requires-Dist: flake8==7.3.0; extra == "dev"
18
- Requires-Dist: mypy==1.17.0; extra == "dev"
18
+ Requires-Dist: mypy==1.17.1; extra == "dev"
19
19
  Requires-Dist: pytest==8.4.1; extra == "dev"
20
20
  Requires-Dist: lxml==6.0.0; extra == "dev"
21
21
  Requires-Dist: xmldiff==2.7.0; extra == "dev"
@@ -41,6 +41,7 @@ The following table shows the version of Digital Marketplace Frontend Jinja that
41
41
 
42
42
  | Digital Marketplace Frontend Jinja Version | Target CCS Digital Marketplace GOV.UK Frontend Version |
43
43
  | ------------------------------------------ | ------------------------------------------------------ |
44
+ | [4.11.0](https://github.com/Crown-Commercial-Service/ccs-digitalmarketplace-frontend-jinja/releases/tag/4.11.0) | [3.11.0](https://github.com/Crown-Commercial-Service/ccs-digitalmarketplace-govuk-frontend/releases/tag/v3.11.0) |
44
45
  | [4.10.1](https://github.com/Crown-Commercial-Service/ccs-digitalmarketplace-frontend-jinja/releases/tag/4.10.1) | [3.10.1](https://github.com/Crown-Commercial-Service/ccs-digitalmarketplace-govuk-frontend/releases/tag/v3.10.1) |
45
46
  | [4.10.0](https://github.com/Crown-Commercial-Service/ccs-digitalmarketplace-frontend-jinja/releases/tag/4.10.0) | [3.10.0](https://github.com/Crown-Commercial-Service/ccs-digitalmarketplace-govuk-frontend/releases/tag/v3.10.0) |
46
47
  | [4.9.2](https://github.com/Crown-Commercial-Service/ccs-digitalmarketplace-frontend-jinja/releases/tag/4.9.2) | [3.9.2](https://github.com/Crown-Commercial-Service/ccs-digitalmarketplace-govuk-frontend/releases/tag/v3.9.2) |
@@ -16,6 +16,7 @@ The following table shows the version of Digital Marketplace Frontend Jinja that
16
16
 
17
17
  | Digital Marketplace Frontend Jinja Version | Target CCS Digital Marketplace GOV.UK Frontend Version |
18
18
  | ------------------------------------------ | ------------------------------------------------------ |
19
+ | [4.11.0](https://github.com/Crown-Commercial-Service/ccs-digitalmarketplace-frontend-jinja/releases/tag/4.11.0) | [3.11.0](https://github.com/Crown-Commercial-Service/ccs-digitalmarketplace-govuk-frontend/releases/tag/v3.11.0) |
19
20
  | [4.10.1](https://github.com/Crown-Commercial-Service/ccs-digitalmarketplace-frontend-jinja/releases/tag/4.10.1) | [3.10.1](https://github.com/Crown-Commercial-Service/ccs-digitalmarketplace-govuk-frontend/releases/tag/v3.10.1) |
20
21
  | [4.10.0](https://github.com/Crown-Commercial-Service/ccs-digitalmarketplace-frontend-jinja/releases/tag/4.10.0) | [3.10.0](https://github.com/Crown-Commercial-Service/ccs-digitalmarketplace-govuk-frontend/releases/tag/v3.10.0) |
21
22
  | [4.9.2](https://github.com/Crown-Commercial-Service/ccs-digitalmarketplace-frontend-jinja/releases/tag/4.9.2) | [3.9.2](https://github.com/Crown-Commercial-Service/ccs-digitalmarketplace-govuk-frontend/releases/tag/v3.9.2) |
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ccs-digitalmarketplace-frontend-jinja
3
- Version: 4.10.1
3
+ Version: 4.11.0
4
4
  Summary: Jinja templates for Digital Marketplace apps.
5
5
  Author: CCS Developers
6
6
  Project-URL: Homepage, https://github.com/Crown-Commercial-Service/ccs-digitalmarketplace-frontend-jinja
@@ -15,7 +15,7 @@ Requires-Dist: ccs-govuk-frontend-jinja<2,>=1.5
15
15
  Requires-Dist: ccs-digitalmarketplace-utils>=69.0.0
16
16
  Provides-Extra: dev
17
17
  Requires-Dist: flake8==7.3.0; extra == "dev"
18
- Requires-Dist: mypy==1.17.0; extra == "dev"
18
+ Requires-Dist: mypy==1.17.1; extra == "dev"
19
19
  Requires-Dist: pytest==8.4.1; extra == "dev"
20
20
  Requires-Dist: lxml==6.0.0; extra == "dev"
21
21
  Requires-Dist: xmldiff==2.7.0; extra == "dev"
@@ -41,6 +41,7 @@ The following table shows the version of Digital Marketplace Frontend Jinja that
41
41
 
42
42
  | Digital Marketplace Frontend Jinja Version | Target CCS Digital Marketplace GOV.UK Frontend Version |
43
43
  | ------------------------------------------ | ------------------------------------------------------ |
44
+ | [4.11.0](https://github.com/Crown-Commercial-Service/ccs-digitalmarketplace-frontend-jinja/releases/tag/4.11.0) | [3.11.0](https://github.com/Crown-Commercial-Service/ccs-digitalmarketplace-govuk-frontend/releases/tag/v3.11.0) |
44
45
  | [4.10.1](https://github.com/Crown-Commercial-Service/ccs-digitalmarketplace-frontend-jinja/releases/tag/4.10.1) | [3.10.1](https://github.com/Crown-Commercial-Service/ccs-digitalmarketplace-govuk-frontend/releases/tag/v3.10.1) |
45
46
  | [4.10.0](https://github.com/Crown-Commercial-Service/ccs-digitalmarketplace-frontend-jinja/releases/tag/4.10.0) | [3.10.0](https://github.com/Crown-Commercial-Service/ccs-digitalmarketplace-govuk-frontend/releases/tag/v3.10.0) |
46
47
  | [4.9.2](https://github.com/Crown-Commercial-Service/ccs-digitalmarketplace-frontend-jinja/releases/tag/4.9.2) | [3.9.2](https://github.com/Crown-Commercial-Service/ccs-digitalmarketplace-govuk-frontend/releases/tag/v3.9.2) |
@@ -4,7 +4,7 @@ ccs-digitalmarketplace-utils>=69.0.0
4
4
 
5
5
  [dev]
6
6
  flake8==7.3.0
7
- mypy==1.17.0
7
+ mypy==1.17.1
8
8
  pytest==8.4.1
9
9
  lxml==6.0.0
10
10
  xmldiff==2.7.0
@@ -43,14 +43,20 @@
43
43
  {% set checkboxItems = [] %}
44
44
 
45
45
  {% for label in option.options %}
46
- {% set value = label.value if label.value else label.label %}
47
- {% set checkboxItem = {
48
- "text": label.label,
49
- "value": value,
50
- "checked": value in values
51
- } %}
52
- {% if label.description %}
53
- {% set _checkboxItem = checkboxItem.__setitem__("hint", { "html": label.description }) %}
46
+ {% if label.divider %}
47
+ {% set checkboxItem = {
48
+ "divider": label.divider | safe
49
+ } %}
50
+ {% else %}
51
+ {% set value = label.value if label.value else label.label %}
52
+ {% set checkboxItem = {
53
+ "text": label.label,
54
+ "value": value,
55
+ "checked": value in values
56
+ } %}
57
+ {% if label.description %}
58
+ {% set _checkboxItem = checkboxItem.__setitem__("hint", { "html": label.description }) %}
59
+ {% endif %}
54
60
  {% endif %}
55
61
  {% set _checkboxItems = checkboxItems.append(checkboxItem) %}
56
62
  {% endfor %}
@@ -21,25 +21,29 @@
21
21
  {% endif %}
22
22
 
23
23
  {% for option in params.question.options %}
24
- {% set value = option.value if option.value else option.label %}
25
- {% set item = {
26
- "text": option.label,
27
- "value": value,
28
- "checked": value in (params.data[name] or [] if params.data else [])
29
- } %}
30
- {% if option.description %}
31
- {% set _item = item.__setitem__('hint', { "html": option.description }) %}
32
- {% endif %}
33
- {% if valueToQuestions[value] %}
34
- {% set data_targets = [] %}
35
- {% for data_target in valueToQuestions[value].split(" ") %}
36
- {% if params.list_multi_question_index != undefined %}
37
- {% set _data_targets = data_targets.append("{}-{}".format(data_target, params.list_multi_question_index)) %}
38
- {% else %}
39
- {% set _data_targets = data_targets.append(data_target) %}
40
- {% endif %}
41
- {% endfor %}
42
- {% set _item = item.__setitem__('attributes', { 'data-target': " ".join(data_targets) }) %}
24
+ {% if option.divider %}
25
+ {% set item = { "divider": option.divider } %}
26
+ {% else %}
27
+ {% set value = option.value if option.value else option.label %}
28
+ {% set item = {
29
+ "text": option.label,
30
+ "value": value,
31
+ "checked": value in (params.data[name] or [] if params.data else [])
32
+ } %}
33
+ {% if option.description %}
34
+ {% set _item = item.__setitem__('hint', { "html": option.description }) %}
35
+ {% endif %}
36
+ {% if valueToQuestions[value] %}
37
+ {% set data_targets = [] %}
38
+ {% for data_target in valueToQuestions[value].split(" ") %}
39
+ {% if params.list_multi_question_index != undefined %}
40
+ {% set _data_targets = data_targets.append("{}-{}".format(data_target, params.list_multi_question_index)) %}
41
+ {% else %}
42
+ {% set _data_targets = data_targets.append(data_target) %}
43
+ {% endif %}
44
+ {% endfor %}
45
+ {% set _item = item.__setitem__('attributes', { 'data-target': " ".join(data_targets) }) %}
46
+ {% endif %}
43
47
  {% endif %}
44
48
  {% set _items = items.append(item) %}
45
49
  {% endfor %}
@@ -21,25 +21,29 @@
21
21
  {% endif %}
22
22
 
23
23
  {% for option in params.question.options %}
24
- {% set value = option.value if option.value else option.label %}
25
- {% set item = {
26
- "text": option.label,
27
- "value": value,
28
- "checked": value == params.data[name] if params.data
29
- } %}
30
- {% if option.description %}
31
- {% set _item = item.__setitem__('hint', { "html": option.description }) %}
32
- {% endif %}
33
- {% if valueToQuestions[value] %}
34
- {% set data_targets = [] %}
35
- {% for data_target in valueToQuestions[value].split(" ") %}
36
- {% if params.list_multi_question_index != undefined %}
37
- {% set _data_targets = data_targets.append("{}-{}".format(data_target, params.list_multi_question_index)) %}
38
- {% else %}
39
- {% set _data_targets = data_targets.append(data_target) %}
40
- {% endif %}
41
- {% endfor %}
42
- {% set _item = item.__setitem__('attributes', { 'data-target': " ".join(data_targets) }) %}
24
+ {% if option.divider %}
25
+ {% set item = { "divider": option.divider } %}
26
+ {% else %}
27
+ {% set value = option.value if option.value else option.label %}
28
+ {% set item = {
29
+ "text": option.label,
30
+ "value": value,
31
+ "checked": value == params.data[name] if params.data
32
+ } %}
33
+ {% if option.description %}
34
+ {% set _item = item.__setitem__('hint', { "html": option.description }) %}
35
+ {% endif %}
36
+ {% if valueToQuestions[value] %}
37
+ {% set data_targets = [] %}
38
+ {% for data_target in valueToQuestions[value].split(" ") %}
39
+ {% if params.list_multi_question_index != undefined %}
40
+ {% set _data_targets = data_targets.append("{}-{}".format(data_target, params.list_multi_question_index)) %}
41
+ {% else %}
42
+ {% set _data_targets = data_targets.append(data_target) %}
43
+ {% endif %}
44
+ {% endfor %}
45
+ {% set _item = item.__setitem__('attributes', { 'data-target': " ".join(data_targets) }) %}
46
+ {% endif %}
43
47
  {% endif %}
44
48
  {% set _items = items.append(item) %}
45
49
  {% endfor %}
@@ -27,7 +27,7 @@ Changelog = "https://github.com/Crown-Commercial-Service/ccs-digitalmarketplace-
27
27
  [project.optional-dependencies]
28
28
  dev = [
29
29
  'flake8==7.3.0',
30
- 'mypy==1.17.0',
30
+ 'mypy==1.17.1',
31
31
  'pytest==8.4.1',
32
32
  'lxml==6.0.0',
33
33
  'xmldiff==2.7.0',