ccs-digitalmarketplace-frontend-jinja 4.9.2__tar.gz → 4.10.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.
- {ccs_digitalmarketplace_frontend_jinja-4.9.2/ccs_digitalmarketplace_frontend_jinja.egg-info → ccs_digitalmarketplace_frontend_jinja-4.10.0}/PKG-INFO +3 -2
- {ccs_digitalmarketplace_frontend_jinja-4.9.2 → ccs_digitalmarketplace_frontend_jinja-4.10.0}/README.md +1 -0
- {ccs_digitalmarketplace_frontend_jinja-4.9.2 → ccs_digitalmarketplace_frontend_jinja-4.10.0/ccs_digitalmarketplace_frontend_jinja.egg-info}/PKG-INFO +3 -2
- {ccs_digitalmarketplace_frontend_jinja-4.9.2 → ccs_digitalmarketplace_frontend_jinja-4.10.0}/ccs_digitalmarketplace_frontend_jinja.egg-info/requires.txt +1 -1
- ccs_digitalmarketplace_frontend_jinja-4.10.0/digitalmarketplace_frontend_jinja/__init__.py +1 -0
- {ccs_digitalmarketplace_frontend_jinja-4.9.2 → ccs_digitalmarketplace_frontend_jinja-4.10.0}/digitalmarketplace_frontend_jinja/templates/components/question-checkbox-tree/macro.html +53 -54
- {ccs_digitalmarketplace_frontend_jinja-4.9.2 → ccs_digitalmarketplace_frontend_jinja-4.10.0}/pyproject.toml +1 -1
- ccs_digitalmarketplace_frontend_jinja-4.9.2/digitalmarketplace_frontend_jinja/__init__.py +0 -1
- {ccs_digitalmarketplace_frontend_jinja-4.9.2 → ccs_digitalmarketplace_frontend_jinja-4.10.0}/LICENCE +0 -0
- {ccs_digitalmarketplace_frontend_jinja-4.9.2 → ccs_digitalmarketplace_frontend_jinja-4.10.0}/MANIFEST.in +0 -0
- {ccs_digitalmarketplace_frontend_jinja-4.9.2 → ccs_digitalmarketplace_frontend_jinja-4.10.0}/ccs_digitalmarketplace_frontend_jinja.egg-info/SOURCES.txt +0 -0
- {ccs_digitalmarketplace_frontend_jinja-4.9.2 → ccs_digitalmarketplace_frontend_jinja-4.10.0}/ccs_digitalmarketplace_frontend_jinja.egg-info/dependency_links.txt +0 -0
- {ccs_digitalmarketplace_frontend_jinja-4.9.2 → ccs_digitalmarketplace_frontend_jinja-4.10.0}/ccs_digitalmarketplace_frontend_jinja.egg-info/top_level.txt +0 -0
- {ccs_digitalmarketplace_frontend_jinja-4.9.2 → ccs_digitalmarketplace_frontend_jinja-4.10.0}/digitalmarketplace_frontend_jinja/templates/components/alert/macro.html +0 -0
- {ccs_digitalmarketplace_frontend_jinja-4.9.2 → ccs_digitalmarketplace_frontend_jinja-4.10.0}/digitalmarketplace_frontend_jinja/templates/components/attachment/macro.html +0 -0
- {ccs_digitalmarketplace_frontend_jinja-4.9.2 → ccs_digitalmarketplace_frontend_jinja-4.10.0}/digitalmarketplace_frontend_jinja/templates/components/banner/macro.html +0 -0
- {ccs_digitalmarketplace_frontend_jinja-4.9.2 → ccs_digitalmarketplace_frontend_jinja-4.10.0}/digitalmarketplace_frontend_jinja/templates/components/character-count-from-form/macro.html +0 -0
- {ccs_digitalmarketplace_frontend_jinja-4.9.2 → ccs_digitalmarketplace_frontend_jinja-4.10.0}/digitalmarketplace_frontend_jinja/templates/components/checkboxes-from-form/macro.html +0 -0
- {ccs_digitalmarketplace_frontend_jinja-4.9.2 → ccs_digitalmarketplace_frontend_jinja-4.10.0}/digitalmarketplace_frontend_jinja/templates/components/compliance-communication-attachment-row/macro.html +0 -0
- {ccs_digitalmarketplace_frontend_jinja-4.9.2 → ccs_digitalmarketplace_frontend_jinja-4.10.0}/digitalmarketplace_frontend_jinja/templates/components/compliance-communication-attachments/macro.html +0 -0
- {ccs_digitalmarketplace_frontend_jinja-4.9.2 → ccs_digitalmarketplace_frontend_jinja-4.10.0}/digitalmarketplace_frontend_jinja/templates/components/cookie-banner/macro.html +0 -0
- {ccs_digitalmarketplace_frontend_jinja-4.9.2 → ccs_digitalmarketplace_frontend_jinja-4.10.0}/digitalmarketplace_frontend_jinja/templates/components/documents/macro.html +0 -0
- {ccs_digitalmarketplace_frontend_jinja-4.9.2 → ccs_digitalmarketplace_frontend_jinja-4.10.0}/digitalmarketplace_frontend_jinja/templates/components/file-upload-from-form/macro.html +0 -0
- {ccs_digitalmarketplace_frontend_jinja-4.9.2 → ccs_digitalmarketplace_frontend_jinja-4.10.0}/digitalmarketplace_frontend_jinja/templates/components/footer/macro.html +0 -0
- {ccs_digitalmarketplace_frontend_jinja-4.9.2 → ccs_digitalmarketplace_frontend_jinja-4.10.0}/digitalmarketplace_frontend_jinja/templates/components/header/macro.html +0 -0
- {ccs_digitalmarketplace_frontend_jinja-4.9.2 → ccs_digitalmarketplace_frontend_jinja-4.10.0}/digitalmarketplace_frontend_jinja/templates/components/input-from-form/macro.html +0 -0
- {ccs_digitalmarketplace_frontend_jinja-4.9.2 → ccs_digitalmarketplace_frontend_jinja-4.10.0}/digitalmarketplace_frontend_jinja/templates/components/list-input/macro.html +0 -0
- {ccs_digitalmarketplace_frontend_jinja-4.9.2 → ccs_digitalmarketplace_frontend_jinja-4.10.0}/digitalmarketplace_frontend_jinja/templates/components/option-select/macro.html +0 -0
- {ccs_digitalmarketplace_frontend_jinja-4.9.2 → ccs_digitalmarketplace_frontend_jinja-4.10.0}/digitalmarketplace_frontend_jinja/templates/components/previous-next-pagination/macro.html +0 -0
- {ccs_digitalmarketplace_frontend_jinja-4.9.2 → ccs_digitalmarketplace_frontend_jinja-4.10.0}/digitalmarketplace_frontend_jinja/templates/components/question/macro.html +0 -0
- {ccs_digitalmarketplace_frontend_jinja-4.9.2 → ccs_digitalmarketplace_frontend_jinja-4.10.0}/digitalmarketplace_frontend_jinja/templates/components/question-boolean/macro.html +0 -0
- {ccs_digitalmarketplace_frontend_jinja-4.9.2 → ccs_digitalmarketplace_frontend_jinja-4.10.0}/digitalmarketplace_frontend_jinja/templates/components/question-character-count/macro.html +0 -0
- {ccs_digitalmarketplace_frontend_jinja-4.9.2 → ccs_digitalmarketplace_frontend_jinja-4.10.0}/digitalmarketplace_frontend_jinja/templates/components/question-checkbox-tree-large/macro.html +0 -0
- {ccs_digitalmarketplace_frontend_jinja-4.9.2 → ccs_digitalmarketplace_frontend_jinja-4.10.0}/digitalmarketplace_frontend_jinja/templates/components/question-checkboxes/macro.html +0 -0
- {ccs_digitalmarketplace_frontend_jinja-4.9.2 → ccs_digitalmarketplace_frontend_jinja-4.10.0}/digitalmarketplace_frontend_jinja/templates/components/question-date/macro.html +0 -0
- {ccs_digitalmarketplace_frontend_jinja-4.9.2 → ccs_digitalmarketplace_frontend_jinja-4.10.0}/digitalmarketplace_frontend_jinja/templates/components/question-format-hint/macro.html +0 -0
- {ccs_digitalmarketplace_frontend_jinja-4.9.2 → ccs_digitalmarketplace_frontend_jinja-4.10.0}/digitalmarketplace_frontend_jinja/templates/components/question-hidden/macro.html +0 -0
- {ccs_digitalmarketplace_frontend_jinja-4.9.2 → ccs_digitalmarketplace_frontend_jinja-4.10.0}/digitalmarketplace_frontend_jinja/templates/components/question-list/macro.html +0 -0
- {ccs_digitalmarketplace_frontend_jinja-4.9.2 → ccs_digitalmarketplace_frontend_jinja-4.10.0}/digitalmarketplace_frontend_jinja/templates/components/question-list-multiquestion/macro.html +0 -0
- {ccs_digitalmarketplace_frontend_jinja-4.9.2 → ccs_digitalmarketplace_frontend_jinja-4.10.0}/digitalmarketplace_frontend_jinja/templates/components/question-list-multiquestion-client-side/macro.html +0 -0
- {ccs_digitalmarketplace_frontend_jinja-4.9.2 → ccs_digitalmarketplace_frontend_jinja-4.10.0}/digitalmarketplace_frontend_jinja/templates/components/question-list-multiquestion-server-side/macro.html +0 -0
- {ccs_digitalmarketplace_frontend_jinja-4.9.2 → ccs_digitalmarketplace_frontend_jinja-4.10.0}/digitalmarketplace_frontend_jinja/templates/components/question-money/macro.html +0 -0
- {ccs_digitalmarketplace_frontend_jinja-4.9.2 → ccs_digitalmarketplace_frontend_jinja-4.10.0}/digitalmarketplace_frontend_jinja/templates/components/question-multiquestion/macro.html +0 -0
- {ccs_digitalmarketplace_frontend_jinja-4.9.2 → ccs_digitalmarketplace_frontend_jinja-4.10.0}/digitalmarketplace_frontend_jinja/templates/components/question-number/macro.html +0 -0
- {ccs_digitalmarketplace_frontend_jinja-4.9.2 → ccs_digitalmarketplace_frontend_jinja-4.10.0}/digitalmarketplace_frontend_jinja/templates/components/question-pricing/macro.html +0 -0
- {ccs_digitalmarketplace_frontend_jinja-4.9.2 → ccs_digitalmarketplace_frontend_jinja-4.10.0}/digitalmarketplace_frontend_jinja/templates/components/question-radios/macro.html +0 -0
- {ccs_digitalmarketplace_frontend_jinja-4.9.2 → ccs_digitalmarketplace_frontend_jinja-4.10.0}/digitalmarketplace_frontend_jinja/templates/components/question-select/macro.html +0 -0
- {ccs_digitalmarketplace_frontend_jinja-4.9.2 → ccs_digitalmarketplace_frontend_jinja-4.10.0}/digitalmarketplace_frontend_jinja/templates/components/question-text/macro.html +0 -0
- {ccs_digitalmarketplace_frontend_jinja-4.9.2 → ccs_digitalmarketplace_frontend_jinja-4.10.0}/digitalmarketplace_frontend_jinja/templates/components/question-upload/macro.html +0 -0
- {ccs_digitalmarketplace_frontend_jinja-4.9.2 → ccs_digitalmarketplace_frontend_jinja-4.10.0}/digitalmarketplace_frontend_jinja/templates/components/radios-from-form/macro.html +0 -0
- {ccs_digitalmarketplace_frontend_jinja-4.9.2 → ccs_digitalmarketplace_frontend_jinja-4.10.0}/digitalmarketplace_frontend_jinja/templates/components/search-box/macro.html +0 -0
- {ccs_digitalmarketplace_frontend_jinja-4.9.2 → ccs_digitalmarketplace_frontend_jinja-4.10.0}/digitalmarketplace_frontend_jinja/templates/components/select-country-from-form/macro.html +0 -0
- {ccs_digitalmarketplace_frontend_jinja-4.9.2 → ccs_digitalmarketplace_frontend_jinja-4.10.0}/digitalmarketplace_frontend_jinja/templates/components/summary-content/macro.html +0 -0
- {ccs_digitalmarketplace_frontend_jinja-4.9.2 → ccs_digitalmarketplace_frontend_jinja-4.10.0}/digitalmarketplace_frontend_jinja/templates/components/summary-content-boolean/macro.html +0 -0
- {ccs_digitalmarketplace_frontend_jinja-4.9.2 → ccs_digitalmarketplace_frontend_jinja-4.10.0}/digitalmarketplace_frontend_jinja/templates/components/summary-content-checkbox-tree/macro.html +0 -0
- {ccs_digitalmarketplace_frontend_jinja-4.9.2 → ccs_digitalmarketplace_frontend_jinja-4.10.0}/digitalmarketplace_frontend_jinja/templates/components/summary-content-list/macro.html +0 -0
- {ccs_digitalmarketplace_frontend_jinja-4.9.2 → ccs_digitalmarketplace_frontend_jinja-4.10.0}/digitalmarketplace_frontend_jinja/templates/components/summary-content-list-multiquestion/macro.html +0 -0
- {ccs_digitalmarketplace_frontend_jinja-4.9.2 → ccs_digitalmarketplace_frontend_jinja-4.10.0}/digitalmarketplace_frontend_jinja/templates/components/summary-content-multiquestion/macro.html +0 -0
- {ccs_digitalmarketplace_frontend_jinja-4.9.2 → ccs_digitalmarketplace_frontend_jinja-4.10.0}/digitalmarketplace_frontend_jinja/templates/components/summary-content-number/macro.html +0 -0
- {ccs_digitalmarketplace_frontend_jinja-4.9.2 → ccs_digitalmarketplace_frontend_jinja-4.10.0}/digitalmarketplace_frontend_jinja/templates/components/summary-content-radios/macro.html +0 -0
- {ccs_digitalmarketplace_frontend_jinja-4.9.2 → ccs_digitalmarketplace_frontend_jinja-4.10.0}/digitalmarketplace_frontend_jinja/templates/components/summary-content-service-id/macro.html +0 -0
- {ccs_digitalmarketplace_frontend_jinja-4.9.2 → ccs_digitalmarketplace_frontend_jinja-4.10.0}/digitalmarketplace_frontend_jinja/templates/components/summary-content-text/macro.html +0 -0
- {ccs_digitalmarketplace_frontend_jinja-4.9.2 → ccs_digitalmarketplace_frontend_jinja-4.10.0}/digitalmarketplace_frontend_jinja/templates/components/summary-content-upload/macro.html +0 -0
- {ccs_digitalmarketplace_frontend_jinja-4.9.2 → ccs_digitalmarketplace_frontend_jinja-4.10.0}/digitalmarketplace_frontend_jinja/templates/components/system-message-banner/macro.html +0 -0
- {ccs_digitalmarketplace_frontend_jinja-4.9.2 → ccs_digitalmarketplace_frontend_jinja-4.10.0}/digitalmarketplace_frontend_jinja/templates/components/temporary-message/macro.html +0 -0
- {ccs_digitalmarketplace_frontend_jinja-4.9.2 → ccs_digitalmarketplace_frontend_jinja-4.10.0}/digitalmarketplace_frontend_jinja/templates/errors/400.html +0 -0
- {ccs_digitalmarketplace_frontend_jinja-4.9.2 → ccs_digitalmarketplace_frontend_jinja-4.10.0}/digitalmarketplace_frontend_jinja/templates/errors/403.html +0 -0
- {ccs_digitalmarketplace_frontend_jinja-4.9.2 → ccs_digitalmarketplace_frontend_jinja-4.10.0}/digitalmarketplace_frontend_jinja/templates/errors/404.html +0 -0
- {ccs_digitalmarketplace_frontend_jinja-4.9.2 → ccs_digitalmarketplace_frontend_jinja-4.10.0}/digitalmarketplace_frontend_jinja/templates/errors/410.html +0 -0
- {ccs_digitalmarketplace_frontend_jinja-4.9.2 → ccs_digitalmarketplace_frontend_jinja-4.10.0}/digitalmarketplace_frontend_jinja/templates/errors/500.html +0 -0
- {ccs_digitalmarketplace_frontend_jinja-4.9.2 → ccs_digitalmarketplace_frontend_jinja-4.10.0}/digitalmarketplace_frontend_jinja/templates/layouts/_custom_dimensions.html +0 -0
- {ccs_digitalmarketplace_frontend_jinja-4.9.2 → ccs_digitalmarketplace_frontend_jinja-4.10.0}/digitalmarketplace_frontend_jinja/templates/layouts/_site_verification.html +0 -0
- {ccs_digitalmarketplace_frontend_jinja-4.9.2 → ccs_digitalmarketplace_frontend_jinja-4.10.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.
|
|
3
|
+
Version: 4.10.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.
|
|
18
|
+
Requires-Dist: mypy==1.17.0; 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.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) |
|
|
44
45
|
| [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) |
|
|
45
46
|
| [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) |
|
|
46
47
|
| [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) |
|
|
@@ -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.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) |
|
|
19
20
|
| [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) |
|
|
20
21
|
| [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) |
|
|
21
22
|
| [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) |
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: ccs-digitalmarketplace-frontend-jinja
|
|
3
|
-
Version: 4.
|
|
3
|
+
Version: 4.10.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.
|
|
18
|
+
Requires-Dist: mypy==1.17.0; 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.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) |
|
|
44
45
|
| [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) |
|
|
45
46
|
| [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) |
|
|
46
47
|
| [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) |
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = '4.10.0'
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
{%- from "govuk_frontend_jinja/components/hint/macro.html" import govukHint -%}
|
|
5
5
|
{%- from "govuk_frontend_jinja/components/accordion/macro.html" import govukAccordion -%}
|
|
6
6
|
{%- from "govuk_frontend_jinja/components/error-message/macro.html" import govukErrorMessage -%}
|
|
7
|
+
{%- from "govuk_frontend_jinja/components/tag/macro.html" import govukTag -%}
|
|
7
8
|
{%- from "digitalmarketplace_frontend_jinja/components/question-format-hint/macro.html" import digitalmarketplaceQuestionFormatHint -%}
|
|
8
9
|
|
|
9
10
|
{% set name = params.question.id %}
|
|
@@ -11,6 +12,53 @@
|
|
|
11
12
|
{% set errorMessage = params.errors[name] if params.errors %}
|
|
12
13
|
{% set values = params.data[name] or [] if params.data else [] %}
|
|
13
14
|
|
|
15
|
+
{% macro checkboxTreeCheckboxes(section, index) %}
|
|
16
|
+
{% set checkboxItems = [] %}
|
|
17
|
+
|
|
18
|
+
{% for option in section.options %}
|
|
19
|
+
{% set value = option.value if option.value else option.label %}
|
|
20
|
+
{% set _checkboxItems = checkboxItems.append({
|
|
21
|
+
"text": option.label,
|
|
22
|
+
"value": value,
|
|
23
|
+
"checked": value in values
|
|
24
|
+
}) %}
|
|
25
|
+
{% endfor %}
|
|
26
|
+
|
|
27
|
+
{{ govukCheckboxes({
|
|
28
|
+
"name": name,
|
|
29
|
+
"idPrefix": "input-" + name + '-' + index,
|
|
30
|
+
"items": checkboxItems,
|
|
31
|
+
"classes": "govuk-checkboxes--small"
|
|
32
|
+
}) }}
|
|
33
|
+
{% endmacro %}
|
|
34
|
+
|
|
35
|
+
{% macro checkboxTreeDetail(section, index) %}
|
|
36
|
+
<details id="details-{{ index }}" class="dm-checkbox-tree-details">
|
|
37
|
+
<summary class="dm-checkbox-tree-details__summary">
|
|
38
|
+
<div class="dm-checkbox-tree-details__summary-text">
|
|
39
|
+
<div class="dm-checkbox-tree-details__summary-text-label">
|
|
40
|
+
{{ section.label }}
|
|
41
|
+
</div>
|
|
42
|
+
<div class="dm-checkbox-tree-details__summary-text-count">
|
|
43
|
+
{{ govukTag({
|
|
44
|
+
"html": '<span class="dm-checkbox-tree-details__summary-text-count-selected"></span> selected',
|
|
45
|
+
"classes": 'govuk-tag--green govuk-visually-hidden'
|
|
46
|
+
}) }}
|
|
47
|
+
</div>
|
|
48
|
+
</div>
|
|
49
|
+
</summary>
|
|
50
|
+
<div class="dm-checkbox-tree-details__text">
|
|
51
|
+
{% if section.options[0].options %}
|
|
52
|
+
{% for option in section.options %}
|
|
53
|
+
{{ checkboxTreeDetail(option, index + (loop.index | string)) }}
|
|
54
|
+
{% endfor %}
|
|
55
|
+
{% else %}
|
|
56
|
+
{{ checkboxTreeCheckboxes(section, index) }}
|
|
57
|
+
{% endif %}
|
|
58
|
+
</div>
|
|
59
|
+
</details>
|
|
60
|
+
{% endmacro %}
|
|
61
|
+
|
|
14
62
|
<div class="govuk-form-group {%- if errorMessage %} govuk-form-group--error{% endif %}">
|
|
15
63
|
{% call govukFieldset({
|
|
16
64
|
"legend": {
|
|
@@ -22,7 +70,8 @@
|
|
|
22
70
|
'data-module': 'dm-question-checkbox-tree',
|
|
23
71
|
'aria-describedby': "input-" + name if errorMessage,
|
|
24
72
|
'data-item-name-singular': params.question.item_name.singular if params.question.item_name else "category",
|
|
25
|
-
'data-item-name-plural': params.question.item_name.plural if params.question.item_name else "categories"
|
|
73
|
+
'data-item-name-plural': params.question.item_name.plural if params.question.item_name else "categories",
|
|
74
|
+
'data-tier-restriction': params.question.tier_restriction
|
|
26
75
|
}
|
|
27
76
|
}) %}
|
|
28
77
|
{% if params.question.hint or params.question.question_advice %}
|
|
@@ -52,61 +101,11 @@
|
|
|
52
101
|
</div>
|
|
53
102
|
<div class="dm-checkbox-tree__options govuk-grid-column-two-thirds">
|
|
54
103
|
{% if params.question.options[0].options %}
|
|
55
|
-
{%
|
|
56
|
-
|
|
57
|
-
{% for option in params.question.options %}
|
|
58
|
-
{% set checkboxItems = [] %}
|
|
59
|
-
|
|
60
|
-
{% for label in option.options %}
|
|
61
|
-
{% set value = label.value if label.value else label.label %}
|
|
62
|
-
{% set _checkboxItems = checkboxItems.append({
|
|
63
|
-
"text": label.label,
|
|
64
|
-
"value": value,
|
|
65
|
-
"checked": value in values
|
|
66
|
-
}) %}
|
|
67
|
-
{% endfor %}
|
|
68
|
-
|
|
69
|
-
{% set summaryHtml %}
|
|
70
|
-
{{ option.options | length }} {{ params.question.item_name.plural if params.question.item_name else "categories" }}<span class="dm-checkbox-tree__options-number-selected"></span>
|
|
71
|
-
{% endset %}
|
|
72
|
-
|
|
73
|
-
{% set _accordionItems = accordionItems.append({
|
|
74
|
-
"heading": {
|
|
75
|
-
"text": option.label
|
|
76
|
-
},
|
|
77
|
-
"summary": {
|
|
78
|
-
"html": summaryHtml
|
|
79
|
-
},
|
|
80
|
-
"content": {
|
|
81
|
-
"html": govukCheckboxes({
|
|
82
|
-
"name": name,
|
|
83
|
-
"idPrefix": "input-" + name + '-' + loop.index | string,
|
|
84
|
-
"items": checkboxItems
|
|
85
|
-
})
|
|
86
|
-
}
|
|
87
|
-
}) %}
|
|
104
|
+
{% for section in params.question.options %}
|
|
105
|
+
{{ checkboxTreeDetail(section, loop.index | string) }}
|
|
88
106
|
{% endfor %}
|
|
89
|
-
|
|
90
|
-
{{ govukAccordion({
|
|
91
|
-
"id": "accordion-" + name,
|
|
92
|
-
"items": accordionItems
|
|
93
|
-
}) }}
|
|
94
107
|
{% else %}
|
|
95
|
-
{
|
|
96
|
-
|
|
97
|
-
{% for option in params.question.options %}
|
|
98
|
-
{% set _checkboxItems = checkboxItems.append({
|
|
99
|
-
"text": option.label,
|
|
100
|
-
"value": option.label,
|
|
101
|
-
"checked": option.label in values
|
|
102
|
-
}) %}
|
|
103
|
-
{% endfor %}
|
|
104
|
-
|
|
105
|
-
{{ govukCheckboxes({
|
|
106
|
-
"name": name,
|
|
107
|
-
"idPrefix": "input-" + name,
|
|
108
|
-
"items": checkboxItems
|
|
109
|
-
}) }}
|
|
108
|
+
{{ checkboxTreeCheckboxes(params.question, '0') }}
|
|
110
109
|
{% endif %}
|
|
111
110
|
</div>
|
|
112
111
|
</div>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = '4.9.2'
|
{ccs_digitalmarketplace_frontend_jinja-4.9.2 → ccs_digitalmarketplace_frontend_jinja-4.10.0}/LICENCE
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|