2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-27 17:20:49 +00:00

fixes for table_filters.js

This commit is contained in:
Oliver Walters
2021-08-28 22:18:20 +10:00
parent 0620e656a0
commit 140a2092c8
2 changed files with 7 additions and 4 deletions

View File

@ -1,12 +1,13 @@
/*
* Status codes for the {{ label }} model.
*/
var {{ label }}Codes = {
export const {{ label }}Codes = {
{% for opt in options %}'{{ opt.key }}': {
key: '{{ opt.key }}',
value: '{{ opt.value }}',{% if opt.color %}
label: 'label-{{ opt.color }}',{% endif %}
},{% endfor %}
},
{% endfor %}
};
/*
@ -14,7 +15,7 @@ var {{ label }}Codes = {
* Uses the values specified in "status_codes.py"
* This function is generated by the "status_codes.html" template
*/
function {{ label }}StatusDisplay(key, options={}) {
export function {{ label }}StatusDisplay(key, options={}) {
key = String(key);