metadata_presenter 2.17.32 → 2.17.34
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.
- checksums.yaml +4 -4
- data/app/controllers/metadata_presenter/session_controller.rb +5 -0
- data/app/views/metadata_presenter/page/confirmation.html.erb +1 -1
- data/app/views/metadata_presenter/session/expired.html.erb +9 -0
- data/config/locales/en.yml +5 -0
- data/config/routes.rb +2 -0
- data/lib/metadata_presenter/version.rb +1 -1
- metadata +4 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d1dffc8d49002c81fb1b6e646d99c2bc3934fae991d6b35f1fde762138f42c68
|
|
4
|
+
data.tar.gz: 1c5ad4558ebaa22d3ff37a4378214f76bf31810b627ecab1011ca8f805bb4143
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 326ff927afe3e9e9d57e8d048812b4f1aea71e8a506aaefc4a43fe0fdd16abee57b9a944f5c5beac6f33f281970a4b8ccc299d7ac1fb10933a1337df419dc125
|
|
7
|
+
data.tar.gz: 3e7271f5e76796636af6494969d4f76eaf87dd18b1b213a3eae166d9ddf837893e3b8fd8cced3674a6340b675d45f57b8f9b85373a794cc28847953c72f12196
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
<h1 class="fb-editable govuk-panel__title"
|
|
9
9
|
data-fb-content-type="element"
|
|
10
10
|
data-fb-content-id="page[heading]">
|
|
11
|
-
<% if payment_link_enabled? %>
|
|
11
|
+
<% if payment_link_enabled? && @page.heading == I18n.t('presenter.confirmation.application_complete') %>
|
|
12
12
|
<p><%= I18n.t('presenter.confirmation.payment_enabled') %></p>
|
|
13
13
|
<% else %>
|
|
14
14
|
<%= @page.heading %>
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
<div class="govuk-grid-row">
|
|
2
|
+
<div class="govuk-grid-column-two-thirds">
|
|
3
|
+
<h1 class="govuk-heading-l"><%= t('presenter.session_expired.title') %></h1>
|
|
4
|
+
<div class="maintenance-content">
|
|
5
|
+
<%= to_html t('presenter.session_expired.content') %>
|
|
6
|
+
<p><%= link_to t('presenter.session_expired.restart_link'), root_url %></p>
|
|
7
|
+
</div>
|
|
8
|
+
</div>
|
|
9
|
+
</div>
|
data/config/locales/en.yml
CHANGED
|
@@ -19,10 +19,15 @@ en:
|
|
|
19
19
|
maintenance:
|
|
20
20
|
maintenance_page_heading: 'Sorry, this form is unavailable'
|
|
21
21
|
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)"
|
|
22
|
+
session_expired:
|
|
23
|
+
title: Your form has been reset
|
|
24
|
+
content: "The form has a time limit of 60 minutes. This is to protect your personal information.\r\n\r\nWe apologise for the inconvenience. Please try again."
|
|
25
|
+
restart_link: Start again
|
|
22
26
|
confirmation:
|
|
23
27
|
reference_number: 'Your reference number is:'
|
|
24
28
|
payment_enabled: You still need to pay
|
|
25
29
|
continue_to_pay_button: Continue to pay
|
|
30
|
+
application_complete: 'Application complete'
|
|
26
31
|
footer:
|
|
27
32
|
cookies:
|
|
28
33
|
heading: "Cookies"
|
data/config/routes.rb
CHANGED
|
@@ -8,6 +8,8 @@ MetadataPresenter::Engine.routes.draw do
|
|
|
8
8
|
# as get verb.
|
|
9
9
|
get '/reserved/file/:component_id', to: 'file#destroy', as: :remove_file
|
|
10
10
|
|
|
11
|
+
get 'session/expired', to: 'session#expired'
|
|
12
|
+
|
|
11
13
|
post '/', to: 'answers#create'
|
|
12
14
|
match '*path', to: 'answers#create', via: :post
|
|
13
15
|
match '*path', to: 'pages#show',
|
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: 2.17.
|
|
4
|
+
version: 2.17.34
|
|
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-01-
|
|
11
|
+
date: 2023-01-30 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: govuk_design_system_formbuilder
|
|
@@ -258,6 +258,7 @@ files:
|
|
|
258
258
|
- app/controllers/metadata_presenter/file_controller.rb
|
|
259
259
|
- app/controllers/metadata_presenter/pages_controller.rb
|
|
260
260
|
- app/controllers/metadata_presenter/service_controller.rb
|
|
261
|
+
- app/controllers/metadata_presenter/session_controller.rb
|
|
261
262
|
- app/controllers/metadata_presenter/submissions_controller.rb
|
|
262
263
|
- app/helpers/metadata_presenter/application_helper.rb
|
|
263
264
|
- app/helpers/metadata_presenter/default_text.rb
|
|
@@ -356,6 +357,7 @@ files:
|
|
|
356
357
|
- app/views/metadata_presenter/page/singlequestion.html.erb
|
|
357
358
|
- app/views/metadata_presenter/page/standalone.html.erb
|
|
358
359
|
- app/views/metadata_presenter/page/start.html.erb
|
|
360
|
+
- app/views/metadata_presenter/session/expired.html.erb
|
|
359
361
|
- config/initializers/default_metadata.rb
|
|
360
362
|
- config/initializers/default_text.rb
|
|
361
363
|
- config/initializers/inflections.rb
|