Added placeholders to insert Barcodes into labels without using the predefined templates.

This commit is contained in:
Jan Böhmer 2022-09-25 00:34:44 +02:00
parent ab8be58c0d
commit 3d61e04e5b
6 changed files with 124 additions and 3 deletions

View file

@ -93,6 +93,16 @@ const PLACEHOLDERS = [
['[[CREATION_DATE]]', 'Creation datetime'],
]
},
{
label: 'Barcodes',
entries: [
['[[1D_CONTENT]]', 'Content of the 1D barcodes (like Code 39)'],
['[[2D_CONTENT]]', 'Content of the 2D barcodes (QR codes)'],
['[[BARCODE_QR]]', 'QR code linking to this element'],
['[[BARCODE_C128]]', 'Code 128 barcode linking to this element'],
['[[BARCODE_C39]]', 'Code 39 barcode linking to this element'],
]
},
{
label: 'Globals',
entries: [
@ -102,7 +112,8 @@ const PLACEHOLDERS = [
['[[DATE]]', 'Current date'],
['[[TIME]]', 'Current time'],
['[[INSTALL_NAME]]', 'Instance name'],
['[[TYPE]]', 'Target type']
['[[TYPE]]', 'Target type'],
['[[INSTANCE_URL]]', 'URL of this Part-DB instance']
],
},
];