ccs-digitalmarketplace-frontend-jinja 4.7.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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ccs-digitalmarketplace-frontend-jinja
3
- Version: 4.7.0
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,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.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) |
44
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) |
45
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) |
46
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) |
@@ -1,5 +1,5 @@
1
- ccs_digitalmarketplace_frontend_jinja-4.7.0.dist-info/licenses/LICENCE,sha256=GbPuM26UomDfs5sMy6udIVXYC8grPSN7bSkO29-F5hI,1110
2
- digitalmarketplace_frontend_jinja/__init__.py,sha256=G32d2UVGXzvKEmNGcFTp413PKWdKFkcjXSvx3r2dSeQ,22
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
@@ -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=Xyl5Sg67ZsZsYSp4vIGkazcCvLF3C9rrnkKpNEykEmE,1955
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.7.0.dist-info/METADATA,sha256=vo84wwXYiSEAPfAa8hbws8LF2Yb5BR3KjhFJeaNOB4I,15238
63
- ccs_digitalmarketplace_frontend_jinja-4.7.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
64
- ccs_digitalmarketplace_frontend_jinja-4.7.0.dist-info/top_level.txt,sha256=MeEUNXXhcYp_c2URA_Npkpxj50E3hc3Eir0PWJjNIrw,34
65
- ccs_digitalmarketplace_frontend_jinja-4.7.0.dist-info/RECORD,,
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.7.0'
1
+ __version__ = '4.8.0'
@@ -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
- <span class="dm-document-upload-with-icon">
17
- <span class="dm-document-icon"></span>
18
- Document uploaded {{ value | parse_document_upload_time | datetimeformat }}
19
- </span>
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 %}