metadata_presenter 3.2.7 → 3.2.9

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5f409f772e238a67fc3a025f6fcf5b20b0eacf16a21a9e1bf68188a339a4d205
4
- data.tar.gz: c91a20877752c5ac09d6b6c4aa3a568d77178c1cfd29bb5f1c144ec84854a7bb
3
+ metadata.gz: 897373db9fc9e22cdd101785b6906d6a0cc657bba1ed4bab5eb81e5834eac598
4
+ data.tar.gz: c295de4f671132adc78f8cff9ce26594996c64c4f91eaff46ae1bacaeb114b5b
5
5
  SHA512:
6
- metadata.gz: 47ebeb1d832124e9b9e13eaf00f82ff6554ce2b65d6eeb8de6266a614aec8f8733be312b073d98222f8220b35327d992954dfc7a520d2cfd881810853d5782a5
7
- data.tar.gz: 385d14054687c21edcd73b71da3503e43f17e2dabe491bae85afa1dbaf4718ccd8ec0b9a29d8dd146cefec15d54c65696a9b35f56c80f46e6ded686950af98dc
6
+ metadata.gz: 1c82446ff868a0ec684a4a5f239189a0abaa05983cb752209f9f7739bc7d144d0300a9314e005f251478c6ce7486a9571be47c7ccdc139bd13fa9c333b010fa4
7
+ data.tar.gz: d88712f097b7ba9ef105bc15a5b4c18c909f72c998c820ff8b4113f1769c7e971670a24f9ec6a65d82981fc0f51b05927b664790df51395dc2e475ec1fa8c119
data/README.md CHANGED
@@ -100,6 +100,11 @@ The `autocomplete_items` takes the components on a page and retrieves any items
100
100
  `service_slug_config` method checks whether the user has configured their own service URL. In the Editor this will be a `SERVICE_SLUG` row in the `ServiceConfiguration` table. In the Runner, it will be the `ENV['SERVICE_SLUG']` config.
101
101
  If it does not exist, we use the current method of parameterizing the `service_name`.
102
102
 
103
+ `confirmation_email_enabled?` method checks whether confirmation email is enabled in the Runner or Editor app. For the Runner app confirmation email is enabled when the `ENV['CONFIRMATION_EMAIL_COMPONENT_ID']` variable is present. In the Editor, confirmation email enabled is checked by checking the `ServiceConfiguration` table.
104
+
105
+ `confirmation_email` method provides the confirmation email in the Runner or Editor app. For the Runner app confirmation email is being stored in the user data. In the Editor, confirmation email is only stored in session and called during preview.
106
+
107
+ `is_confirmation_email_question?(component_id)` method checks whether the question shown has the same component_id used for confirmation email in the Runner or Editor app. For the Editor app the component ID used for confirmation email will be found in `ServiceConfiguration` table, while from the Runner it is stored in the `ENV['CONFIRMATION_EMAIL_COMPONENT_ID']` variable.
103
108
  ## Generate documentation
104
109
 
105
110
  Run `rake doc` and open the doc/index.html
@@ -9,3 +9,12 @@
9
9
  spellcheck: "false",
10
10
  autocomplete: "email"
11
11
  %>
12
+
13
+ <% if is_confirmation_email_question?(component._id) %>
14
+ <div class ="govuk-warning-text">
15
+ <span class="govuk-warning-text__icon" aria-hidden="true">!</span>
16
+ <strong class="govuk-warning-text__text">
17
+ <%= I18n.t('presenter.confirmation.email_disclaimer_email_question') %>
18
+ </strong>
19
+ </div>
20
+ <%end%>
@@ -88,6 +88,12 @@
88
88
  content_components: @page.supported_content_components
89
89
  } %>
90
90
 
91
+ <% if confirmation_email_enabled? %>
92
+ <% if confirmation_email.present? %>
93
+ <%= I18n.t('presenter.confirmation.email_basic_disclaimer_html', email_provided: content_tag(:b, confirmation_email)).html_safe %>
94
+ <%end%>
95
+ <%end%>
96
+ <br><br>
91
97
  <div class="govuk-button-group">
92
98
  <button <%= 'disabled' if editable? %> data-prevent-double-click="true" class="fb-block fb-block-actions govuk-button" data-module="govuk-button" data-block-id="actions" data-block-type="actions">
93
99
  <%= t('presenter.actions.submit') -%></button>
@@ -41,6 +41,8 @@ en:
41
41
  payment_enabled: You still need to pay
42
42
  continue_to_pay_button: Continue to pay
43
43
  application_complete: 'Application complete'
44
+ email_disclaimer_email_question: 'We will use this address to send you a confirmation email with a copy of your answers.'
45
+ email_basic_disclaimer_html: 'We will send a confirmation email with a copy of these answers to %{email_provided}'
44
46
  questions:
45
47
  multiupload:
46
48
  remove_file: 'Delete'
@@ -123,7 +125,7 @@ en:
123
125
  privacy:
124
126
  heading: "Privacy notice"
125
127
  body: "[[Guidance notes on completing this notice](https://intranet.justice.gov.uk/documents/2018/03/privacy-notice-guidance.pdf) - delete before publishing]\r\n\r\n## [Name of your form or service]\r\n\r\nThe Ministry of Justice (MoJ) is committed to the protection and security of your personal information.\r\n\r\nIt is important that you read this notice so that you are aware of how and why we are using such information. This privacy notice describes how we collect and use personal information during and after your relationship with us, in accordance with data protection law. \r\n\r\n[Insert name – delete if not an EA or ALB] is an Executive Agency/Arm’s Length Body of the MoJ. MoJ is the data controller for the personal data used for the purposes of [Insert overarching purpose].\r\n\r\n### The type of personal data we process\r\n\r\nWe currently collect and use the following information:\r\n\r\n[list the type of personal data used e.g. name, address, contact details etc]\r\n\r\nWe also collect special categories of information, such as [delete this section if not applicable]:\r\n\r\n* race or ethnicity \r\n* political opinions\r\n* religious or philosophical beliefs\r\n* trade union membership\r\n* health, sex life or sexual orientation \r\n* genetics or biometrics\r\n* criminal convictions\r\n\r\n\r\n### How we get your personal data and why we have it\r\n\r\nMost of the personal information we process is provided to us directly by you for one of the following reasons: [List reasons e.g. providing an online service]\r\n\r\nWe also receive personal information indirectly, from the following sources in the following scenarios: [Include details of the source of the personal data unless the data is collected directly from the data subject]\r\n\r\nWe use the personal data we receive in order to: [list how you use the personal data] \r\n\r\nWe may share this information with: [enter organisations or individuals]\r\n\r\nUnder the UK General Data Protection Regulation (UK GDPR), the lawful bases we rely on for processing this information are: [delete as appropriate]\r\n\r\n* Your consent. You may withdraw your consent at any time by contacting [enter contact details].\r\n* We have a contractual obligation.\r\n* We have a legal obligation.\r\n* We have a vital interest.\r\n* We need it to perform a public task.\r\n* We have a legitimate interest.\r\n\r\n[Explain the purpose and lawful basis for processing the personal data you collect. If lawful basis is a legal obligation or public task, explain what this is e.g. refer to legislation or policy.] \r\n\r\nThe legal bases on which the MoJ processes special categories of information you have provided, is on the basis of: [delete this section if not applicable]\r\n\r\n* Your explicit consent. You may withdraw your consent at any time by contacting [insert contact details].\r\n* The processing being necessary for the MoJ in the field of employment, social security and social protection law.\r\n* The information being manifestly made public by you.\r\n* The processing being necessary for the establishment, exercise or defence of legal claims.\r\n* The substantial public interest in the MoJ [tailor as required and choose relevant [substantial public interest condition](https://ico.org.uk/for-organisations/guide-to-data-protection/guide-to-the-general-data-protection-regulation-gdpr/special-category-data/what-are-the-substantial-public-interest-conditions/)]. \r\n* The processing is necessary for historical research purposes/statistical purposes.\r\n\r\n### International data transfers\r\n\r\n[Delete one of the following paragraphs as appropriate]\r\n\r\nPersonal data is transferred to [insert name of country] for the purpose of [insert purpose]. This international transfer complies with UK data protection law [delete as appropriate].\r\n\r\n\r\nThere are no international transfers.\r\n\r\n### How we store your personal data\r\n\r\n[set out how long the information is retained, or the criteria used to determine how long the information is retained]\r\n\r\nPersonal data is stored securely and in accordance with our data retention schedule [insert link to the schedule or details of retention periods]. At the end of this period your data is [insert with it is retained as a public record or whether it is disposed of].\r\n\r\n### Your rights\r\n\r\n[This section lists all data subject rights found in the UKGDPR and the Data Protection Act 2018. You should only include those relevant to your lawful basis for processing. [Find out more about which rights apply and when](https://ico.org.uk/for-organisations/guide-to-data-protection/guide-to-the-general-data-protection-regulation-gdpr/individual-rights/)]\r\n\r\n* Your right of access - You have the right to ask us for copies of your personal information. \r\n* Your right to rectification - You have the right to ask us to rectify personal information you think is inaccurate. You also have the right to ask us to complete information you think is incomplete. \r\n* Your right to erasure - You have the right to ask us to erase your personal information in certain circumstances. \r\n* Your right to restriction of processing - You have the right to ask us to restrict the processing of your personal information in certain circumstances. \r\n* Your right to object to processing - You have the right to object to the processing of your personal information in certain circumstances. \r\n* Your right to data portability - You have the right to ask that we transfer the personal information you gave us to another organisation, or to you, in certain circumstances. \r\n\r\nDepending on the lawful basis on which your personal data is being processed, not all rights will apply.\r\n\r\nYou are not required to pay any charge for exercising your rights. If you make a request, we have one month to respond to you. If you wish to exercise your data protection rights please contact one of these teams.\r\n\r\nIf you have ever been convicted of a criminal offence, contact:\r\n\r\n\r\nBranston Registry<br> \r\nBuilding 16, S & T Store<br> \r\nBurton Road<br>\r\nBranston<br>\r\nBurton-on-Trent<br> \r\nStaffordshire<br>\r\nDE14 3EG\r\nEmail: <data.access1@justice.gov.uk>\r\n\r\nOtherwise, contact:\r\n\r\n\r\nDisclosure Team<br>\r\nPost point 10.38<br>\r\n102 petty France<br>\r\nLondon<br>\r\nSW1H 9AJ\r\nEmail: <data.access@justice.gov.uk> \r\n\r\n### How to complain\r\n\r\nIf you have any concerns about our use of your personal data, you can contact the MoJ data protection officer:\r\n\r\nData Protection Officer<br>\r\nMinistry of Justice<br>\r\n3rd Floor, Post Point 3.20<br>\r\n10 South Colonnades<br>\r\nCanary Wharf<br>\r\nLondon<br>\r\nE14 4PU\r\n\r\nEmail: <dpo@justice.gov.uk> \r\n\r\n\r\nYou can also complain to the Information Commissioner’s Office (ICO) if you are unhappy with how we have used your data:\r\n\r\n\r\nInformation Commissioner’s Office<br>\r\nWycliffe House<br>\r\nWater Lane<br>\r\nWilmslow<br>\r\nCheshire<br>\r\nSK9 5AF\r\n\r\nTelephone: 0303 123 1113<br>\r\n[ICO website](https://www.ico.org.uk)\r\n\r\nDate of last review: [Insert publication or update date]"
126
- placeholders:
128
+ placeholders:
127
129
  - "[[Guidance notes on completing this notice](https://intranet.justice.gov.uk/documents/2018/03/privacy-notice-guidance.pdf) - delete before publishing]"
128
130
  - "[Name of your form or service]"
129
131
  - "[Insert name – delete if not an EA or ALB]"
@@ -1,3 +1,3 @@
1
1
  module MetadataPresenter
2
- VERSION = '3.2.7'.freeze
2
+ VERSION = '3.2.9'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metadata_presenter
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.2.7
4
+ version: 3.2.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - MoJ Forms
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-08-18 00:00:00.000000000 Z
11
+ date: 2023-08-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: govuk_design_system_formbuilder