From 1e5254d7d39ef4679d754619ffb0d4644dabc10a Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Fri, 12 Aug 2022 12:28:48 +0200 Subject: [PATCH] buttons binding/unbinding --- .../templates/inventory/device_detail.html | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/ereuse_devicehub/templates/inventory/device_detail.html b/ereuse_devicehub/templates/inventory/device_detail.html index 875d3508..b233c3ad 100644 --- a/ereuse_devicehub/templates/inventory/device_detail.html +++ b/ereuse_devicehub/templates/inventory/device_detail.html @@ -19,6 +19,18 @@

{{ placeholder.device.devicehub_id }}

+
+ {% if placeholder.status in ['Abstract', 'Real'] %} + + Binding + + {% elif placeholder.status == 'Twin' %} + + Unbinding + + {% endif %} +
+