">
<% remove_other_page_errors(@case_log, @page) %>
<%= f.govuk_error_summary %>
@@ -29,7 +29,7 @@
<% end %>
<% @page.non_conditional_questions.map do |question| %>
-
<%= display_question_key_div(@page, question) %> >
+
>
<% if question.read_only? %>
<% end %>
@@ -44,11 +44,11 @@
<%= f.hidden_field :page, value: @page.id %>
<% if @case_log.form.is_last_question?(@page, @subsection, @case_log) %>
<%= f.govuk_submit "Submit lettings log", accesskey: "s" %>
- <%else %>
+ <% else %>
<% if !@page.id.include?("value_check") %>
- <%= f.govuk_submit "Save and continue", accesskey: "s" %>
+ <%= f.govuk_submit "Save and continue", accesskey: "s" %>
<% end %>
- <%end %>
+ <% end %>
<% end %>
diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb
index c46d256dd..9b0ba04b7 100644
--- a/app/views/layouts/application.html.erb
+++ b/app/views/layouts/application.html.erb
@@ -15,10 +15,10 @@
<%= favicon_link_tag asset_path('images/govuk-apple-touch-icon-180x180.png'), rel: 'apple-touch-icon', type: 'image/png', size: '180x180' %>
<%= stylesheet_link_tag "application" %>
<%= javascript_include_tag "vendor/html5shiv.min.js" %>
- <%= javascript_tag do -%>
+
<%= javascript_include_tag "vendor/polyfill-output-value.js" %>
<%= javascript_include_tag "vendor/outerHTML.js" %>
<%= javascript_include_tag "application", defer: true %>
@@ -43,20 +43,19 @@
<%= govuk_skip_link %>
<%= govuk_header(
- logotype: 'GOV.UK',
- service_name: t('service_name'),
- service_url: current_user.nil? ? "/" : '/logs'
- ) do |component|
- if current_user.nil?
- component.navigation_item(text: 'Sign in', href: user_session_path)
- elsif
- component.navigation_item(text: 'Logs', href: case_logs_path)
- component.navigation_item(text: 'Your organisation', href: "/organisations/#{current_user.organisation.id}")
- component.navigation_item(text: 'Your account', href: account_path)
- component.navigation_item(text: 'Sign out', href: destroy_user_session_path)
- end
+ logotype: 'GOV.UK',
+ service_name: t('service_name'),
+ service_url: current_user.nil? ? "/" : '/logs'
+ ) do |component|
+ if current_user.nil?
+ component.navigation_item(text: 'Sign in', href: user_session_path)
+ elsif
+ component.navigation_item(text: 'Logs', href: case_logs_path)
+ component.navigation_item(text: 'Your organisation', href: "/organisations/#{current_user.organisation.id}")
+ component.navigation_item(text: 'Your account', href: account_path)
+ component.navigation_item(text: 'Sign out', href: destroy_user_session_path)
end
- %>
+ end %>
- <% if flash.notice && !flash.notice.include?('translation missing') %>
+ <% if flash.notice && !flash.notice.include?('translation missing') %>
<%= govuk_notification_banner(
title_text: 'Success',
success: true, title_heading_level: 3,
title_id: "swanky-notifications") do |notification_banner|
notification_banner.heading(text: flash.notice)
- end
- %>
+ end %>
<% end %>
<%= content_for?(:content) ? yield(:content) : yield %>
diff --git a/app/views/layouts/mailer.html.erb b/app/views/layouts/mailer.html.erb
index cbd34d2e9..3aac9002e 100644
--- a/app/views/layouts/mailer.html.erb
+++ b/app/views/layouts/mailer.html.erb
@@ -1,7 +1,7 @@
-
+
diff --git a/app/views/organisations/edit.html.erb b/app/views/organisations/edit.html.erb
index 43d8dab9a..b0c0d6adb 100644
--- a/app/views/organisations/edit.html.erb
+++ b/app/views/organisations/edit.html.erb
@@ -15,29 +15,24 @@
<%= f.govuk_text_field :name,
- autocomplete: "name"
- %>
+ autocomplete: "name" %>
<%= f.govuk_text_field :address_line1,
label: { text: "Address line 1" },
- autocomplete: "address-line1"
- %>
+ autocomplete: "address-line1" %>
<%= f.govuk_text_field :address_line2,
label: { text: "Address line 2" },
- autocomplete: "address-line2"
- %>
+ autocomplete: "address-line2" %>
<%= f.govuk_text_field :postcode,
autocomplete: "postal-code",
- width: 10
- %>
+ width: 10 %>
<%= f.govuk_phone_field :phone,
label: { text: "Telephone number" },
autocomplete: "tel",
- width: 20
- %>
+ width: 20 %>
<%= f.govuk_submit "Save changes" %>
diff --git a/app/views/pagy/_nav.html.erb b/app/views/pagy/_nav.html.erb
index 9aa325e3d..d288ebddc 100644
--- a/app/views/pagy/_nav.html.erb
+++ b/app/views/pagy/_nav.html.erb
@@ -5,7 +5,7 @@
diff --git a/spec/features/reset_password.html.erb b/spec/features/reset_password.html.erb
index e12a0beed..a1735c5ec 100644
--- a/spec/features/reset_password.html.erb
+++ b/spec/features/reset_password.html.erb
@@ -20,12 +20,10 @@
<%= f.govuk_password_field :password,
label: { text: "New password" },
hint: @minimum_password_length ? { text: "Your password must be at least #{@minimum_password_length} characters and hard to guess." } : nil,
- autocomplete: "new-password"
- %>
+ autocomplete: "new-password" %>
<%= f.govuk_password_field :password_confirmation,
- label: { text: "Confirm new password" }
- %>
+ label: { text: "Confirm new password" } %>
<%= f.govuk_submit "Update" %>