mirror of
https://github.com/inventree/InvenTree.git
synced 2025-07-02 11:40:58 +00:00
replace labels with badges
This commit is contained in:
@ -5,7 +5,7 @@ const {{ label }}Codes = {
|
||||
{% for opt in options %}'{{ opt.key }}': {
|
||||
key: '{{ opt.key }}',
|
||||
value: '{{ opt.value }}',{% if opt.color %}
|
||||
label: 'label-{{ opt.color }}',{% endif %}
|
||||
label: 'bg-{{ opt.color }}',{% endif %}
|
||||
},
|
||||
{% endfor %}
|
||||
};
|
||||
@ -32,7 +32,7 @@ function {{ label }}StatusDisplay(key, options={}) {
|
||||
label = '';
|
||||
}
|
||||
|
||||
var classes = `label ${label}`;
|
||||
var classes = `badge rounded-pill ${label}`;
|
||||
|
||||
if (options.classes) {
|
||||
classes += ' ' + options.classes;
|
||||
|
Reference in New Issue
Block a user