Browse Source

back link init

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

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

@ -1,4 +1,7 @@
<%= turbo_frame_tag "case_log_form", target: "_top" do %>
<%= render GovukComponent::BackLinkComponent.new href: 'tenant_code' do %>
back
<% end %>
<%= form_with action: '/case_logs', method: "next_question", builder: GOVUKDesignSystemFormBuilder::FormBuilder do |f| %>
<%= f.govuk_number_field :tenant_age,
hint: { text: "More detail" },

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

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

Loading…
Cancel
Save