Added functionality to allow Org admins to export their org's templates.
Re-used the template_export templates template_export.docx.erb
and template_export.pdf.erb.

Changes:
 - Moved templates template_export.docx.erb and template_export.pdf.erb
to a separate view folder template_exports.
- Added functionality for Org admins to export both current and historic
templates for their organisation. The version name has been appended to
the templates, e.g., My_Template_v0.docx or  My_Template_v5.pdf.

Fix for issue #2091.
dev
1 parent 58e9f21 commit 001e75b1c7ef5994f518ed16bb2faa8d3cdb85bc
@John Pinto John Pinto authored on 31 Oct 2019
Showing 10 changed files
View
app/controllers/org_admin/templates_controller.rb
View
app/controllers/public_pages_controller.rb
View
app/policies/template_policy.rb
View
app/views/paginable/templates/_history.html.erb
View
app/views/paginable/templates/_organisational.html.erb
View
app/views/public_pages/template_export.docx.erb 100644 → 0
View
app/views/public_pages/template_export.pdf.erb 100644 → 0
View
app/views/template_exports/template_export.docx.erb 0 → 100644
View
app/views/template_exports/template_export.pdf.erb 0 → 100644
View
config/routes.rb