ccs-digitalmarketplace-frontend-jinja 4.9.1__py3-none-any.whl → 4.9.2__py3-none-any.whl

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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ccs-digitalmarketplace-frontend-jinja
3
- Version: 4.9.1
3
+ Version: 4.9.2
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
@@ -17,7 +17,7 @@ Provides-Extra: dev
17
17
  Requires-Dist: flake8==7.3.0; extra == "dev"
18
18
  Requires-Dist: mypy==1.16.1; extra == "dev"
19
19
  Requires-Dist: pytest==8.4.1; extra == "dev"
20
- Requires-Dist: lxml==5.4.0; extra == "dev"
20
+ Requires-Dist: lxml==6.0.0; extra == "dev"
21
21
  Requires-Dist: xmldiff==2.7.0; extra == "dev"
22
22
  Requires-Dist: flask==3.1.1; extra == "dev"
23
23
  Requires-Dist: pre-commit==4.2.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.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) |
44
45
  | [4.9.1](https://github.com/Crown-Commercial-Service/ccs-digitalmarketplace-frontend-jinja/releases/tag/4.9.1) | [3.9.1](https://github.com/Crown-Commercial-Service/ccs-digitalmarketplace-govuk-frontend/releases/tag/v3.9.1) |
45
46
  | [4.9.0](https://github.com/Crown-Commercial-Service/ccs-digitalmarketplace-frontend-jinja/releases/tag/4.9.0) | [3.9.0](https://github.com/Crown-Commercial-Service/ccs-digitalmarketplace-govuk-frontend/releases/tag/v3.9.0) |
46
47
  | [4.8.0](https://github.com/Crown-Commercial-Service/ccs-digitalmarketplace-frontend-jinja/releases/tag/4.8.0) | [3.8.0](https://github.com/Crown-Commercial-Service/ccs-digitalmarketplace-govuk-frontend/releases/tag/v3.8.0) |
@@ -1,5 +1,5 @@
1
- ccs_digitalmarketplace_frontend_jinja-4.9.1.dist-info/licenses/LICENCE,sha256=GbPuM26UomDfs5sMy6udIVXYC8grPSN7bSkO29-F5hI,1110
2
- digitalmarketplace_frontend_jinja/__init__.py,sha256=xO_U6E-yxaoT5EduONVRy_VPpXocMsQGZheueHdgSpo,22
1
+ ccs_digitalmarketplace_frontend_jinja-4.9.2.dist-info/licenses/LICENCE,sha256=GbPuM26UomDfs5sMy6udIVXYC8grPSN7bSkO29-F5hI,1110
2
+ digitalmarketplace_frontend_jinja/__init__.py,sha256=y4Ei3Es_AJyfd9oJGiUhtxfX8HtJs-wcbmr1otB2s4Y,22
3
3
  digitalmarketplace_frontend_jinja/templates/components/alert/macro.html,sha256=W4hQmVTEOTSON6ypLoV3cJNgBcCYN1akxy-Y1QZH8X0,992
4
4
  digitalmarketplace_frontend_jinja/templates/components/attachment/macro.html,sha256=0Fi8QqqwmPpZ3UBOjCDiUkfSOYxMYyTlBngnPJrZ7Zo,6452
5
5
  digitalmarketplace_frontend_jinja/templates/components/banner/macro.html,sha256=AsPQydTvw-SwcgczVZmbdlGMXT0SoilvhAtKrTskpME,905
@@ -19,8 +19,8 @@ digitalmarketplace_frontend_jinja/templates/components/previous-next-pagination/
19
19
  digitalmarketplace_frontend_jinja/templates/components/question/macro.html,sha256=MY8f4PTxEBb7ifBx-kurXrLivHW_RN-UpcojJdAjHLk,3985
20
20
  digitalmarketplace_frontend_jinja/templates/components/question-boolean/macro.html,sha256=DVxnbPGYfEa_FgYwLPccvYmS2wD-PC_GI1B_fkYGHho,2878
21
21
  digitalmarketplace_frontend_jinja/templates/components/question-character-count/macro.html,sha256=YMOJiATKyLByuPq8SuPsjN4WZfpSp5PIPtKks1lGnT8,1501
22
- digitalmarketplace_frontend_jinja/templates/components/question-checkbox-tree/macro.html,sha256=-nSYoI7rmStap6rp_0QIfcYVhs8EjyLW4r1Y0UsDF7A,4593
23
- digitalmarketplace_frontend_jinja/templates/components/question-checkbox-tree-large/macro.html,sha256=UteO9Lz5VbDiE5TS9W5LCGHUihx010SPlDBga35ce2g,3168
22
+ digitalmarketplace_frontend_jinja/templates/components/question-checkbox-tree/macro.html,sha256=4Q0U3R_9JqmHYL1hCvtlvTIzYf2ScY2g_wTDLyyNhg8,4657
23
+ digitalmarketplace_frontend_jinja/templates/components/question-checkbox-tree-large/macro.html,sha256=FEZisjywePPAqwTfN4L5fHeJXWDkNcuehg6h-8BotNw,3230
24
24
  digitalmarketplace_frontend_jinja/templates/components/question-checkboxes/macro.html,sha256=LZzaZVJ8o1nkUBX4Lf_fjIoDeuxwpXnfJcYaOFYQUXY,2496
25
25
  digitalmarketplace_frontend_jinja/templates/components/question-date/macro.html,sha256=D8UUNZTKuBXoAeWKWL3SLq_IUysOBfkC7Svgl1eYHIM,1948
26
26
  digitalmarketplace_frontend_jinja/templates/components/question-format-hint/macro.html,sha256=x6xTgRJgucQ-FVzeTmHLRrD0ocKIOzzGJRIzYsNZIXw,368
@@ -60,7 +60,7 @@ digitalmarketplace_frontend_jinja/templates/errors/410.html,sha256=ub7W3MRbIPQvj
60
60
  digitalmarketplace_frontend_jinja/templates/errors/500.html,sha256=x1Lu8ATSPGGSXvjj1ZHVq-h9eBWLiUK2MxPHwqZCiDQ,408
61
61
  digitalmarketplace_frontend_jinja/templates/layouts/_custom_dimensions.html,sha256=SglUULyYlEWLWYQ7luwKONuI2BnWbOnd5MOIblKZR3E,731
62
62
  digitalmarketplace_frontend_jinja/templates/layouts/_site_verification.html,sha256=6YWaREd5cPw1u5V9zsVaCOWG_uJ9SUMNdZj9fLK2jU8,142
63
- ccs_digitalmarketplace_frontend_jinja-4.9.1.dist-info/METADATA,sha256=UV2JAOYQ-hnnlt_-eD-ubzLLMm4GNiWDwEKAI_8R7HA,15969
64
- ccs_digitalmarketplace_frontend_jinja-4.9.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
65
- ccs_digitalmarketplace_frontend_jinja-4.9.1.dist-info/top_level.txt,sha256=MeEUNXXhcYp_c2URA_Npkpxj50E3hc3Eir0PWJjNIrw,34
66
- ccs_digitalmarketplace_frontend_jinja-4.9.1.dist-info/RECORD,,
63
+ ccs_digitalmarketplace_frontend_jinja-4.9.2.dist-info/METADATA,sha256=PcSHJTNb7d-bo5ItWVSE2Nu2CCbbFc6aN2GjKG6zkY0,16196
64
+ ccs_digitalmarketplace_frontend_jinja-4.9.2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
65
+ ccs_digitalmarketplace_frontend_jinja-4.9.2.dist-info/top_level.txt,sha256=MeEUNXXhcYp_c2URA_Npkpxj50E3hc3Eir0PWJjNIrw,34
66
+ ccs_digitalmarketplace_frontend_jinja-4.9.2.dist-info/RECORD,,
@@ -1 +1 @@
1
- __version__ = '4.9.1'
1
+ __version__ = '4.9.2'
@@ -58,10 +58,11 @@
58
58
  {% set checkboxItems = [] %}
59
59
 
60
60
  {% for label in option.options %}
61
+ {% set value = label.value if label.value else label.label %}
61
62
  {% set _checkboxItems = checkboxItems.append({
62
63
  "text": label.label,
63
- "value": label.label,
64
- "checked": label.label in values
64
+ "value": value,
65
+ "checked": value in values
65
66
  }) %}
66
67
  {% endfor %}
67
68
 
@@ -43,10 +43,11 @@
43
43
  {% set checkboxItems = [] %}
44
44
 
45
45
  {% for label in option.options %}
46
+ {% set value = label.value if label.value else label.label %}
46
47
  {% set checkboxItem = {
47
48
  "text": label.label,
48
- "value": label.label,
49
- "checked": label.label in values
49
+ "value": value,
50
+ "checked": value in values
50
51
  } %}
51
52
  {% if label.description %}
52
53
  {% set _checkboxItem = checkboxItem.__setitem__("hint", { "html": label.description }) %}