Browse Source

feat: add inset text and old template (actual link to come)

pull/1342/head
natdeanlewissoftwire 3 years ago
parent
commit
d684b043ee
  1. 4
      app/models/forms/bulk_upload_lettings/prepare_your_file.rb
  2. 4
      app/models/forms/bulk_upload_sales/prepare_your_file.rb
  3. 5
      app/views/bulk_upload_lettings_logs/forms/prepare_your_file.html.erb
  4. 6
      app/views/bulk_upload_sales_logs/forms/prepare_your_file.html.erb

4
app/models/forms/bulk_upload_lettings/prepare_your_file.rb

@ -29,6 +29,10 @@ module Forms
"/files/bulk-upload-lettings-template-v1.xlsx"
end
def old_template_path
"/files/bulk-upload-lettings-template-v1.xlsx"
end
def year_combo
"#{year}/#{year + 1 - 2000}"
end

4
app/models/forms/bulk_upload_sales/prepare_your_file.rb

@ -27,6 +27,10 @@ module Forms
"/files/bulk-upload-sales-template-v1.xlsx"
end
def old_template_path
"/files/bulk-upload-sales-template-v1.xlsx"
end
def year_combo
"#{year}/#{year + 1 - 2000}"
end

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

@ -10,9 +10,10 @@
<span class="govuk-caption-l">Upload lettings logs in bulk (<%= @form.year_combo %>)</span>
<h1 class="govuk-heading-l">Prepare your file</h1>
<p class="govuk-inset-text">The new bulk upload template has been reordered to match the order of questions on the site. If your system is still exporting the old ordering then use this <%= govuk_link_to "bulk lettings template", @form.old_template_path %> instead.</p>
<h2 class="govuk-heading-m">Create your file</h2>
<ul class="govuk-list govuk-list--bullet">
<li>Download the <%= govuk_link_to "bulk lettings template", @form.template_path %></li>
<li>Download the <%= govuk_link_to "bulk lettings template (new ordering)", @form.template_path %></li>
<li>Export the data from your housing management system, matching the template</li>
<li>If you cannot export it in this format, you may have to input it manually</li>
<li>You can not have a file with both general needs logs and supported housing logs. These must be in separate files</li>
@ -20,7 +21,7 @@
<h2 class="govuk-heading-m">Check your data</h2>
<ul class="govuk-list govuk-list--bullet">
<li>Check data is complete and formatted correctly, using data specifications (opens in a new tab)</li>
<li>Check data is complete and formatted correctly, using <%= govuk_link_to "Lettings 2022-23 Bulk Upload Specification", @form.specification_path %></li>
</ul>
<h2 class="govuk-heading-m">Save your file</h2>

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

@ -10,16 +10,18 @@
<span class="govuk-caption-l">Upload sales logs in bulk (<%= @form.year_combo %>)</span>
<h1 class="govuk-heading-l">Prepare your file</h1>
<p class="govuk-inset-text">The new bulk upload template has been reordered to match the order of questions on the site. If your system is still exporting the old ordering then use this <%= govuk_link_to "bulk sales template", @form.old_template_path %> instead.</p>
<h2 class="govuk-heading-m">Create your file</h2>
<ul class="govuk-list govuk-list--bullet">
<li>Download the <%= govuk_link_to "bulk sales template", @form.template_path %></li>
<li>Download the <%= govuk_link_to "bulk sales template (new ordering)", @form.template_path %></li>
<li>Export the data from your housing management system, matching the template</li>
<li>If you cannot export it in this format, you may have to input it manually</li>
<li>You can not have a file with both general needs logs and supported housing logs. These must be in separate files</li>
</ul>
<h2 class="govuk-heading-m">Check your data</h2>
<ul class="govuk-list govuk-list--bullet">
<li>Check data is complete and formatted correctly, using data specifications (opens in a new tab)</li>
<li>Check data is complete and formatted correctly, using <%= govuk_link_to "Sales 2022-23 Bulk Upload Specification", @form.specification_path %></li>
</ul>
<h2 class="govuk-heading-m">Save your file</h2>

Loading…
Cancel
Save