From 695231565c0b0fded4efbcbb3cb0bc99c1b961c8 Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Fri, 3 Jul 2026 10:47:10 +0000 Subject: [PATCH] Updates --- docs/docs/report/assets.md | 6 ++++-- docs/docs/report/snippets.md | 4 +++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/docs/docs/report/assets.md b/docs/docs/report/assets.md index 52119073c5..176209634a 100644 --- a/docs/docs/report/assets.md +++ b/docs/docs/report/assets.md @@ -4,7 +4,9 @@ title: Report Assets ## Report Assets -User can upload asset files (e.g. images) which can be used when generating reports. For example, you may wish to generate a report with your company logo in the header. Asset files are uploaded via the admin interface. +Users can upload asset files (e.g. images) which can be used when generating reports. For example, you may wish to generate a report with your company logo in the header. + +Asset files are managed from the [Admin Center](../settings/admin.md#admin-center), via the *Report Assets* panel. Staff users can upload new asset files, and remove assets which are no longer required. Asset files can be rendered directly into the template as follows @@ -38,6 +40,6 @@ Asset files can be rendered directly into the template as follows If the requested asset name does not match the name of an uploaded asset, the template will continue without loading the image. !!! info "Assets location" - Upload new assets via the [admin interface](../settings/admin.md) to ensure they are uploaded to the correct location on the server. + Upload new assets via the *Report Assets* panel in the [Admin Center](../settings/admin.md#admin-center) to ensure they are uploaded to the correct location on the server. There are various [helper functions](./helpers.md#report-assets) available to assist with embedding assets into templates. diff --git a/docs/docs/report/snippets.md b/docs/docs/report/snippets.md index 6452d8eba6..6acf3f5eaa 100644 --- a/docs/docs/report/snippets.md +++ b/docs/docs/report/snippets.md @@ -8,7 +8,9 @@ A powerful feature provided by the django / WeasyPrint templating framework is t To support this, InvenTree provides report "snippets" - short (or not so short) template files which cannot be rendered by themselves, but can be called from other templates. -Similar to [assets files](./assets.md), snippet template files are uploaded via the admin interface. +Snippet files are managed from the [Admin Center](../settings/admin.md#admin-center), via the *Report Snippets* panel. Staff users can upload new snippet files, and edit or remove existing snippets. + +Additionally, the content of an existing snippet can be modified directly within the browser - simply select a snippet from the table to open it in the built-in [template editor](./template_editor.md#editing-snippets). Snippets are included in a template as follows: