From d5f8b1ec75185e2c9b74868376803611e318321d Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Thu, 10 Aug 2023 16:44:20 +0200 Subject: [PATCH] render datas energy star in operator role --- .../modules/did/templates/operator.html | 109 ++++++++++++++++++ 1 file changed, 109 insertions(+) diff --git a/ereuse_devicehub/modules/did/templates/operator.html b/ereuse_devicehub/modules/did/templates/operator.html index e33a29c1..797c7cd6 100644 --- a/ereuse_devicehub/modules/did/templates/operator.html +++ b/ereuse_devicehub/modules/did/templates/operator.html @@ -340,6 +340,115 @@ {% endif %} + {% if manuals.energystar %} +
+
+
Energy spent
+ + {% if manuals.energystar.long_idle_watts %} +
+
+ Consumption when inactivity power function is activated (watts) +
+
+ {{ manuals.energystar.long_idle_watts }} +
+
+ {% endif %} + + {% if manuals.energystar.short_idle_watts %} +
+
+ Consumption when inactivity power function is not activated (watts) +
+
+ {{ manuals.energystar.short_idle_watts }} +
+
+ {% endif %} + + {% if manuals.energystar.sleep_mode_watts %} +
+
+ sleep_mode_watts + Consumption when computer goes into sleep mode (watts) +
+
+ {{ manuals.energystar.sleep_mode_watts }} +
+
+ {% endif %} + + {% if manuals.energystar.off_mode_watts %} +
+
+ Consumption when the computer is off (watts) +
+
+ {{ manuals.energystar.off_mode_watts }} +
+
+ {% endif %} + + {% if manuals.energystar.tec_allowance_kwh %} +
+
+ Power allocation for normal operation (kwh) +
+
+ {{ manuals.energystar.tec_allowance_kwh }} +
+
+ {% endif %} + + {% if manuals.energystar.tec_of_model_kwh %} +
+
+ Consumption of the model configuration (kwh) +
+
+ {{ manuals.energystar.tec_of_model_kwh }} +
+
+ {% endif %} + + {% if manuals.energystar.tec_requirement_kwh %} +
+
+ Energy allowance provided (kwh) +
+
+ {{ manuals.energystar.tec_requirement_kwh }} +
+
+ {% endif %} + + {% if manuals.energystar.work_off_mode_watts %} +
+
+ The lowest power mode which cannot be switched off (watts) +
+
+ {{ manuals.energystar.work_off_mode_watts }} +
+
+ {% endif %} + + {% if manuals.energystar.work_weighted_power_of_model_watts %} +
+
+ Weighted energy consumption from all its states (watts) +
+
+ {{ manuals.energystar.work_weighted_power_of_model_watts }} +
+
+ {% endif %} + +
+
+ {% endif %} + {% if manuals.ifixit %}