Browse Source

feat: pass year to guidance page

pull/1342/head
natdeanlewissoftwire 3 years ago
parent
commit
8c817b243d
  1. 2
      app/controllers/bulk_upload_lettings_logs_controller.rb
  2. 2
      app/controllers/bulk_upload_sales_logs_controller.rb
  3. 2
      app/views/bulk_upload_lettings_logs/forms/prepare_your_file.html.erb
  4. 2
      app/views/bulk_upload_sales_logs/forms/prepare_your_file.html.erb

2
app/controllers/bulk_upload_lettings_logs_controller.rb

@ -22,7 +22,7 @@ class BulkUploadLettingsLogsController < ApplicationController
end
def guidance
@form = Forms::BulkUploadLettings::PrepareYourFile.new
@form = Forms::BulkUploadLettings::PrepareYourFile.new(form_params)
render "bulk_upload_shared/guidance"
end

2
app/controllers/bulk_upload_sales_logs_controller.rb

@ -22,7 +22,7 @@ class BulkUploadSalesLogsController < ApplicationController
end
def guidance
@form = Forms::BulkUploadSales::PrepareYourFile.new
@form = Forms::BulkUploadSales::PrepareYourFile.new(form_params)
render "bulk_upload_shared/guidance"
end

2
app/views/bulk_upload_lettings_logs/forms/prepare_your_file.html.erb

@ -19,7 +19,7 @@
<h2 class="govuk-heading-s">Create your file</h2>
<ul class="govuk-list govuk-list--bullet">
<li>Fill in the template with CORE data from your housing management system according to the <%= govuk_link_to "Lettings #{@form.year_combo} Bulk Upload Specification", @form.specification_path %></li>
<li>If you have to manually enter large volumes of data into the bulk upload template, we recommend creating logs directly in the service instead. <%= govuk_link_to "Find out more about exporting your data", guidance_bulk_upload_lettings_logs_path %></li>
<li>If you have to manually enter large volumes of data into the bulk upload template, we recommend creating logs directly in the service instead. <%= govuk_link_to "Find out more about exporting your data", guidance_bulk_upload_lettings_logs_path(form: { year: @form.year }) %></li>
</ul>
<%= @form.inset_text %>

2
app/views/bulk_upload_sales_logs/forms/prepare_your_file.html.erb

@ -19,7 +19,7 @@
<h2 class="govuk-heading-s">Create your file</h2>
<ul class="govuk-list govuk-list--bullet">
<li>Fill in the template with CORE data from your housing management system according to the <%= govuk_link_to "Sales #{@form.year_combo} Bulk Upload Specification", @form.specification_path %></li>
<li>If you have to manually enter large volumes of data into the bulk upload template, we recommend creating logs directly in the service instead. <%= govuk_link_to "Find out more about exporting your data", guidance_bulk_upload_sales_logs_path, year:%></li>
<li>If you have to manually enter large volumes of data into the bulk upload template, we recommend creating logs directly in the service instead. <%= govuk_link_to "Find out more about exporting your data", guidance_bulk_upload_sales_logs_path(form: { year: @form.year }) %></li>
</ul>
<h2 class="govuk-heading-s">Save your file</h2>

Loading…
Cancel
Save