diff --git a/InvenTree/InvenTree/status_codes.py b/InvenTree/InvenTree/status_codes.py index 5eb97504c6..6294eba06e 100644 --- a/InvenTree/InvenTree/status_codes.py +++ b/InvenTree/InvenTree/status_codes.py @@ -62,6 +62,14 @@ class StatusCode: def items(cls): return cls.options.items() + @classmethod + def keys(cls): + return cls.options.keys() + + @classmethod + def labels(cls): + return cls.options.values() + @classmethod def label(cls, value): """ Return the status code label associated with the provided value """ diff --git a/InvenTree/build/forms.py b/InvenTree/build/forms.py index be325bb467..6ce568d621 100644 --- a/InvenTree/build/forms.py +++ b/InvenTree/build/forms.py @@ -244,6 +244,7 @@ class CompleteBuildOutputForm(HelperForm): super().__init__(*args, **kwargs) + class CancelBuildForm(HelperForm): """ Form for cancelling a build """ diff --git a/InvenTree/build/templates/build/navbar.html b/InvenTree/build/templates/build/navbar.html index 00f8172bc5..785e2764b0 100644 --- a/InvenTree/build/templates/build/navbar.html +++ b/InvenTree/build/templates/build/navbar.html @@ -18,7 +18,7 @@ {% if build.active %} -