From fe88ba750b5090cd8b6ff2b66f64c59a4b4d9eae Mon Sep 17 00:00:00 2001 From: Michael Date: Wed, 12 Apr 2023 12:55:10 +0200 Subject: [PATCH] Changed IDs of pictures (#464) --- docs/extend/plugins/panel.md | 4 ++-- docs/report/bom.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/extend/plugins/panel.md b/docs/extend/plugins/panel.md index 7e63640..de60555 100644 --- a/docs/extend/plugins/panel.md +++ b/docs/extend/plugins/panel.md @@ -62,7 +62,7 @@ Let's have a look at another example. We like to have a new panel that contains Each time the button is clicked, a python function in our plugin shall be executed and do something useful. The result will look like that: -{% with id="panels", url="plugin/mouser.png", description="Panel example with button" %} {% include "img.html" %} {% endwith %} +{% with id="mouser", url="plugin/mouser.png", description="Panel example with button" %} {% include "img.html" %} {% endwith %} First we need to write the plugin code, similar as in the example above. @@ -153,7 +153,7 @@ Then just a reload. The button is defined with `class="btn btn-info` This is an InvenTree predefined button. There a are lots of others available. Here are some examples of available colors: -{% with id="panels", url="plugin/buttons.png", description="Button examples" %} {% include "img.html" %} {% endwith %} +{% with id="buttons", url="plugin/buttons.png", description="Button examples" %} {% include "img.html" %} {% endwith %} Please have a look at the css files for more options. The last line renders the value that was defined in the plugin. diff --git a/docs/report/bom.md b/docs/report/bom.md index 0b9d0df..610a382 100644 --- a/docs/report/bom.md +++ b/docs/report/bom.md @@ -159,7 +159,7 @@ we use a different format for the table cell e.g. print bold font or red color. For the picker we list the full path names of the stock locations and the quantity that is needed for the build. This will result in the following printout: -{% with id="report-options", url="report/picklist.png", description="Picklist Example" %} {% include "img.html" %} {% endwith %} +{% with id="picklist", url="report/picklist.png", description="Picklist Example" %} {% include "img.html" %} {% endwith %} For those of you who would like to replace the "/" by something else because it is hard to read in some fonts use the following trick: @@ -175,7 +175,7 @@ topmost parent. We use a loop to cycle through that and print the .name of the e by a "-". The foorloop.last is a Django trick that allows us to not print the "-" after the last entry. The result looks like here: -{% with id="report-options", url="report/picklist_with_path.png", description="Picklist Example" %} {% include "img.html" %} {% endwith %} +{% with id="picklist_with_path", url="report/picklist_with_path.png", description="Picklist Example" %} {% include "img.html" %} {% endwith %} Finally added a `{% raw %}|floatformat:0{% endraw %}` to the quantity that removes the trailing zeros.