From 763fa24bd734fab88f8dc05467ebcb34ab480aaf Mon Sep 17 00:00:00 2001 From: josihoppe <116898820+josihoppe@users.noreply.github.com> Date: Thu, 21 Nov 2024 13:36:02 +0100 Subject: [PATCH] added Consumption Result View --- building_dialouge_webapp/heat/flows.py | 2 +- building_dialouge_webapp/heat/urls.py | 1 + building_dialouge_webapp/heat/views.py | 4 ++++ .../templates/pages/consumption_result.html | 7 +++++++ 4 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 building_dialouge_webapp/templates/pages/consumption_result.html diff --git a/building_dialouge_webapp/heat/flows.py b/building_dialouge_webapp/heat/flows.py index 7a081b7..5fe307d 100644 --- a/building_dialouge_webapp/heat/flows.py +++ b/building_dialouge_webapp/heat/flows.py @@ -677,7 +677,7 @@ def __init__(self): Next("end"), ) - self.end = EndState(self, url="heat:home") + self.end = EndState(self, url="heat:consumption_result") class RoofFlow(Flow): diff --git a/building_dialouge_webapp/heat/urls.py b/building_dialouge_webapp/heat/urls.py index 84b4967..da268ea 100644 --- a/building_dialouge_webapp/heat/urls.py +++ b/building_dialouge_webapp/heat/urls.py @@ -15,6 +15,7 @@ path("cellar/", flows.CellarFlow.as_view(), name="cellar"), path("hotwater_heating/", flows.HotwaterHeatingFlow.as_view(), name="hotwater_heating"), path("consumption_input/", flows.ConsumptionInputFlow.as_view(), name="consumption_input"), + path("consumption_result/", views.ConsumptionResult.as_view(), name="consumption_result"), # step 2 inventory analysis path("intro_inventory/", views.IntroInventory.as_view(), name="intro_inventory"), path("roof/", flows.RoofFlow.as_view(), name="roof"), diff --git a/building_dialouge_webapp/heat/views.py b/building_dialouge_webapp/heat/views.py index a2a8479..2fab458 100644 --- a/building_dialouge_webapp/heat/views.py +++ b/building_dialouge_webapp/heat/views.py @@ -12,6 +12,10 @@ class IntroConsumption(TemplateView): } +class ConsumptionResult(TemplateView): + template_name = "pages/consumption_result.html" + + class IntroInventory(TemplateView): template_name = "pages/intro_inventory.html" diff --git a/building_dialouge_webapp/templates/pages/consumption_result.html b/building_dialouge_webapp/templates/pages/consumption_result.html new file mode 100644 index 0000000..3393e96 --- /dev/null +++ b/building_dialouge_webapp/templates/pages/consumption_result.html @@ -0,0 +1,7 @@ +{% extends "base.html" %} + +{% block content %} +