diff --git a/device/templates/details.html b/device/templates/details.html index 3d3a727..d422cda 100644 --- a/device/templates/details.html +++ b/device/templates/details.html @@ -2,11 +2,30 @@ {% load i18n %} {% block content %} -
-
-

{{ object.shortid }}

-
+ +
+
+

{{ object.shortid }}

+
+ + + +
+
@@ -325,6 +344,64 @@
{% endif %}
+ + +{% for state in state_definitions %} + +{% endfor %} + + {% endblock %} {% block extrascript %} diff --git a/device/views.py b/device/views.py index 0282add..623a039 100644 --- a/device/views.py +++ b/device/views.py @@ -13,6 +13,7 @@ from django.views.generic.edit import ( DeleteView, ) from django.views.generic.base import TemplateView +from action.models import StateDefinition from dashboard.mixins import DashboardView, Http403 from evidence.models import UserProperty, SystemProperty, Property from lot.models import LotTag @@ -121,6 +122,7 @@ class DetailsView(DashboardView, TemplateView): 'snapshot': self.object.get_last_evidence(), 'lot_tags': lot_tags, 'dpps': dpps, + "state_definitions": StateDefinition.objects.filter(institution=self.request.user.institution).order_by('order'), }) return context