mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-02-17 06:59:35 +00:00
Allow more useful functions in twig labels
This commit is contained in:
parent
aed2652f1d
commit
1c6bf3f472
2 changed files with 12 additions and 10 deletions
|
|
@ -246,6 +246,8 @@ certain data:
|
|||
| `associated_parts_r(element)` | Get the associated parts of an element like a storagelocation, footprint, etc. including all sub-entities recursively (e.g. sub-locations) |
|
||||
| `associated_parts_count(element)` | Get the count of associated parts of an element like a storagelocation, footprint, excluding sub-entities |
|
||||
| `associated_parts_count_r(element)` | Get the count of associated parts of an element like a storagelocation, footprint, including all sub-entities recursively (e.g. sub-locations) |
|
||||
| `type_label(element)` | Get the name of the type of an element (e.g. "Part", "Storage location", etc.) |
|
||||
| `type_label_p(element)` | Get the name of the type of an element in plural form (e.g. "Parts", "Storage locations", etc.) |
|
||||
|
||||
### Filters
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue