|
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. |
|---|
|
|
| app/controllers/org_admin/templates_controller.rb |
|---|
| app/controllers/public_pages_controller.rb |
|---|
| app/policies/template_policy.rb |
|---|
| app/views/paginable/templates/_history.html.erb |
|---|
| app/views/paginable/templates/_organisational.html.erb |
|---|
| app/views/public_pages/template_export.docx.erb 100644 → 0 |
|---|
| app/views/public_pages/template_export.pdf.erb 100644 → 0 |
|---|
| app/views/template_exports/template_export.docx.erb 0 → 100644 |
|---|
| app/views/template_exports/template_export.pdf.erb 0 → 100644 |
|---|
| config/routes.rb |
|---|