Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

restricted heat pump slider to not move under 50 #347

Merged
merged 1 commit into from
Sep 1, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions digiplan/map/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ def generate_fields(parameters, additional_parameters=None): # noqa: ANN001, AN
attrs["data-to"] = item["to"]
if "step" in item:
attrs["data-step"] = item["step"]
if "from-min" in item:
attrs["data-from-min"] = item["from-min"]

field = IntegerField(
label=item["label"],
Expand Down
5 changes: 5 additions & 0 deletions digiplan/static/config/heat_settings_panel.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"start": 30,
"status_quo": 50,
"step": 5,
"from-min": 50,
"tooltip": "{% trans 'Energetischer Anteil von Wärmepumpen in dezentralen Heizungssystemen. Das dargestellte Ziel für 2045 ist abgeleitet aus den BMWK Langfristszenarien.' %}",
"type": "slider",
"sidepanel": true
Expand All @@ -20,6 +21,7 @@
"start": 50,
"status_quo": 50,
"step": 5,
"from-min": 50,
"tooltip": "{% trans 'Anteil von Wärmepumpen für Verbraucher mit eigener Wärmeerzeugung im Haushaltssektor.' %}",
"type": "slider"
},
Expand All @@ -31,6 +33,7 @@
"start": 50,
"status_quo": 50,
"step": 5,
"from-min": 50,
"tooltip": "{% trans 'Anteil von Wärmepumpen für Verbraucher mit eigener Wärmeerzeugung im Gewerbe-, Handels- und Dienstleistungssektor.' %}",
"type": "slider"
},
Expand All @@ -42,6 +45,7 @@
"start": 50,
"status_quo": 50,
"step": 5,
"from-min": 50,
"tooltip": "{% trans 'Anteil von Wärmepumpen für Verbraucher mit eigener Wärmeerzeugung in der Industrie.' %}",
"type": "slider"
},
Expand All @@ -54,6 +58,7 @@
"start": 10,
"status_quo": 40,
"step": 5,
"from-min": 50,
"tooltip": "{% trans 'Energetischer Anteil von Wärmepumpen für Heizung, Warmwasser und Prozesswärme in Haushalten, GHD und Industrie in Fernwärmenetzen (Dessau-Roßlau, Bitterfeld-Wolfen, Köthen and Wittenberg). Die übrige Energie wird bereitgestellt durch direktelektrische Heizung, Bioenergie und Solarthermie (s. Beheizungsstruktur in den Ergebnissen). Das dargestellte Ziel für 2045 ist abgeleitet aus den BMWK Langfristszenarien.\n\nHinweis: Dezentrale Wärmesysteme werden im Menü separat konfiguriert.' %}",
"type": "slider"
},
Expand Down