From f95a916b6c81f6311eb6c2498418eabf3dd14c12 Mon Sep 17 00:00:00 2001 From: nesnoj Date: Fri, 26 Apr 2024 12:16:27 +0200 Subject: [PATCH] Add result boxes: wind --- digiplan/map/views.py | 16 +++++++++++++--- digiplan/templates/components/results_view.html | 8 ++++---- 2 files changed, 17 insertions(+), 7 deletions(-) diff --git a/digiplan/map/views.py b/digiplan/map/views.py index 0c2bb9fb..df825230 100644 --- a/digiplan/map/views.py +++ b/digiplan/map/views.py @@ -104,9 +104,19 @@ def get_context_data(self, **kwargs) -> dict: category="electricity", ) context["results_heat"] = forms.ResultsBox("50,0 %", "...", category="heat") - context["results_wind"] = forms.ResultsBox( - "42,8 %", - "der Landesfläche für die Windenergienutzung in 2040", + context["results_wind_capacity"] = forms.ResultsBox( + "2000 MW", + "Windleistung werden installiert", + category="wind", + ) + context["results_wind_area"] = forms.ResultsBox( + "2,5 %", + "der Regionsfläche werden für die Windenergie verwendet", + category="wind", + ) + context["results_wind_demand_share"] = forms.ResultsBox( + "80 %", + "des Strombedarfs werden durch Windstrom gedeckt", category="wind", ) context["results_pv"] = forms.ResultsBox( diff --git a/digiplan/templates/components/results_view.html b/digiplan/templates/components/results_view.html index ee68a8d7..884294a1 100644 --- a/digiplan/templates/components/results_view.html +++ b/digiplan/templates/components/results_view.html @@ -10,7 +10,7 @@ {{ results_co2 }}
- {{ results_wind }} + {{ results_wind_capacity }}
@@ -38,13 +38,13 @@

{% translate "Übersicht" %}

- {{ results_wind }} + {{ results_wind_capacity }}
- {{ results_wind }} + {{ results_wind_area }}
- {{ results_wind }} + {{ results_wind_demand_share }}