Browse Source

Use govuk_back_link helper

pull/117/head
Paul Robert Lloyd 3 years ago
parent
commit
ed3b8a710d
  1. 5
      app/views/devise/passwords/new.html.erb
  2. 5
      app/views/devise/registrations/edit.html.erb
  3. 5
      app/views/form/page.html.erb
  4. 5
      app/views/users/account/personal_details.html.erb

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

@ -1,5 +1,8 @@
<% content_for :before_content do %> <% content_for :before_content do %>
<%= link_to 'Back', :back, class: "govuk-back-link" %> <%= govuk_back_link(
text: 'Back',
href: :back,
) %>
<% end %> <% end %>
<%= form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :post }) do |f| %> <%= form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :post }) do |f| %>

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

@ -1,5 +1,8 @@
<% content_for :before_content do %> <% content_for :before_content do %>
<%= link_to 'Back', :back, class: "govuk-back-link" %> <%= govuk_back_link(
text: 'Back',
href: :back,
) %>
<% end %> <% end %>
<%= form_for(resource, as: resource_name, url: user_registration_path(), html: { method: :patch }) do |f| %> <%= form_for(resource, as: resource_name, url: user_registration_path(), html: { method: :patch }) do |f| %>

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

@ -1,5 +1,8 @@
<% content_for :before_content do %> <% content_for :before_content do %>
<%= link_to 'Back', 'javascript:history.back()', class: "govuk-back-link" %> <%= govuk_back_link(
text: 'Back',
href: 'javascript:history.back()',
) %>
<% end %> <% end %>
<%= turbo_frame_tag "case_log_form", target: "_top" do %> <%= turbo_frame_tag "case_log_form", target: "_top" do %>

5
app/views/users/account/personal_details.html.erb

@ -1,5 +1,8 @@
<% content_for :before_content do %> <% content_for :before_content do %>
<%= link_to 'Back', :back, class: "govuk-back-link" %> <%= govuk_back_link(
text: 'Back',
href: :back,
) %>
<% end %> <% end %>
<%= form_for(current_user, as: :user, url: account_update_path(), html: { method: :patch }) do |f| %> <%= form_for(current_user, as: :user, url: account_update_path(), html: { method: :patch }) do |f| %>

Loading…
Cancel
Save