From d36c34366878774df4fa3c3f9f55c8cfb22bb12e Mon Sep 17 00:00:00 2001 From: Ofir Matasas Date: Thu, 28 Apr 2022 23:00:49 +0300 Subject: [PATCH] Creating orders.html, presenting orders history A page on Hotails, where the user can watch the history of all of his orders, cancel the orders which havn't started yet, and approve orders as a daycare. Signed-off-by: Ofir Matasas --- Hotails/urls.py | 1 + main/templates/main/base_template.html | 2 +- main/tests.py | 45 ++++++++++++++------- main/views.py | 6 +++ orders/models.py | 21 ++++++++++ orders/templates/orders/orders.html | 54 ++++++++++++++++++++++++++ orders/views.py | 20 +++++++++- static/CSS/orders.css | 8 ++++ 8 files changed, 141 insertions(+), 16 deletions(-) create mode 100644 orders/templates/orders/orders.html create mode 100644 static/CSS/orders.css diff --git a/Hotails/urls.py b/Hotails/urls.py index 21257e0..5da5d7b 100644 --- a/Hotails/urls.py +++ b/Hotails/urls.py @@ -26,4 +26,5 @@ path('homepage/', views.homepage, name='homepage'), path('logout/', views.logout_view, name='logout'), path('about/', views.about, name='about'), + path('orders/', views.orders_view, name='orders'), ] diff --git a/main/templates/main/base_template.html b/main/templates/main/base_template.html index 63c7685..e6f980b 100644 --- a/main/templates/main/base_template.html +++ b/main/templates/main/base_template.html @@ -25,7 +25,7 @@