From 9ffa099cd0d7f1196833515668c3e4220789fcc9 Mon Sep 17 00:00:00 2001 From: Artur Date: Wed, 4 Dec 2024 01:32:47 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A1=D1=82=D1=80=D0=B0=D0=BD=D0=B8=D1=87?= =?UTF-8?q?=D0=BA=D0=B0=20=D0=B7=D0=B0=D0=B2=D0=B5=D1=80=D1=88=D0=B5=D0=BD?= =?UTF-8?q?=D0=B8=D1=8F=20=D0=BE=D1=84=D0=BE=D1=80=D0=BC=D0=BB=D0=B5=D0=BD?= =?UTF-8?q?=D0=B8=D1=8F=20=D0=BD=D0=B0=D0=BA=D0=BB=D0=B0=D0=B4=D0=BD=D0=BE?= =?UTF-8?q?=D0=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- App/Waybill/__init__.py | 3 +-- App/Waybill/templates/order_finish.html | 20 ++++++++++++++++++++ 2 files changed, 21 insertions(+), 2 deletions(-) create mode 100644 App/Waybill/templates/order_finish.html diff --git a/App/Waybill/__init__.py b/App/Waybill/__init__.py index d3abfd5..55276bc 100644 --- a/App/Waybill/__init__.py +++ b/App/Waybill/__init__.py @@ -42,7 +42,6 @@ def save_order(): result = transaction_order_model(user_id, current_date) if result.status: print("Order success") - return "OK" - # return render_template("order_finish.html", order_id = result.result[0]) + return render_template("order_finish.html", order_id = result.result[0]) else: return render_template("error.html", error_message=result.error_message) \ No newline at end of file diff --git a/App/Waybill/templates/order_finish.html b/App/Waybill/templates/order_finish.html new file mode 100644 index 0000000..dd7b64f --- /dev/null +++ b/App/Waybill/templates/order_finish.html @@ -0,0 +1,20 @@ + + + + + Накладная оформлена + + + + +
+
+

Накладная оформлена

+

Номер вашей накладной: {{ order_id }}

+ +
+
+ +