Browse Source

Use default text value for back links

pull/685/head
Paul Robert Lloyd 3 years ago
parent
commit
8380a220c4
  1. 5
      app/views/devise/confirmations/new.html.erb
  2. 5
      app/views/devise/passwords/edit.html.erb
  3. 5
      app/views/devise/passwords/new.html.erb
  4. 5
      app/views/devise/passwords/reset_password.html.erb
  5. 5
      app/views/devise/two_factor_authentication/resend.html.erb
  6. 5
      app/views/form/page.html.erb
  7. 5
      app/views/organisations/edit.html.erb
  8. 5
      app/views/organisations/new.html.erb
  9. 5
      app/views/users/edit.html.erb
  10. 5
      app/views/users/new.html.erb

5
app/views/devise/confirmations/new.html.erb

@ -1,10 +1,7 @@
<% content_for :title, "Resend invitation link" %>
<% content_for :before_content do %>
<%= govuk_back_link(
text: "Back",
href: :back,
) %>
<%= govuk_back_link(href: :back) %>
<% end %>
<%= form_for(resource, as: resource_name, url: confirmation_path(resource_name), html: { method: :post }) do |f| %>

5
app/views/devise/passwords/edit.html.erb

@ -1,10 +1,7 @@
<% content_for :title, "Change your password" %>
<% content_for :before_content do %>
<%= govuk_back_link(
text: "Back",
href: :back,
) %>
<%= govuk_back_link(href: :back) %>
<% end %>
<%= form_for(resource, as: resource_name, html: { method: :patch }) do |f| %>

5
app/views/devise/passwords/new.html.erb

@ -1,10 +1,7 @@
<% content_for :title, "Reset password" %>
<% content_for :before_content do %>
<%= govuk_back_link(
text: "Back",
href: :back,
) %>
<%= govuk_back_link(href: :back) %>
<% end %>
<%= form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :post }) do |f| %>

5
app/views/devise/passwords/reset_password.html.erb

@ -1,10 +1,7 @@
<% content_for :title, @confirmation ? I18n.t("user.create_password") : I18n.t("user.reset_password") %>
<% content_for :before_content do %>
<%= govuk_back_link(
text: "Back",
href: :back,
) %>
<%= govuk_back_link(href: :back) %>
<% end %>
<%= form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :put }) do |f| %>

5
app/views/devise/two_factor_authentication/resend.html.erb

@ -1,10 +1,7 @@
<% content_for :title, "Resend security code" %>
<% content_for :before_content do %>
<%= govuk_back_link(
text: "Back",
href: "javascript:history.back()",
) %>
<%= govuk_back_link(href: "javascript:history.back()") %>
<% end %>
<%= form_with(url: send("resend_code_#{resource_name}_two_factor_authentication_path"), html: { method: :get }) do |f| %>

5
app/views/form/page.html.erb

@ -1,10 +1,7 @@
<% content_for :title, @page.header.presence || @page.questions.first.header.html_safe %>
<% content_for :before_content do %>
<%= govuk_back_link(
text: "Back",
href: "javascript:history.back()",
) %>
<%= govuk_back_link(href: "javascript:history.back()") %>
<% end %>
<div data-controller="govukfrontend"></div>

5
app/views/organisations/edit.html.erb

@ -1,10 +1,7 @@
<% content_for :title, "Change #{@organisation.name}’s details" %>
<% content_for :before_content do %>
<%= govuk_back_link(
text: "Back",
href: :back,
) %>
<%= govuk_back_link(href: :back) %>
<% end %>
<%= form_for(@organisation, as: :organisation, html: { method: :patch }) do |f| %>

5
app/views/organisations/new.html.erb

@ -1,10 +1,7 @@
<% content_for :title, "Create a new organisation" %>
<% content_for :before_content do %>
<%= govuk_back_link(
text: "Back",
href: :back,
) %>
<%= govuk_back_link(href: :back) %>
<% end %>
<%= form_for(@resource, as: :organisation, html: { method: :post }) do |f| %>

5
app/views/users/edit.html.erb

@ -1,10 +1,7 @@
<% content_for :title, current_user == @user ? "Change your personal details" : "Change #{@user.name.presence || 'this user'}’s personal details" %>
<% content_for :before_content do %>
<%= govuk_back_link(
text: "Back",
href: :back,
) %>
<%= govuk_back_link(href: :back) %>
<% end %>
<%= form_for(@user, as: :user, html: { method: :patch }) do |f| %>

5
app/views/users/new.html.erb

@ -1,10 +1,7 @@
<% content_for :title, "Invite user to submit CORE data" %>
<% content_for :before_content do %>
<%= govuk_back_link(
text: "Back",
href: :back,
) %>
<%= govuk_back_link(href: :back) %>
<% end %>
<%= form_for(@resource, as: :user, html: { method: :post }) do |f| %>

Loading…
Cancel
Save