Browse Source

refactor: unrelated linting

pull/1073/head
natdeanlewissoftwire 4 years ago
parent
commit
1340b1de02
  1. 2
      app/helpers/tasklist_helper.rb
  2. 2
      app/views/devise/unlocks/new.html.erb

2
app/helpers/tasklist_helper.rb

@ -39,7 +39,7 @@ module TasklistHelper
def review_log_text(log)
if log.collection_period_open?
"You can #{govuk_link_to 'review and make changes to this log', review_lettings_log_path(log)} until #{(log.form.end_date).to_formatted_s(:govuk_date)}.".html_safe
"You can #{govuk_link_to 'review and make changes to this log', review_lettings_log_path(log)} until #{log.form.end_date.to_formatted_s(:govuk_date)}.".html_safe
else
"This log is from the #{log.form.start_date.year}/#{log.form.start_date.year + 1} collection window, which is now closed."
end

2
app/views/devise/unlocks/new.html.erb

@ -1,7 +1,7 @@
<h2>Resend unlock instructions</h2>
<%= form_for(resource, as: resource_name, url: unlock_path(resource_name), html: { method: :post }) do |f| %>
<%= render "devise/shared/error_messages", resource: resource %>
<%= render "devise/shared/error_messages", resource: %>
<%= f.govuk_email_field :email,
label: { text: "Email address" },

Loading…
Cancel
Save