Browse Source

add link to bulk upload template

pull/1032/head
Phil Lee 4 years ago
parent
commit
602f1c7e5e
  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. 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
  5. BIN
      public/files/bulk-upload-lettings-template-v1.xlsx
  6. BIN
      public/files/bulk-upload-sales-template-v1.xlsx

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

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

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

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

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

@ -10,7 +10,7 @@
<h2 class="govuk-heading-m">Create your file</h2> <h2 class="govuk-heading-m">Create your file</h2>
<ul class="govuk-list govuk-list--bullet"> <ul class="govuk-list govuk-list--bullet">
<li>Download the bulk lettings template</li> <li>Download the <%= govuk_link_to "bulk lettings template", @form.template_path %></li>
<li>Export the data from your housing management system, matching the template</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>If you cannot export it in this format, you may have to input it manually</li>
</ul> </ul>

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

@ -10,7 +10,7 @@
<h2 class="govuk-heading-m">Create your file</h2> <h2 class="govuk-heading-m">Create your file</h2>
<ul class="govuk-list govuk-list--bullet"> <ul class="govuk-list govuk-list--bullet">
<li>Download the bulk sales template</li> <li>Download the <%= govuk_link_to "bulk sales template", @form.template_path %></li>
<li>Export the data from your housing management system, matching the template</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>If you cannot export it in this format, you may have to input it manually</li>
</ul> </ul>

BIN
public/files/bulk-upload-lettings-template-v1.xlsx

Binary file not shown.

BIN
public/files/bulk-upload-sales-template-v1.xlsx

Binary file not shown.
Loading…
Cancel
Save