metadata_presenter 0.27.2 → 0.27.3
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 +68 -66
- data/app/views/metadata_presenter/page/confirmation.html.erb +16 -14
- data/app/views/metadata_presenter/page/form.html.erb +1 -1
- data/app/views/metadata_presenter/page/multiplequestions.html.erb +1 -1
- data/app/views/metadata_presenter/page/singlequestion.html.erb +1 -1
- data/lib/metadata_presenter/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 027ea2efffbb85068abc14cb2ba4ff016aa92f7d32052a29689e1e5a0f38e315
|
4
|
+
data.tar.gz: 77b4685de4e43230b2c42b716f318d19e0352dea1b9ffa7e13f36f3a55501b54
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d19d3e0d29083c44dc3efda1c631b0e949d78e865b112c97601acf71590e6e376b0f9324d92d35dd39dcf0866a9552fd0609025ce344570f344926c0aa4a4ea4
|
7
|
+
data.tar.gz: 18426551b21ebca783e364ad645bfef4b9dcf1a94a868e35d73c549535efbf30e77d571f8ac94919fae4c34804be16c84fe8642f6a6e5fa7514140979845070c
|
@@ -1,80 +1,80 @@
|
|
1
|
-
<div class="
|
2
|
-
<div class="govuk-grid-
|
1
|
+
<div class="fb-main-grid-wrapper" data-fb-pagetype="<%= @page.type %>">
|
2
|
+
<div class="govuk-grid-row">
|
3
|
+
<div class="govuk-grid-column-two-thirds">
|
3
4
|
|
4
|
-
|
5
|
+
<%= render partial: 'metadata_presenter/attribute/section_heading' %>
|
5
6
|
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
7
|
+
<h1 class="fb-editable govuk-heading-xl"
|
8
|
+
data-fb-content-type="element"
|
9
|
+
data-fb-content-id="page[heading]">
|
10
|
+
<%= @page.heading %>
|
11
|
+
</h1>
|
11
12
|
|
12
|
-
|
13
|
+
<%= form_for @page, url: reserved_submissions_path do |f| %>
|
13
14
|
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
15
|
+
<%= render partial: 'metadata_presenter/component/components',
|
16
|
+
locals: {
|
17
|
+
f: f,
|
18
|
+
components: @page.extra_components,
|
19
|
+
tag: nil,
|
20
|
+
classes: nil,
|
21
|
+
input_components: @page.input_components,
|
22
|
+
content_components: @page.content_components
|
23
|
+
} %>
|
23
24
|
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
25
|
+
<div data-block-id="page.checkanswers.answers" data-block-type="answers">
|
26
|
+
<dl class="fb-block fb-block-answers govuk-summary-list">
|
27
|
+
<% pages_presenters.each do |page_answers_presenters| %>
|
28
|
+
<% page_answers_presenters.each_with_index do |page_answers_presenter, index| %>
|
28
29
|
|
29
|
-
|
30
|
-
|
30
|
+
<% if page_answers_presenter.display_heading?(index) %>
|
31
|
+
</dl>
|
31
32
|
|
32
|
-
|
33
|
+
<h3 class="govuk-heading-m"><%= page_answers_presenter.page.heading %></h3>
|
33
34
|
|
34
|
-
|
35
|
-
|
35
|
+
<dl class="fb-block fb-block-answers govuk-summary-list">
|
36
|
+
<% end %>
|
36
37
|
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
38
|
+
<div class="govuk-summary-list__row">
|
39
|
+
<dt class="govuk-summary-list__key">
|
40
|
+
<%= page_answers_presenter.humanised_title %>
|
41
|
+
</dt>
|
41
42
|
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
</
|
53
|
-
</
|
54
|
-
|
43
|
+
<dd class="govuk-summary-list__value">
|
44
|
+
<%= page_answers_presenter.answer %>
|
45
|
+
</dd>
|
46
|
+
<dd class="govuk-summary-list__actions">
|
47
|
+
<%= link_to(
|
48
|
+
change_answer_path(url: page_answers_presenter.url),
|
49
|
+
class: 'govuk-link'
|
50
|
+
) do %>
|
51
|
+
Change<span class="govuk-visually-hidden"> Your answer for <%= page_answers_presenter.humanised_title %></span>
|
52
|
+
<% end %>
|
53
|
+
</dd>
|
54
|
+
</div>
|
55
|
+
<% end %>
|
55
56
|
<% end %>
|
56
|
-
|
57
|
-
</
|
58
|
-
</div>
|
57
|
+
</dl>
|
58
|
+
</div>
|
59
59
|
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
60
|
+
<% if @page.send_heading.present? %>
|
61
|
+
<h2 class="fb-send-heading fb-editable govuk-heading-m"
|
62
|
+
data-fb-content-type="element"
|
63
|
+
data-fb-content-id="page[send_heading]">
|
64
|
+
<%= @page.send_heading %>
|
65
|
+
</h2>
|
66
|
+
<% end %>
|
67
67
|
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
68
|
+
<% if @page.send_body.present? %>
|
69
|
+
<div class="fb-send-body fb-editable"
|
70
|
+
data-fb-content-type="content"
|
71
|
+
data-fb-content-id="page[send_body]">
|
72
|
+
<%= @page.send_body %>
|
73
|
+
</div>
|
74
|
+
<% end %>
|
75
75
|
|
76
|
-
|
77
|
-
|
76
|
+
<%= render partial: 'metadata_presenter/component/components',
|
77
|
+
locals: {
|
78
78
|
f: f,
|
79
79
|
components: @page.components,
|
80
80
|
tag: nil,
|
@@ -83,9 +83,11 @@
|
|
83
83
|
content_components: @page.content_components
|
84
84
|
} %>
|
85
85
|
|
86
|
-
|
86
|
+
<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">
|
87
87
|
Accept and send application
|
88
|
-
|
89
|
-
|
88
|
+
</button>
|
89
|
+
<% end %>
|
90
|
+
|
91
|
+
</div>
|
90
92
|
</div>
|
91
93
|
</div>
|
@@ -1,21 +1,22 @@
|
|
1
|
-
<div class="
|
2
|
-
<
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
1
|
+
<div class="fb-main-grid-wrapper" data-fb-pagetype="<%= @page.type %>">
|
2
|
+
<div class="govuk-panel govuk-panel--confirmation">
|
3
|
+
<h1 class="fb-editable govuk-panel__title"
|
4
|
+
data-fb-content-type="element"
|
5
|
+
data-fb-content-id="page[heading]">
|
6
|
+
<%= @page.heading %>
|
7
|
+
</h1>
|
7
8
|
|
8
|
-
|
9
|
-
</div>
|
9
|
+
<%= render 'metadata_presenter/attribute/lede' %>
|
10
|
+
</div>
|
10
11
|
|
11
|
-
<div class="govuk-grid-row">
|
12
|
-
|
13
|
-
|
12
|
+
<div class="govuk-grid-row">
|
13
|
+
<div class="govuk-grid-column-two-thirds">
|
14
|
+
<%= render 'metadata_presenter/attribute/body' %>
|
15
|
+
</div>
|
14
16
|
</div>
|
15
|
-
</div>
|
16
17
|
|
17
|
-
<%= render partial: 'metadata_presenter/component/components',
|
18
|
-
|
18
|
+
<%= render partial: 'metadata_presenter/component/components',
|
19
|
+
locals: {
|
19
20
|
f: nil,
|
20
21
|
components: @page.components,
|
21
22
|
tag: nil,
|
@@ -23,3 +24,4 @@
|
|
23
24
|
input_components: @page.input_components,
|
24
25
|
content_components: @page.content_components
|
25
26
|
} %>
|
27
|
+
</div>
|
@@ -1,4 +1,4 @@
|
|
1
|
-
<div class="fb-main-grid-wrapper" data-
|
1
|
+
<div class="fb-main-grid-wrapper" data-fb-pagetype="<%= @page.type %>">
|
2
2
|
<div class="govuk-grid-row">
|
3
3
|
<div class="govuk-grid-column-two-thirds">
|
4
4
|
<% if @page.body %>
|
@@ -1,4 +1,4 @@
|
|
1
|
-
<div class="fb-main-grid-wrapper" data-
|
1
|
+
<div class="fb-main-grid-wrapper" data-fb-pagetype="<%= @page.type %>">
|
2
2
|
<div class="govuk-grid-row">
|
3
3
|
<div class="govuk-grid-column-two-thirds">
|
4
4
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
<div class="fb-main-grid-wrapper" data-
|
1
|
+
<div class="fb-main-grid-wrapper" data-fb-pagetype="<%= @page.type %>">
|
2
2
|
<div class="govuk-grid-row">
|
3
3
|
<div class="govuk-grid-column-two-thirds">
|
4
4
|
<%= form_for @page_answers, as: :answers, url: @page.url, method: :post do |f| %>
|