metadata_presenter 3.2.3 → 3.2.5

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: 636ccee8dcb048870e94080795f7b996d65a4f5d30ff6314c15ff69e5b7d11d9
4
- data.tar.gz: fefb7b366a83618038f8874927d053a36b266e48c91cfe91e6e7c5bb5a742ff2
3
+ metadata.gz: e44492863ccf0fd1e5b7e7626c4c7a5785925c9c5bce81f06a75bada318536bb
4
+ data.tar.gz: bf9c1e43f465a792198db4669c162c1930e2d3bca6db5cffe49f69f511b1cc63
5
5
  SHA512:
6
- metadata.gz: 5abfe6a90a68a24591da4ff8d899549508d103be08ea89cacb265d4101d90364bc8ab7be826114bea491bf3f9515fcf7588b4e10bb9438b137d53dacccba4914
7
- data.tar.gz: 7654337554c5ee458d79e640e677f5352dd39183cb0870320aebbd85d7409a43ae7ad1d4c562737c3edd105400b0b8140bc9da9ae9f1e3ff8905cf434f9287c6
6
+ metadata.gz: 9aca2318adfb8b285dc5711a8de16261b504672b98c4fc0346decddbbc73db7d2f48416e53d398dfeb74b652d1df154606c04c802ca94748e69c5e824621f3ba
7
+ data.tar.gz: 2357c08cad5d81f902944288fb21cfb999e457a362851bc8e806facf0f71ce0de3eacb0820d11af7dbb12b24baa34e52711c815a17fac35975ea125da00b566b
@@ -9,8 +9,8 @@
9
9
  <%= @page.heading %>
10
10
  </h1>
11
11
 
12
- <%= form_for @page, url: reserved_submissions_path, html: { id: 'answers-form' } do |f| %>
13
-
12
+ <%= form_for @page, url: reserved_submissions_path, authenticity_token: false, html: { id: 'answers-form' } do |f| %>
13
+ <%= hidden_field_tag :authenticity_token, form_authenticity_token -%>
14
14
  <%= render partial: 'metadata_presenter/component/components',
15
15
  locals: {
16
16
  f: f,
@@ -17,7 +17,8 @@
17
17
  <%= render 'metadata_presenter/attribute/body' %>
18
18
  <% end %>
19
19
 
20
- <%= form_for @page_answers, as: :answers, url: @page.url, method: :post do |f| %>
20
+ <%= form_for @page_answers, as: :answers, url: @page.url, method: :post, authenticity_token: false do |f| %>
21
+ <%= hidden_field_tag :authenticity_token, form_authenticity_token -%>
21
22
 
22
23
  <%= render partial: 'metadata_presenter/component/components',
23
24
  locals: {
@@ -13,7 +13,8 @@
13
13
 
14
14
  <%= render 'metadata_presenter/attribute/lede' %>
15
15
 
16
- <%= form_for @page_answers, as: :answers, url: @page.url, method: :post do |f| %>
16
+ <%= form_for @page_answers, as: :answers, url: @page.url, method: :post, authenticity_token: false do |f| %>
17
+ <%= hidden_field_tag :authenticity_token, form_authenticity_token -%>
17
18
 
18
19
  <%= render partial: 'metadata_presenter/component/components',
19
20
  locals: {
@@ -5,7 +5,8 @@
5
5
  <%= render 'metadata_presenter/attribute/section_heading' %>
6
6
  <%= render 'metadata_presenter/attribute/heading' %>
7
7
 
8
- <%= form_for @page_answers, as: :answers, url: @page.url, method: :post do |f| %>
8
+ <%= form_for @page_answers, as: :answers, url: @page.url, method: :post, authenticity_token: false do |f| %>
9
+ <%= hidden_field_tag :authenticity_token, form_authenticity_token -%>
9
10
  <%= f.govuk_error_summary %>
10
11
 
11
12
  <%= render partial: 'metadata_presenter/component/components', locals: {
@@ -4,9 +4,9 @@
4
4
 
5
5
  <%= render 'metadata_presenter/attribute/section_heading' %>
6
6
 
7
- <%= form_for @page_answers, as: :answers, url: @page.url, method: :post do |f| %>
7
+ <%= form_for @page_answers, as: :answers, url: @page.url, method: :post, authenticity_token: false do |f| %>
8
8
  <%= f.govuk_error_summary %>
9
-
9
+ <%= hidden_field_tag :authenticity_token, form_authenticity_token -%>
10
10
  <% @page.components.each_with_index do |component, index| %>
11
11
  <div class="fb-editable"
12
12
  data-fb-content-type="<%= component._type %>"
@@ -5,7 +5,8 @@
5
5
  <%= render 'metadata_presenter/attribute/heading' %>
6
6
  <%= render 'metadata_presenter/attribute/body' %>
7
7
 
8
- <%= form_tag(root_path, method: :post) do %>
8
+ <%= form_tag(root_path, method: :post, authenticity_token: false) do %>
9
+ <%= hidden_field_tag :authenticity_token, form_authenticity_token -%>
9
10
  <button <%= 'disabled' if editable? %> class='govuk-button govuk-button--start govuk-!-margin-top-2'>
10
11
  <%= t('presenter.actions.start') -%>
11
12
  <svg class="govuk-button__start-icon" xmlns="http://www.w3.org/2000/svg" width="17.5" height="19" viewBox="0 0 33 40" aria-hidden="true" focusable="false">
@@ -21,10 +21,10 @@ en:
21
21
  maintenance_page_heading: 'Sorry, this form is unavailable'
22
22
  maintenance_page_content: "If you were in the middle of completing the form, your data has not been saved.\r\n\r\nThe form will be available again from 9am on Monday 19 November 2018.\r\n\r\n\r\n\r\n### Other ways to apply\r\n\r\nContact us if your application is urgent \r\n\r\nEmail: \r\nTelephone: \r\nMonday to Friday, 9am to 5pm \r\n[Find out about call charges](https://www.gov.uk/call-charges)"
23
23
  session_timeout_warning:
24
- heading: Your form will reset soon
25
- timer: We will reset your form if you do not continue in
24
+ heading: Do you need more time?
25
+ timer: We will reset your form and clear your answers if you do not continue in
26
26
  timer_fallback: We will reset your form if you do not complete the page and press continue by
27
- timer_extra: Any answers you have entered so far will be cleared to protect your information.
27
+ timer_extra: This is to protect your personal information.
28
28
  redirect: You are about to be redirected
29
29
  close_button: Close
30
30
  button: Continue
@@ -1,3 +1,3 @@
1
1
  module MetadataPresenter
2
- VERSION = '3.2.3'.freeze
2
+ VERSION = '3.2.5'.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.3
4
+ version: 3.2.5
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-07 00:00:00.000000000 Z
11
+ date: 2023-08-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: govuk_design_system_formbuilder