Skip to content

Commit

Permalink
Add result boxes: wind
Browse files Browse the repository at this point in the history
  • Loading branch information
nesnoj committed Apr 26, 2024
1 parent 76be93b commit f95a916
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 7 deletions.
16 changes: 13 additions & 3 deletions digiplan/map/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 <span>Windenergienutzung</span> in 2040",
context["results_wind_capacity"] = forms.ResultsBox(
"2000 MW",
"<span>Windleistung</span> werden installiert",
category="wind",
)
context["results_wind_area"] = forms.ResultsBox(
"2,5 %",
"der <span>Regionsfläche</span> werden für die Windenergie verwendet",
category="wind",
)
context["results_wind_demand_share"] = forms.ResultsBox(
"80 %",
"des <span>Strombedarfs</span> werden durch Windstrom gedeckt",
category="wind",
)
context["results_pv"] = forms.ResultsBox(
Expand Down
8 changes: 4 additions & 4 deletions digiplan/templates/components/results_view.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
{{ results_co2 }}
</div>
<div class="main-results__col d-flex flex-column">
{{ results_wind }}
{{ results_wind_capacity }}
</div>
</div>
</div>
Expand Down Expand Up @@ -38,13 +38,13 @@ <h2>{% translate "Übersicht" %}</h2>
<div class="main-results">
<div class="main-results__row">
<div class="main-results__col d-flex flex-column">
{{ results_wind }}
{{ results_wind_capacity }}
</div>
<div class="main-results__col d-flex flex-column">
{{ results_wind }}
{{ results_wind_area }}
</div>
<div class="main-results__col d-flex flex-column">
{{ results_wind }}
{{ results_wind_demand_share }}
</div>
</div>
</div>
Expand Down

0 comments on commit f95a916

Please sign in to comment.