ccs-digitalmarketplace-frontend-jinja 4.12.1__tar.gz → 4.13.1__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 (75) hide show
  1. {ccs_digitalmarketplace_frontend_jinja-4.12.1/ccs_digitalmarketplace_frontend_jinja.egg-info → ccs_digitalmarketplace_frontend_jinja-4.13.1}/PKG-INFO +3 -1
  2. {ccs_digitalmarketplace_frontend_jinja-4.12.1 → ccs_digitalmarketplace_frontend_jinja-4.13.1}/README.md +2 -0
  3. {ccs_digitalmarketplace_frontend_jinja-4.12.1 → ccs_digitalmarketplace_frontend_jinja-4.13.1/ccs_digitalmarketplace_frontend_jinja.egg-info}/PKG-INFO +3 -1
  4. {ccs_digitalmarketplace_frontend_jinja-4.12.1 → ccs_digitalmarketplace_frontend_jinja-4.13.1}/ccs_digitalmarketplace_frontend_jinja.egg-info/SOURCES.txt +2 -0
  5. ccs_digitalmarketplace_frontend_jinja-4.13.1/digitalmarketplace_frontend_jinja/__init__.py +1 -0
  6. {ccs_digitalmarketplace_frontend_jinja-4.12.1 → ccs_digitalmarketplace_frontend_jinja-4.13.1}/digitalmarketplace_frontend_jinja/templates/components/question/macro.html +3 -0
  7. ccs_digitalmarketplace_frontend_jinja-4.13.1/digitalmarketplace_frontend_jinja/templates/components/question-formula/macro.html +102 -0
  8. {ccs_digitalmarketplace_frontend_jinja-4.12.1 → ccs_digitalmarketplace_frontend_jinja-4.13.1}/digitalmarketplace_frontend_jinja/templates/components/question-number/macro.html +3 -2
  9. {ccs_digitalmarketplace_frontend_jinja-4.12.1 → ccs_digitalmarketplace_frontend_jinja-4.13.1}/digitalmarketplace_frontend_jinja/templates/components/summary-content/macro.html +5 -0
  10. ccs_digitalmarketplace_frontend_jinja-4.13.1/digitalmarketplace_frontend_jinja/templates/components/summary-content-formula/macro.html +47 -0
  11. ccs_digitalmarketplace_frontend_jinja-4.12.1/digitalmarketplace_frontend_jinja/__init__.py +0 -1
  12. {ccs_digitalmarketplace_frontend_jinja-4.12.1 → ccs_digitalmarketplace_frontend_jinja-4.13.1}/LICENCE +0 -0
  13. {ccs_digitalmarketplace_frontend_jinja-4.12.1 → ccs_digitalmarketplace_frontend_jinja-4.13.1}/MANIFEST.in +0 -0
  14. {ccs_digitalmarketplace_frontend_jinja-4.12.1 → ccs_digitalmarketplace_frontend_jinja-4.13.1}/ccs_digitalmarketplace_frontend_jinja.egg-info/dependency_links.txt +0 -0
  15. {ccs_digitalmarketplace_frontend_jinja-4.12.1 → ccs_digitalmarketplace_frontend_jinja-4.13.1}/ccs_digitalmarketplace_frontend_jinja.egg-info/requires.txt +0 -0
  16. {ccs_digitalmarketplace_frontend_jinja-4.12.1 → ccs_digitalmarketplace_frontend_jinja-4.13.1}/ccs_digitalmarketplace_frontend_jinja.egg-info/top_level.txt +0 -0
  17. {ccs_digitalmarketplace_frontend_jinja-4.12.1 → ccs_digitalmarketplace_frontend_jinja-4.13.1}/digitalmarketplace_frontend_jinja/templates/components/alert/macro.html +0 -0
  18. {ccs_digitalmarketplace_frontend_jinja-4.12.1 → ccs_digitalmarketplace_frontend_jinja-4.13.1}/digitalmarketplace_frontend_jinja/templates/components/attachment/macro.html +0 -0
  19. {ccs_digitalmarketplace_frontend_jinja-4.12.1 → ccs_digitalmarketplace_frontend_jinja-4.13.1}/digitalmarketplace_frontend_jinja/templates/components/banner/macro.html +0 -0
  20. {ccs_digitalmarketplace_frontend_jinja-4.12.1 → ccs_digitalmarketplace_frontend_jinja-4.13.1}/digitalmarketplace_frontend_jinja/templates/components/character-count-from-form/macro.html +0 -0
  21. {ccs_digitalmarketplace_frontend_jinja-4.12.1 → ccs_digitalmarketplace_frontend_jinja-4.13.1}/digitalmarketplace_frontend_jinja/templates/components/checkboxes-from-form/macro.html +0 -0
  22. {ccs_digitalmarketplace_frontend_jinja-4.12.1 → ccs_digitalmarketplace_frontend_jinja-4.13.1}/digitalmarketplace_frontend_jinja/templates/components/compliance-communication-attachment-row/macro.html +0 -0
  23. {ccs_digitalmarketplace_frontend_jinja-4.12.1 → ccs_digitalmarketplace_frontend_jinja-4.13.1}/digitalmarketplace_frontend_jinja/templates/components/compliance-communication-attachments/macro.html +0 -0
  24. {ccs_digitalmarketplace_frontend_jinja-4.12.1 → ccs_digitalmarketplace_frontend_jinja-4.13.1}/digitalmarketplace_frontend_jinja/templates/components/cookie-banner/macro.html +0 -0
  25. {ccs_digitalmarketplace_frontend_jinja-4.12.1 → ccs_digitalmarketplace_frontend_jinja-4.13.1}/digitalmarketplace_frontend_jinja/templates/components/documents/macro.html +0 -0
  26. {ccs_digitalmarketplace_frontend_jinja-4.12.1 → ccs_digitalmarketplace_frontend_jinja-4.13.1}/digitalmarketplace_frontend_jinja/templates/components/file-upload-from-form/macro.html +0 -0
  27. {ccs_digitalmarketplace_frontend_jinja-4.12.1 → ccs_digitalmarketplace_frontend_jinja-4.13.1}/digitalmarketplace_frontend_jinja/templates/components/footer/macro.html +0 -0
  28. {ccs_digitalmarketplace_frontend_jinja-4.12.1 → ccs_digitalmarketplace_frontend_jinja-4.13.1}/digitalmarketplace_frontend_jinja/templates/components/header/macro.html +0 -0
  29. {ccs_digitalmarketplace_frontend_jinja-4.12.1 → ccs_digitalmarketplace_frontend_jinja-4.13.1}/digitalmarketplace_frontend_jinja/templates/components/input-from-form/macro.html +0 -0
  30. {ccs_digitalmarketplace_frontend_jinja-4.12.1 → ccs_digitalmarketplace_frontend_jinja-4.13.1}/digitalmarketplace_frontend_jinja/templates/components/list-input/macro.html +0 -0
  31. {ccs_digitalmarketplace_frontend_jinja-4.12.1 → ccs_digitalmarketplace_frontend_jinja-4.13.1}/digitalmarketplace_frontend_jinja/templates/components/option-select/macro.html +0 -0
  32. {ccs_digitalmarketplace_frontend_jinja-4.12.1 → ccs_digitalmarketplace_frontend_jinja-4.13.1}/digitalmarketplace_frontend_jinja/templates/components/previous-next-pagination/macro.html +0 -0
  33. {ccs_digitalmarketplace_frontend_jinja-4.12.1 → ccs_digitalmarketplace_frontend_jinja-4.13.1}/digitalmarketplace_frontend_jinja/templates/components/question-boolean/macro.html +0 -0
  34. {ccs_digitalmarketplace_frontend_jinja-4.12.1 → ccs_digitalmarketplace_frontend_jinja-4.13.1}/digitalmarketplace_frontend_jinja/templates/components/question-character-count/macro.html +0 -0
  35. {ccs_digitalmarketplace_frontend_jinja-4.12.1 → ccs_digitalmarketplace_frontend_jinja-4.13.1}/digitalmarketplace_frontend_jinja/templates/components/question-checkbox-tree/macro.html +0 -0
  36. {ccs_digitalmarketplace_frontend_jinja-4.12.1 → ccs_digitalmarketplace_frontend_jinja-4.13.1}/digitalmarketplace_frontend_jinja/templates/components/question-checkbox-tree-large/macro.html +0 -0
  37. {ccs_digitalmarketplace_frontend_jinja-4.12.1 → ccs_digitalmarketplace_frontend_jinja-4.13.1}/digitalmarketplace_frontend_jinja/templates/components/question-checkboxes/macro.html +0 -0
  38. {ccs_digitalmarketplace_frontend_jinja-4.12.1 → ccs_digitalmarketplace_frontend_jinja-4.13.1}/digitalmarketplace_frontend_jinja/templates/components/question-date/macro.html +0 -0
  39. {ccs_digitalmarketplace_frontend_jinja-4.12.1 → ccs_digitalmarketplace_frontend_jinja-4.13.1}/digitalmarketplace_frontend_jinja/templates/components/question-format-hint/macro.html +0 -0
  40. {ccs_digitalmarketplace_frontend_jinja-4.12.1 → ccs_digitalmarketplace_frontend_jinja-4.13.1}/digitalmarketplace_frontend_jinja/templates/components/question-hidden/macro.html +0 -0
  41. {ccs_digitalmarketplace_frontend_jinja-4.12.1 → ccs_digitalmarketplace_frontend_jinja-4.13.1}/digitalmarketplace_frontend_jinja/templates/components/question-list/macro.html +0 -0
  42. {ccs_digitalmarketplace_frontend_jinja-4.12.1 → ccs_digitalmarketplace_frontend_jinja-4.13.1}/digitalmarketplace_frontend_jinja/templates/components/question-list-multiquestion/macro.html +0 -0
  43. {ccs_digitalmarketplace_frontend_jinja-4.12.1 → ccs_digitalmarketplace_frontend_jinja-4.13.1}/digitalmarketplace_frontend_jinja/templates/components/question-list-multiquestion-client-side/macro.html +0 -0
  44. {ccs_digitalmarketplace_frontend_jinja-4.12.1 → ccs_digitalmarketplace_frontend_jinja-4.13.1}/digitalmarketplace_frontend_jinja/templates/components/question-list-multiquestion-server-side/macro.html +0 -0
  45. {ccs_digitalmarketplace_frontend_jinja-4.12.1 → ccs_digitalmarketplace_frontend_jinja-4.13.1}/digitalmarketplace_frontend_jinja/templates/components/question-money/macro.html +0 -0
  46. {ccs_digitalmarketplace_frontend_jinja-4.12.1 → ccs_digitalmarketplace_frontend_jinja-4.13.1}/digitalmarketplace_frontend_jinja/templates/components/question-multiquestion/macro.html +0 -0
  47. {ccs_digitalmarketplace_frontend_jinja-4.12.1 → ccs_digitalmarketplace_frontend_jinja-4.13.1}/digitalmarketplace_frontend_jinja/templates/components/question-pricing/macro.html +0 -0
  48. {ccs_digitalmarketplace_frontend_jinja-4.12.1 → ccs_digitalmarketplace_frontend_jinja-4.13.1}/digitalmarketplace_frontend_jinja/templates/components/question-radios/macro.html +0 -0
  49. {ccs_digitalmarketplace_frontend_jinja-4.12.1 → ccs_digitalmarketplace_frontend_jinja-4.13.1}/digitalmarketplace_frontend_jinja/templates/components/question-select/macro.html +0 -0
  50. {ccs_digitalmarketplace_frontend_jinja-4.12.1 → ccs_digitalmarketplace_frontend_jinja-4.13.1}/digitalmarketplace_frontend_jinja/templates/components/question-text/macro.html +0 -0
  51. {ccs_digitalmarketplace_frontend_jinja-4.12.1 → ccs_digitalmarketplace_frontend_jinja-4.13.1}/digitalmarketplace_frontend_jinja/templates/components/question-upload/macro.html +0 -0
  52. {ccs_digitalmarketplace_frontend_jinja-4.12.1 → ccs_digitalmarketplace_frontend_jinja-4.13.1}/digitalmarketplace_frontend_jinja/templates/components/radios-from-form/macro.html +0 -0
  53. {ccs_digitalmarketplace_frontend_jinja-4.12.1 → ccs_digitalmarketplace_frontend_jinja-4.13.1}/digitalmarketplace_frontend_jinja/templates/components/search-box/macro.html +0 -0
  54. {ccs_digitalmarketplace_frontend_jinja-4.12.1 → ccs_digitalmarketplace_frontend_jinja-4.13.1}/digitalmarketplace_frontend_jinja/templates/components/select-country-from-form/macro.html +0 -0
  55. {ccs_digitalmarketplace_frontend_jinja-4.12.1 → ccs_digitalmarketplace_frontend_jinja-4.13.1}/digitalmarketplace_frontend_jinja/templates/components/summary-content-boolean/macro.html +0 -0
  56. {ccs_digitalmarketplace_frontend_jinja-4.12.1 → ccs_digitalmarketplace_frontend_jinja-4.13.1}/digitalmarketplace_frontend_jinja/templates/components/summary-content-checkbox-tree/macro.html +0 -0
  57. {ccs_digitalmarketplace_frontend_jinja-4.12.1 → ccs_digitalmarketplace_frontend_jinja-4.13.1}/digitalmarketplace_frontend_jinja/templates/components/summary-content-list/macro.html +0 -0
  58. {ccs_digitalmarketplace_frontend_jinja-4.12.1 → ccs_digitalmarketplace_frontend_jinja-4.13.1}/digitalmarketplace_frontend_jinja/templates/components/summary-content-list-multiquestion/macro.html +0 -0
  59. {ccs_digitalmarketplace_frontend_jinja-4.12.1 → ccs_digitalmarketplace_frontend_jinja-4.13.1}/digitalmarketplace_frontend_jinja/templates/components/summary-content-multiquestion/macro.html +0 -0
  60. {ccs_digitalmarketplace_frontend_jinja-4.12.1 → ccs_digitalmarketplace_frontend_jinja-4.13.1}/digitalmarketplace_frontend_jinja/templates/components/summary-content-number/macro.html +0 -0
  61. {ccs_digitalmarketplace_frontend_jinja-4.12.1 → ccs_digitalmarketplace_frontend_jinja-4.13.1}/digitalmarketplace_frontend_jinja/templates/components/summary-content-radios/macro.html +0 -0
  62. {ccs_digitalmarketplace_frontend_jinja-4.12.1 → ccs_digitalmarketplace_frontend_jinja-4.13.1}/digitalmarketplace_frontend_jinja/templates/components/summary-content-service-id/macro.html +0 -0
  63. {ccs_digitalmarketplace_frontend_jinja-4.12.1 → ccs_digitalmarketplace_frontend_jinja-4.13.1}/digitalmarketplace_frontend_jinja/templates/components/summary-content-text/macro.html +0 -0
  64. {ccs_digitalmarketplace_frontend_jinja-4.12.1 → ccs_digitalmarketplace_frontend_jinja-4.13.1}/digitalmarketplace_frontend_jinja/templates/components/summary-content-upload/macro.html +0 -0
  65. {ccs_digitalmarketplace_frontend_jinja-4.12.1 → ccs_digitalmarketplace_frontend_jinja-4.13.1}/digitalmarketplace_frontend_jinja/templates/components/system-message-banner/macro.html +0 -0
  66. {ccs_digitalmarketplace_frontend_jinja-4.12.1 → ccs_digitalmarketplace_frontend_jinja-4.13.1}/digitalmarketplace_frontend_jinja/templates/components/temporary-message/macro.html +0 -0
  67. {ccs_digitalmarketplace_frontend_jinja-4.12.1 → ccs_digitalmarketplace_frontend_jinja-4.13.1}/digitalmarketplace_frontend_jinja/templates/errors/400.html +0 -0
  68. {ccs_digitalmarketplace_frontend_jinja-4.12.1 → ccs_digitalmarketplace_frontend_jinja-4.13.1}/digitalmarketplace_frontend_jinja/templates/errors/403.html +0 -0
  69. {ccs_digitalmarketplace_frontend_jinja-4.12.1 → ccs_digitalmarketplace_frontend_jinja-4.13.1}/digitalmarketplace_frontend_jinja/templates/errors/404.html +0 -0
  70. {ccs_digitalmarketplace_frontend_jinja-4.12.1 → ccs_digitalmarketplace_frontend_jinja-4.13.1}/digitalmarketplace_frontend_jinja/templates/errors/410.html +0 -0
  71. {ccs_digitalmarketplace_frontend_jinja-4.12.1 → ccs_digitalmarketplace_frontend_jinja-4.13.1}/digitalmarketplace_frontend_jinja/templates/errors/500.html +0 -0
  72. {ccs_digitalmarketplace_frontend_jinja-4.12.1 → ccs_digitalmarketplace_frontend_jinja-4.13.1}/digitalmarketplace_frontend_jinja/templates/layouts/_custom_dimensions.html +0 -0
  73. {ccs_digitalmarketplace_frontend_jinja-4.12.1 → ccs_digitalmarketplace_frontend_jinja-4.13.1}/digitalmarketplace_frontend_jinja/templates/layouts/_site_verification.html +0 -0
  74. {ccs_digitalmarketplace_frontend_jinja-4.12.1 → ccs_digitalmarketplace_frontend_jinja-4.13.1}/pyproject.toml +0 -0
  75. {ccs_digitalmarketplace_frontend_jinja-4.12.1 → ccs_digitalmarketplace_frontend_jinja-4.13.1}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ccs-digitalmarketplace-frontend-jinja
3
- Version: 4.12.1
3
+ Version: 4.13.1
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.13.1](https://github.com/Crown-Commercial-Service/ccs-digitalmarketplace-frontend-jinja/releases/tag/4.13.1) | [3.13.1](https://github.com/Crown-Commercial-Service/ccs-digitalmarketplace-govuk-frontend/releases/tag/v3.13.1) |
45
+ | [4.13.0](https://github.com/Crown-Commercial-Service/ccs-digitalmarketplace-frontend-jinja/releases/tag/4.13.0) | [3.13.0](https://github.com/Crown-Commercial-Service/ccs-digitalmarketplace-govuk-frontend/releases/tag/v3.13.0) |
44
46
  | [4.12.1](https://github.com/Crown-Commercial-Service/ccs-digitalmarketplace-frontend-jinja/releases/tag/4.12.1) | [3.12.1](https://github.com/Crown-Commercial-Service/ccs-digitalmarketplace-govuk-frontend/releases/tag/v3.12.1) |
45
47
  | [4.12.0](https://github.com/Crown-Commercial-Service/ccs-digitalmarketplace-frontend-jinja/releases/tag/4.12.0) | [3.12.0](https://github.com/Crown-Commercial-Service/ccs-digitalmarketplace-govuk-frontend/releases/tag/v3.12.0) |
46
48
  | [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) |
@@ -16,6 +16,8 @@ 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.13.1](https://github.com/Crown-Commercial-Service/ccs-digitalmarketplace-frontend-jinja/releases/tag/4.13.1) | [3.13.1](https://github.com/Crown-Commercial-Service/ccs-digitalmarketplace-govuk-frontend/releases/tag/v3.13.1) |
20
+ | [4.13.0](https://github.com/Crown-Commercial-Service/ccs-digitalmarketplace-frontend-jinja/releases/tag/4.13.0) | [3.13.0](https://github.com/Crown-Commercial-Service/ccs-digitalmarketplace-govuk-frontend/releases/tag/v3.13.0) |
19
21
  | [4.12.1](https://github.com/Crown-Commercial-Service/ccs-digitalmarketplace-frontend-jinja/releases/tag/4.12.1) | [3.12.1](https://github.com/Crown-Commercial-Service/ccs-digitalmarketplace-govuk-frontend/releases/tag/v3.12.1) |
20
22
  | [4.12.0](https://github.com/Crown-Commercial-Service/ccs-digitalmarketplace-frontend-jinja/releases/tag/4.12.0) | [3.12.0](https://github.com/Crown-Commercial-Service/ccs-digitalmarketplace-govuk-frontend/releases/tag/v3.12.0) |
21
23
  | [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) |
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ccs-digitalmarketplace-frontend-jinja
3
- Version: 4.12.1
3
+ Version: 4.13.1
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.13.1](https://github.com/Crown-Commercial-Service/ccs-digitalmarketplace-frontend-jinja/releases/tag/4.13.1) | [3.13.1](https://github.com/Crown-Commercial-Service/ccs-digitalmarketplace-govuk-frontend/releases/tag/v3.13.1) |
45
+ | [4.13.0](https://github.com/Crown-Commercial-Service/ccs-digitalmarketplace-frontend-jinja/releases/tag/4.13.0) | [3.13.0](https://github.com/Crown-Commercial-Service/ccs-digitalmarketplace-govuk-frontend/releases/tag/v3.13.0) |
44
46
  | [4.12.1](https://github.com/Crown-Commercial-Service/ccs-digitalmarketplace-frontend-jinja/releases/tag/4.12.1) | [3.12.1](https://github.com/Crown-Commercial-Service/ccs-digitalmarketplace-govuk-frontend/releases/tag/v3.12.1) |
45
47
  | [4.12.0](https://github.com/Crown-Commercial-Service/ccs-digitalmarketplace-frontend-jinja/releases/tag/4.12.0) | [3.12.0](https://github.com/Crown-Commercial-Service/ccs-digitalmarketplace-govuk-frontend/releases/tag/v3.12.0) |
46
48
  | [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) |
@@ -32,6 +32,7 @@ digitalmarketplace_frontend_jinja/templates/components/question-checkbox-tree-la
32
32
  digitalmarketplace_frontend_jinja/templates/components/question-checkboxes/macro.html
33
33
  digitalmarketplace_frontend_jinja/templates/components/question-date/macro.html
34
34
  digitalmarketplace_frontend_jinja/templates/components/question-format-hint/macro.html
35
+ digitalmarketplace_frontend_jinja/templates/components/question-formula/macro.html
35
36
  digitalmarketplace_frontend_jinja/templates/components/question-hidden/macro.html
36
37
  digitalmarketplace_frontend_jinja/templates/components/question-list/macro.html
37
38
  digitalmarketplace_frontend_jinja/templates/components/question-list-multiquestion/macro.html
@@ -51,6 +52,7 @@ digitalmarketplace_frontend_jinja/templates/components/select-country-from-form/
51
52
  digitalmarketplace_frontend_jinja/templates/components/summary-content/macro.html
52
53
  digitalmarketplace_frontend_jinja/templates/components/summary-content-boolean/macro.html
53
54
  digitalmarketplace_frontend_jinja/templates/components/summary-content-checkbox-tree/macro.html
55
+ digitalmarketplace_frontend_jinja/templates/components/summary-content-formula/macro.html
54
56
  digitalmarketplace_frontend_jinja/templates/components/summary-content-list/macro.html
55
57
  digitalmarketplace_frontend_jinja/templates/components/summary-content-list-multiquestion/macro.html
56
58
  digitalmarketplace_frontend_jinja/templates/components/summary-content-multiquestion/macro.html
@@ -15,6 +15,7 @@
15
15
  {%- from "digitalmarketplace_frontend_jinja/components/question-select/macro.html" import digitalmarketplaceQuestionSelect -%}
16
16
  {%- from "digitalmarketplace_frontend_jinja/components/question-multiquestion/macro.html" import digitalmarketplaceQuestionMultiquestion -%}
17
17
  {%- from "digitalmarketplace_frontend_jinja/components/question-list-multiquestion/macro.html" import digitalmarketplaceQuestionListMultiquestion -%}
18
+ {%- from "digitalmarketplace_frontend_jinja/components/question-formula/macro.html" import digitalmarketplaceQuestionFormula -%}
18
19
 
19
20
  <div
20
21
  class="question {% if params.question.hidden %}js-hidden dm-question__related-information" aria-hidden="false{% endif %}"
@@ -54,6 +55,8 @@
54
55
  {{ digitalmarketplaceQuestionMultiquestion(params) }}
55
56
  {% elif params.type == 'list_multiquestion' %}
56
57
  {{ digitalmarketplaceQuestionListMultiquestion(params) }}
58
+ {% elif params.type == 'formula' %}
59
+ {{ digitalmarketplaceQuestionFormula(params) }}
57
60
  {% endif %}
58
61
  </div>
59
62
 
@@ -0,0 +1,102 @@
1
+ {% macro digitalmarketplaceQuestionFormula(params) %}
2
+ {%- from "govuk_frontend_jinja/components/fieldset/macro.html" import govukFieldset -%}
3
+ {%- from "govuk_frontend_jinja/components/label/macro.html" import govukLabel -%}
4
+ {%- from "govuk_frontend_jinja/components/hint/macro.html" import govukHint -%}
5
+ {%- from "govuk_frontend_jinja/components/error-message/macro.html" import govukErrorMessage -%}
6
+ {%- from "digitalmarketplace_frontend_jinja/components/question-format-hint/macro.html" import digitalmarketplaceQuestionFormatHint -%}
7
+
8
+ {%- if params.question.questions -%}
9
+ {% call govukFieldset({
10
+ "legend": {
11
+ "text": params.question.question,
12
+ "classes": 'govuk-fieldset__legend--m'
13
+ }
14
+ }) %}
15
+ {%- if params.question.question_advice -%}
16
+ <div class="govuk-body">
17
+ {{ params.question.question_advice | safe }}
18
+ </div>
19
+ {%- endif -%}
20
+
21
+ <table class="govuk-table dm-question-formula">
22
+ <thead class="govuk-table__head">
23
+ <tr class="govuk-table__row">
24
+ <th scope="col" class="govuk-table__header govuk-!-width-one-half"><span class="govuk-visually-hidden">Question</span></th>
25
+ <th scope="col" class="govuk-table__header govuk-!-width-one-half"><span class="govuk-visually-hidden">Answer</span></th>
26
+ </tr>
27
+ </thead>
28
+ <tbody class="govuk-table__body">
29
+ {%- for question in params.question.questions -%}
30
+ {%- if question.operation and question.operation_position == "before" -%}
31
+ <tr class="govuk-table__row">
32
+ <td class="govuk-table__cell" colspan="2"><strong class="govuk-!-font-size-27">{{ question.operation }}</strong></td>
33
+ </tr>
34
+ {%- endif -%}
35
+
36
+ {%- if question.type == 'display' -%}
37
+ <tr class="govuk-table__row">
38
+ <td class="govuk-table__cell">{{ question.question }}</td>
39
+ <td class="govuk-table__cell">{{ question.value }}</td>
40
+ </tr>
41
+ {%- elif question.type == 'textbox_large' -%}
42
+ {% set name = question.id %}
43
+ {% set id = "input-" + name %}
44
+ {% set questionText = question.question %}
45
+ {% set value = params.data[name] if params.data and params.data[name] %}
46
+
47
+ {% set describedBy = id + '-info' %}
48
+
49
+ <tr class="govuk-table__row govuk-character-count" data-module="govuk-character-count" data-maxwords="{{ (question.max_length_in_words | string) }}">
50
+ <td class="govuk-table__cell{% if params.errors and params.errors[name] %} dm-question-formula--error{% endif %}">
51
+ {{ govukLabel({
52
+ "html": questionText,
53
+ "classes": "govuk-label--s",
54
+ "for": id
55
+ }) | trim | indent(2) }}
56
+ {% if question.hint or question.question_advice %}
57
+ {% set hintId = id + '-hint' %}
58
+ {% set describedBy = describedBy + ' ' + hintId %}
59
+ {{ govukHint({
60
+ "id": hintId,
61
+ "html": digitalmarketplaceQuestionFormatHint(question)
62
+ }) | trim | indent(2) }}
63
+ {% endif %}
64
+ {% if params.errors and params.errors[name] %}
65
+ {% set errorId = id + '-error' %}
66
+ {% set rowQuestionClasses = "dm-question-formula--error "%}
67
+ {% set describedBy = describedBy + ' ' + errorId %}
68
+ {% set errorMessage = params.errors[name]["message"] %}
69
+ {{ govukErrorMessage({
70
+ "id": errorId,
71
+ "text": errorMessage
72
+ }) | trim | indent(2) }}
73
+ {% endif %}
74
+ </td>
75
+ <td class="govuk-table__cell">
76
+ <textarea
77
+ class="govuk-textarea {%- if errorMessage %} govuk-textarea--error{% endif %} govuk-js-character-count"
78
+ id="{{ id }}"
79
+ name="{{ name }}"
80
+ rows="3"
81
+ {%- if describedBy %} aria-describedby="{{ describedBy }}"{% endif %}
82
+ >{{ value }}</textarea>
83
+ {{ govukHint({
84
+ "text": 'You can enter up to ' + (question.max_length_in_words | string) + ' words',
85
+ "id": id + '-info',
86
+ "classes": 'govuk-character-count__message'
87
+ }) | trim }}
88
+ </td>
89
+ </tr>
90
+ {% endif %}
91
+
92
+ {%- if question.operation and question.operation_position == "after" -%}
93
+ <tr class="govuk-table__row">
94
+ <td class="govuk-table__cell" colspan="2"><strong class="govuk-!-font-size-27">{{ question.operation }}</strong></td>
95
+ </tr>
96
+ {%- endif -%}
97
+ {%- endfor -%}
98
+ </tbody>
99
+ </table>
100
+ {% endcall %}
101
+ {%- endif %}
102
+ {% endmacro %}
@@ -1,5 +1,6 @@
1
1
  {% macro digitalmarketplaceQuestionNumber(params) %}
2
2
  {%- from "govuk_frontend_jinja/components/input/macro.html" import govukInput -%}
3
+ {%- from "digitalmarketplace_frontend_jinja/components/question-format-hint/macro.html" import digitalmarketplaceQuestionFormatHint -%}
3
4
 
4
5
  {% set name = params.question.id %}
5
6
  {% 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 %}
@@ -39,8 +40,8 @@
39
40
  "classes": formGroupClasses
40
41
  },
41
42
  "hint": {
42
- "html": params.question.hint
43
- } if params.question.hint,
43
+ "html": digitalmarketplaceQuestionFormatHint(params.question)
44
+ } if params.question.hint or params.question.question_advice,
44
45
  "value": params.data[name] if params.data,
45
46
  "errorMessage": errorMessage if errorMessage,
46
47
  "prefix": prefix if prefix,
@@ -9,6 +9,7 @@
9
9
  {%- from "digitalmarketplace_frontend_jinja/components/summary-content-checkbox-tree/macro.html" import digitalmarketplaceSummaryContentCheckboxTree -%}
10
10
  {%- from "digitalmarketplace_frontend_jinja/components/summary-content-multiquestion/macro.html" import digitalmarketplaceSummaryContentMultiquestion -%}
11
11
  {%- from "digitalmarketplace_frontend_jinja/components/summary-content-list-multiquestion/macro.html" import digitalmarketplaceSummaryContentListMultiquestion -%}
12
+ {%- from "digitalmarketplace_frontend_jinja/components/summary-content-formula/macro.html" import digitalmarketplaceSummaryContentFormula -%}
12
13
 
13
14
  {% if params.type == 'list' or params.type == 'checkboxes'%}
14
15
  {{ digitalmarketplaceSummaryContentList({
@@ -46,6 +47,10 @@
46
47
  {{ digitalmarketplaceSummaryContentListMultiquestion({
47
48
  'value': params.value
48
49
  }) }}
50
+ {% elif params.type == 'formula' %}
51
+ {{ digitalmarketplaceSummaryContentFormula({
52
+ 'value': params.value
53
+ }) }}
49
54
  {% else %}
50
55
  {{ digitalmarketplaceSummaryContentText({
51
56
  "value": params.value
@@ -0,0 +1,47 @@
1
+ {% macro digitalmarketplaceSummaryContentFormula(params) %}
2
+ {%- from "govuk_frontend_jinja/components/summary-list/macro.html" import govukSummaryList -%}
3
+
4
+ {%- if params.value -%}
5
+ {%- set summaryListRows = [] -%}
6
+
7
+ {%- for question in params.value %}
8
+ {%- if question.operation and question.operation_position == "before" -%}
9
+ {%- set _summaryListRows = summaryListRows.append({
10
+ "key": {
11
+ "text": question.operation
12
+ },
13
+ "value": {
14
+ "text": question.operation
15
+ }
16
+ }) -%}
17
+ {%- endif -%}
18
+
19
+ {%- set _summaryListRows = summaryListRows.append({
20
+ "key": {
21
+ "text": question.name if question.name else question.question
22
+ },
23
+ "value": {
24
+ 'text': question.value
25
+ }
26
+ }) -%}
27
+
28
+ {%- if question.operation and question.operation_position == "after" -%}
29
+ {%- set _summaryListRows = summaryListRows.append({
30
+ "key": {
31
+ "text": question.operation
32
+ },
33
+ "value": {
34
+ "text": question.operation
35
+ }
36
+ }) -%}
37
+ {%- endif -%}
38
+ {%- endfor -%}
39
+
40
+ <hr class="govuk-section-break govuk-section-break--visible">
41
+ {{ govukSummaryList({
42
+ "rows": summaryListRows,
43
+ "classes": 'dm-summary-content-formula'
44
+ }) }}
45
+ <hr class="govuk-section-break govuk-section-break--visible">
46
+ {%- endif -%}
47
+ {% endmacro %}