Browse Source

back link refactor

pull/21/head
Matthew Phelan 3 years ago
parent
commit
e7e859889d
  1. 2
      app/views/form/questions/tenant_age.html.erb
  2. 2
      app/views/form/questions/tenant_code.html.erb

2
app/views/form/questions/tenant_age.html.erb

@ -1,5 +1,5 @@
<%= turbo_frame_tag "case_log_form", target: "_top" do %> <%= turbo_frame_tag "case_log_form", target: "_top" do %>
<%= render GovukComponent::BackLinkComponent.new href: 'tenant_code' do %> <%= govuk_back_link GovukComponent::BackLinkComponent.new href: 'tenant_code' do %>
back back
<% end %> <% end %>
<%= form_with action: '/case_logs', method: "next_question", builder: GOVUKDesignSystemFormBuilder::FormBuilder do |f| %> <%= form_with action: '/case_logs', method: "next_question", builder: GOVUKDesignSystemFormBuilder::FormBuilder do |f| %>

2
app/views/form/questions/tenant_code.html.erb

@ -1,5 +1,5 @@
<%= turbo_frame_tag "case_log_form", target: "_top" do %> <%= turbo_frame_tag "case_log_form", target: "_top" do %>
<%= render GovukComponent::BackLinkComponent.new href: "/case_logs/#{case_log_id}" do %> <%= govuk_back_link href: "/case_logs/#{case_log_id}" do %>
Back Back
<% end %> <% end %>
<%= form_with action: '/case_logs', method: "next_question", builder: GOVUKDesignSystemFormBuilder::FormBuilder do |f| %> <%= form_with action: '/case_logs', method: "next_question", builder: GOVUKDesignSystemFormBuilder::FormBuilder do |f| %>

Loading…
Cancel
Save