This commit is contained in:
Oliver Walters 2021-04-21 16:33:00 +10:00
parent 9b763ca715
commit 59341397ba
3 changed files with 10 additions and 1 deletions

View File

@ -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 """

View File

@ -244,6 +244,7 @@ class CompleteBuildOutputForm(HelperForm):
super().__init__(*args, **kwargs)
class CancelBuildForm(HelperForm):
""" Form for cancelling a build """

View File

@ -18,7 +18,7 @@
{% if build.active %}
<li class='list-group-item {% if tab == "allocate" %}active{% endif %}' title='{% trans "In Progress" %}'>
<li class='list-group-item {% if tab == "allocate" %}active{% endif %}' title='{% trans "Allocate Stock" %}'>
<a href='{% url "build-allocate" build.id %}'>
<span class='fas fa-tools'></span>
{% trans "Allocate Stock" %}