{% load i18n %} function makeBarcodeInput(placeholderText='', hintText='') { /* * Generate HTML for a barcode input */ placeholderText = placeholderText || '{% trans "Scan barcode data here using wedge scanner" %}'; hintText = hintText || '{% trans "Enter barcode data" %}'; var html = `
{% trans "Part" %} | {% trans "Location" %} | {% trans "Quantity" %} | |
---|---|---|---|
${imageHoverIcon(item.part_detail.thumbnail)} ${item.part_detail.name} | ${item.location_detail.name} | ${item.quantity} | ${makeIconButton('fa-times-circle icon-red', 'button-item-remove', item.pk, '{% trans "Remove stock item" %}')} |