ccs-digitalmarketplace-frontend-jinja 4.6.0__py3-none-any.whl → 4.8.0__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.
- {ccs_digitalmarketplace_frontend_jinja-4.6.0.dist-info → ccs_digitalmarketplace_frontend_jinja-4.8.0.dist-info}/METADATA +3 -1
- {ccs_digitalmarketplace_frontend_jinja-4.6.0.dist-info → ccs_digitalmarketplace_frontend_jinja-4.8.0.dist-info}/RECORD +8 -8
- digitalmarketplace_frontend_jinja/__init__.py +1 -1
- digitalmarketplace_frontend_jinja/templates/components/question-checkbox-tree/macro.html +17 -5
- digitalmarketplace_frontend_jinja/templates/components/question-upload/macro.html +20 -4
- {ccs_digitalmarketplace_frontend_jinja-4.6.0.dist-info → ccs_digitalmarketplace_frontend_jinja-4.8.0.dist-info}/WHEEL +0 -0
- {ccs_digitalmarketplace_frontend_jinja-4.6.0.dist-info → ccs_digitalmarketplace_frontend_jinja-4.8.0.dist-info}/licenses/LICENCE +0 -0
- {ccs_digitalmarketplace_frontend_jinja-4.6.0.dist-info → ccs_digitalmarketplace_frontend_jinja-4.8.0.dist-info}/top_level.txt +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.8.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
|
|
@@ -41,6 +41,8 @@ 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.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) |
|
|
45
|
+
| [4.7.0](https://github.com/Crown-Commercial-Service/ccs-digitalmarketplace-frontend-jinja/releases/tag/4.7.0) | [3.7.0](https://github.com/Crown-Commercial-Service/ccs-digitalmarketplace-govuk-frontend/releases/tag/v3.7.0) |
|
|
44
46
|
| [4.6.0](https://github.com/Crown-Commercial-Service/ccs-digitalmarketplace-frontend-jinja/releases/tag/4.6.0) | [3.6.0](https://github.com/Crown-Commercial-Service/ccs-digitalmarketplace-govuk-frontend/releases/tag/v3.6.0) |
|
|
45
47
|
| [4.5.0](https://github.com/Crown-Commercial-Service/ccs-digitalmarketplace-frontend-jinja/releases/tag/4.5.0) | [3.5.0](https://github.com/Crown-Commercial-Service/ccs-digitalmarketplace-govuk-frontend/releases/tag/v3.5.0) |
|
|
46
48
|
| [4.4.0](https://github.com/Crown-Commercial-Service/ccs-digitalmarketplace-frontend-jinja/releases/tag/4.4.0) | [3.4.0](https://github.com/Crown-Commercial-Service/ccs-digitalmarketplace-govuk-frontend/releases/tag/v3.4.0) |
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
ccs_digitalmarketplace_frontend_jinja-4.
|
|
2
|
-
digitalmarketplace_frontend_jinja/__init__.py,sha256=
|
|
1
|
+
ccs_digitalmarketplace_frontend_jinja-4.8.0.dist-info/licenses/LICENCE,sha256=GbPuM26UomDfs5sMy6udIVXYC8grPSN7bSkO29-F5hI,1110
|
|
2
|
+
digitalmarketplace_frontend_jinja/__init__.py,sha256=7aYkgOQT0badLEXhK2h5IVtpc3G2GMvJTt0OqArXcK8,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,7 +19,7 @@ digitalmarketplace_frontend_jinja/templates/components/previous-next-pagination/
|
|
|
19
19
|
digitalmarketplace_frontend_jinja/templates/components/question/macro.html,sha256=lj0D5OopaFalkNG7_wRGHahHg7dbc7ddnMb_K7uv6QM,3722
|
|
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
|
|
22
|
+
digitalmarketplace_frontend_jinja/templates/components/question-checkbox-tree/macro.html,sha256=-nSYoI7rmStap6rp_0QIfcYVhs8EjyLW4r1Y0UsDF7A,4593
|
|
23
23
|
digitalmarketplace_frontend_jinja/templates/components/question-checkboxes/macro.html,sha256=LZzaZVJ8o1nkUBX4Lf_fjIoDeuxwpXnfJcYaOFYQUXY,2496
|
|
24
24
|
digitalmarketplace_frontend_jinja/templates/components/question-date/macro.html,sha256=D8UUNZTKuBXoAeWKWL3SLq_IUysOBfkC7Svgl1eYHIM,1948
|
|
25
25
|
digitalmarketplace_frontend_jinja/templates/components/question-format-hint/macro.html,sha256=x6xTgRJgucQ-FVzeTmHLRrD0ocKIOzzGJRIzYsNZIXw,368
|
|
@@ -35,7 +35,7 @@ digitalmarketplace_frontend_jinja/templates/components/question-pricing/macro.ht
|
|
|
35
35
|
digitalmarketplace_frontend_jinja/templates/components/question-radios/macro.html,sha256=UQVf1O4OxTJoA9kLLyLiaHBhxvRSUKXpnA5EkrvLLnw,2884
|
|
36
36
|
digitalmarketplace_frontend_jinja/templates/components/question-select/macro.html,sha256=HUSQiYWv9jMRkV4FdiyVojkGSns_dKoi_FUj9d5w3u0,2031
|
|
37
37
|
digitalmarketplace_frontend_jinja/templates/components/question-text/macro.html,sha256=OV3z43lBdJRYSJofygrWVu3Y4VxWuQAApgebN1kM0-o,1381
|
|
38
|
-
digitalmarketplace_frontend_jinja/templates/components/question-upload/macro.html,sha256=
|
|
38
|
+
digitalmarketplace_frontend_jinja/templates/components/question-upload/macro.html,sha256=FY3-g4U8BTsh0WmO41jsjL1UCj0E1j88WtCXTw99GsU,2635
|
|
39
39
|
digitalmarketplace_frontend_jinja/templates/components/radios-from-form/macro.html,sha256=DqXM84BLsAfLRtfjlLgKQ3-gjPGWFt0O5QdVOQiih60,1776
|
|
40
40
|
digitalmarketplace_frontend_jinja/templates/components/search-box/macro.html,sha256=QHf7Log2Gp31HHCVK3ufoLvJwLDusRmZXDmZ7ME9EtA,1028
|
|
41
41
|
digitalmarketplace_frontend_jinja/templates/components/select-country-from-form/macro.html,sha256=AHWNjovdZoLz5LP17l1U4XJlPirFTdVxsvUNLTWw-ik,1117
|
|
@@ -59,7 +59,7 @@ digitalmarketplace_frontend_jinja/templates/errors/410.html,sha256=ub7W3MRbIPQvj
|
|
|
59
59
|
digitalmarketplace_frontend_jinja/templates/errors/500.html,sha256=x1Lu8ATSPGGSXvjj1ZHVq-h9eBWLiUK2MxPHwqZCiDQ,408
|
|
60
60
|
digitalmarketplace_frontend_jinja/templates/layouts/_custom_dimensions.html,sha256=SglUULyYlEWLWYQ7luwKONuI2BnWbOnd5MOIblKZR3E,731
|
|
61
61
|
digitalmarketplace_frontend_jinja/templates/layouts/_site_verification.html,sha256=6YWaREd5cPw1u5V9zsVaCOWG_uJ9SUMNdZj9fLK2jU8,142
|
|
62
|
-
ccs_digitalmarketplace_frontend_jinja-4.
|
|
63
|
-
ccs_digitalmarketplace_frontend_jinja-4.
|
|
64
|
-
ccs_digitalmarketplace_frontend_jinja-4.
|
|
65
|
-
ccs_digitalmarketplace_frontend_jinja-4.
|
|
62
|
+
ccs_digitalmarketplace_frontend_jinja-4.8.0.dist-info/METADATA,sha256=v8LtVCGrNAjDvTOqganseCMiUYF2POUAFK_uKoj66wU,15465
|
|
63
|
+
ccs_digitalmarketplace_frontend_jinja-4.8.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
64
|
+
ccs_digitalmarketplace_frontend_jinja-4.8.0.dist-info/top_level.txt,sha256=MeEUNXXhcYp_c2URA_Npkpxj50E3hc3Eir0PWJjNIrw,34
|
|
65
|
+
ccs_digitalmarketplace_frontend_jinja-4.8.0.dist-info/RECORD,,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = '4.
|
|
1
|
+
__version__ = '4.8.0'
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
{% macro digitalmarketplaceQuestionCheckboxTree(params) %}
|
|
2
2
|
{%- from "govuk_frontend_jinja/components/fieldset/macro.html" import govukFieldset -%}
|
|
3
3
|
{%- from "govuk_frontend_jinja/components/checkboxes/macro.html" import govukCheckboxes -%}
|
|
4
|
+
{%- from "govuk_frontend_jinja/components/hint/macro.html" import govukHint -%}
|
|
4
5
|
{%- from "govuk_frontend_jinja/components/accordion/macro.html" import govukAccordion -%}
|
|
5
6
|
{%- from "govuk_frontend_jinja/components/error-message/macro.html" import govukErrorMessage -%}
|
|
7
|
+
{%- from "digitalmarketplace_frontend_jinja/components/question-format-hint/macro.html" import digitalmarketplaceQuestionFormatHint -%}
|
|
6
8
|
|
|
7
9
|
{% set name = params.question.id %}
|
|
8
10
|
{% set questionText = params.question.question + " ({})".format(params.question.optional_text if params.question.optional_text else "optional") if params.question.optional else params.question.question %}
|
|
@@ -18,9 +20,17 @@
|
|
|
18
20
|
"classes": 'dm-checkbox-tree',
|
|
19
21
|
"attributes": {
|
|
20
22
|
'data-module': 'dm-question-checkbox-tree',
|
|
21
|
-
'aria-describedby': "input-" + name if errorMessage
|
|
23
|
+
'aria-describedby': "input-" + name if errorMessage,
|
|
24
|
+
'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"
|
|
22
26
|
}
|
|
23
27
|
}) %}
|
|
28
|
+
{% if params.question.hint or params.question.question_advice %}
|
|
29
|
+
{{ govukHint({
|
|
30
|
+
"html": digitalmarketplaceQuestionFormatHint(params.question)
|
|
31
|
+
}) }}
|
|
32
|
+
{% endif %}
|
|
33
|
+
|
|
24
34
|
{% if errorMessage %}
|
|
25
35
|
{{ govukErrorMessage({
|
|
26
36
|
"text": errorMessage["message"],
|
|
@@ -30,9 +40,11 @@
|
|
|
30
40
|
|
|
31
41
|
<div class="govuk-grid-row">
|
|
32
42
|
<div class="dm-checkbox-tree__summary govuk-grid-column-one-third">
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
43
|
+
{% if params.question.number_of_items %}
|
|
44
|
+
<p class="govuk-body">
|
|
45
|
+
You can choose up to {{ params.question.number_of_items }} {{ params.question.item_name.plural if params.question.item_name else "categories" }}.
|
|
46
|
+
</p>
|
|
47
|
+
{% endif %}
|
|
36
48
|
<p class="dm-checkbox-tree__summary-total govuk-body">
|
|
37
49
|
<strong class="dm-checkbox-tree__summary-total-selected"></strong>
|
|
38
50
|
<span class="dm-checkbox-tree__summary-total-selected-text"></span>
|
|
@@ -54,7 +66,7 @@
|
|
|
54
66
|
{% endfor %}
|
|
55
67
|
|
|
56
68
|
{% set summaryHtml %}
|
|
57
|
-
{{ option.options | length }} categories<span class="dm-checkbox-tree__options-number-selected"></span>
|
|
69
|
+
{{ option.options | length }} {{ params.question.item_name.plural if params.question.item_name else "categories" }}<span class="dm-checkbox-tree__options-number-selected"></span>
|
|
58
70
|
{% endset %}
|
|
59
71
|
|
|
60
72
|
{% set _accordionItems = accordionItems.append({
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
{% macro digitalmarketplaceQuestionUpload(params) %}
|
|
2
2
|
{%- from "govuk_frontend_jinja/components/file-upload/macro.html" import govukFileUpload -%}
|
|
3
3
|
{%- from "digitalmarketplace_frontend_jinja/components/question-format-hint/macro.html" import digitalmarketplaceQuestionFormatHint -%}
|
|
4
|
+
{% from "govuk_frontend_jinja/components/button/macro.html" import govukButton %}
|
|
4
5
|
|
|
5
6
|
{% set name = params.question.id %}
|
|
6
7
|
{% set questionText = params.question.question + " ({})".format(params.question.optional_text if params.question.optional_text else "optional") if params.question.optional else params.question.question %}
|
|
@@ -13,10 +14,25 @@
|
|
|
13
14
|
<input type="hidden" id="input-{{ name }}-upload" name="{{ name }}-upload" value="{{ value }}">
|
|
14
15
|
<ul class="dm-document-upload-list">
|
|
15
16
|
<li class="dm-document-list-item">
|
|
16
|
-
<
|
|
17
|
-
<
|
|
18
|
-
|
|
19
|
-
|
|
17
|
+
<div class="govuk-grid-row">
|
|
18
|
+
<div class="govuk-grid-column-two-thirds">
|
|
19
|
+
<div class="dm-document-upload-with-icon">
|
|
20
|
+
<span class="dm-document-icon"></span>
|
|
21
|
+
Document uploaded {{ value | parse_document_upload_time | datetimeformat }}
|
|
22
|
+
</div>
|
|
23
|
+
</div>
|
|
24
|
+
<div class="govuk-grid-column-one-third">
|
|
25
|
+
{% if params.question.optional %}
|
|
26
|
+
{{ govukButton({
|
|
27
|
+
"text": "Remove upload",
|
|
28
|
+
"name": "remove-upload",
|
|
29
|
+
"value": name,
|
|
30
|
+
"classes": "govuk-button--secondary",
|
|
31
|
+
"preventDoubleClick": true
|
|
32
|
+
}) }}
|
|
33
|
+
{% endif %}
|
|
34
|
+
</div>
|
|
35
|
+
</div>
|
|
20
36
|
</li>
|
|
21
37
|
</ul>
|
|
22
38
|
{% endif %}
|
|
File without changes
|
|
File without changes
|