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 +4 -4
- data/app/views/metadata_presenter/page/checkanswers.html.erb +2 -2
- data/app/views/metadata_presenter/page/content.html.erb +2 -1
- data/app/views/metadata_presenter/page/exit.html.erb +2 -1
- data/app/views/metadata_presenter/page/multiplequestions.html.erb +2 -1
- data/app/views/metadata_presenter/page/singlequestion.html.erb +2 -2
- data/app/views/metadata_presenter/page/start.html.erb +2 -1
- data/config/locales/en.yml +3 -3
- data/lib/metadata_presenter/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e44492863ccf0fd1e5b7e7626c4c7a5785925c9c5bce81f06a75bada318536bb
|
4
|
+
data.tar.gz: bf9c1e43f465a792198db4669c162c1930e2d3bca6db5cffe49f69f511b1cc63
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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">
|
data/config/locales/en.yml
CHANGED
@@ -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:
|
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:
|
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
|
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.
|
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-
|
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
|