2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-07-01 11:10:54 +00:00

remove import / export calls

This commit is contained in:
Oliver Walters
2021-08-30 13:10:58 +10:00
parent 24ca1c5641
commit 5d45fce240
5 changed files with 13 additions and 15 deletions

View File

@ -1,3 +1,14 @@
{% load i18n %}
function yesNoLabel(value) {
if (value) {
return `<span class='label label-green'>{% trans "YES" %}</span>`;
} else {
return `<span class='label label-yellow'>{% trans "NO" %}</span>`;
}
}
/*
* A set of simple helper functions
*/

View File

@ -5,15 +5,6 @@
* Requires api.js to be loaded first
*/
function yesNoLabel(value) {
if (value) {
return `<span class='label label-green'>{% trans "YES" %}</span>`;
} else {
return `<span class='label label-yellow'>{% trans "NO" %}</span>`;
}
}
function partGroups(options={}) {
return {

View File

@ -2,8 +2,6 @@
{% load status_codes %}
{% load inventree_extras %}
import { global_settings } from '{% url "settings.js" %}';
{% include "status_codes.html" with label='stock' options=StockStatus.list %}
{% include "status_codes.html" with label='stockHistory' options=StockHistoryCode.list %}
{% include "status_codes.html" with label='build' options=BuildStatus.list %}

View File

@ -1,7 +1,5 @@
{% load i18n %}
import { inventreeLoad, inventreeSave } from '{% url "inventree.js" %}';
function reloadtable(table) {
$(table).bootstrapTable('refresh');