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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 703510699a0cde194daacc8401f1eb0d47205f44b1871bd1c572738ba63e5a47
4
- data.tar.gz: 4a2c95289d96323e0de542644fc4dbf1c639076c492fd1a71710e43f6597f991
3
+ metadata.gz: 027ea2efffbb85068abc14cb2ba4ff016aa92f7d32052a29689e1e5a0f38e315
4
+ data.tar.gz: 77b4685de4e43230b2c42b716f318d19e0352dea1b9ffa7e13f36f3a55501b54
5
5
  SHA512:
6
- metadata.gz: 9ec09f76ec8f500c5ef791beb3d56c71f68b8b313c7cccdf75c6fa85c4615648ed3bc60cce9fa9911a28185efc0d1d78b229458d4a6396ab87e034cef117cbaa
7
- data.tar.gz: 110f85a1a60d26168ae1bca025dea41e3bceb9aba509f354187fdd41a3a2ece3eea147dbaf1c58435ded4551144c035df85c2b75c4c89905d3c3916c46aa6175
6
+ metadata.gz: d19d3e0d29083c44dc3efda1c631b0e949d78e865b112c97601acf71590e6e376b0f9324d92d35dd39dcf0866a9552fd0609025ce344570f344926c0aa4a4ea4
7
+ data.tar.gz: 18426551b21ebca783e364ad645bfef4b9dcf1a94a868e35d73c549535efbf30e77d571f8ac94919fae4c34804be16c84fe8642f6a6e5fa7514140979845070c
@@ -1,80 +1,80 @@
1
- <div class="govuk-grid-row">
2
- <div class="govuk-grid-column-two-thirds">
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
- <%= render partial: 'metadata_presenter/attribute/section_heading' %>
5
+ <%= render partial: 'metadata_presenter/attribute/section_heading' %>
5
6
 
6
- <h1 class="fb-editable govuk-heading-xl"
7
- data-fb-content-type="element"
8
- data-fb-content-id="page[heading]">
9
- <%= @page.heading %>
10
- </h1>
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
- <%= form_for @page, url: reserved_submissions_path do |f| %>
13
+ <%= form_for @page, url: reserved_submissions_path do |f| %>
13
14
 
14
- <%= render partial: 'metadata_presenter/component/components',
15
- locals: {
16
- f: f,
17
- components: @page.extra_components,
18
- tag: nil,
19
- classes: nil,
20
- input_components: @page.input_components,
21
- content_components: @page.content_components
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
- <div data-block-id="page.checkanswers.answers" data-block-type="answers">
25
- <dl class="fb-block fb-block-answers govuk-summary-list">
26
- <% pages_presenters.each do |page_answers_presenters| %>
27
- <% page_answers_presenters.each_with_index do |page_answers_presenter, index| %>
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
- <% if page_answers_presenter.display_heading?(index) %>
30
- </dl>
30
+ <% if page_answers_presenter.display_heading?(index) %>
31
+ </dl>
31
32
 
32
- <h3 class="govuk-heading-m"><%= page_answers_presenter.page.heading %></h3>
33
+ <h3 class="govuk-heading-m"><%= page_answers_presenter.page.heading %></h3>
33
34
 
34
- <dl class="fb-block fb-block-answers govuk-summary-list">
35
- <% end %>
35
+ <dl class="fb-block fb-block-answers govuk-summary-list">
36
+ <% end %>
36
37
 
37
- <div class="govuk-summary-list__row">
38
- <dt class="govuk-summary-list__key">
39
- <%= page_answers_presenter.humanised_title %>
40
- </dt>
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
- <dd class="govuk-summary-list__value">
43
- <%= page_answers_presenter.answer %>
44
- </dd>
45
- <dd class="govuk-summary-list__actions">
46
- <%= link_to(
47
- change_answer_path(url: page_answers_presenter.url),
48
- class: 'govuk-link'
49
- ) do %>
50
- Change<span class="govuk-visually-hidden"> Your answer for <%= page_answers_presenter.humanised_title %></span>
51
- <% end %>
52
- </a>
53
- </dd>
54
- </div>
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
- <% end %>
57
- </dl>
58
- </div>
57
+ </dl>
58
+ </div>
59
59
 
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 %>
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
- <% 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 %>
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
- <%= render partial: 'metadata_presenter/component/components',
77
- locals: {
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
- <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">
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
- </button>
89
- <% end %>
88
+ </button>
89
+ <% end %>
90
+
91
+ </div>
90
92
  </div>
91
93
  </div>
@@ -1,21 +1,22 @@
1
- <div class="govuk-panel govuk-panel--confirmation" data-block-id="<%= @page.id %>" data-block-property="heading" data-block-property-class="govuk-panel__body:lede">
2
- <h1 class="fb-editable govuk-panel__title"
3
- data-fb-content-type="element"
4
- data-fb-content-id="page[heading]">
5
- <%= @page.heading %>
6
- </h1>
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
- <%= render 'metadata_presenter/attribute/lede' %>
9
- </div>
9
+ <%= render 'metadata_presenter/attribute/lede' %>
10
+ </div>
10
11
 
11
- <div class="govuk-grid-row">
12
- <div class="govuk-grid-column-two-thirds">
13
- <%= render 'metadata_presenter/attribute/body' %>
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
- locals: {
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-block-id="<%= @page.id %>" data-block-type="page" data-block-pagetype="<%= @page.type %>">
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-block-id="<%= @page.id %>" data-block-type="page" data-block-pagetype="<%= @page.type %>">
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-block-id="<%= @page.id %>" data-block-type="page" data-block-pagetype="<%= @page.type %>">
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| %>
@@ -1,3 +1,3 @@
1
1
  module MetadataPresenter
2
- VERSION = '0.27.2'.freeze
2
+ VERSION = '0.27.3'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metadata_presenter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.27.2
4
+ version: 0.27.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - MoJ Online