From c21f4b3dacd597a15a5ec39d525df1dfe1b70376 Mon Sep 17 00:00:00 2001 From: jdlugosz963 Date: Mon, 17 Jul 2023 01:47:57 +0200 Subject: Add project. --- .../dashboard/templates/dashboard/dashboard.html | 152 +++++++++++++++++++++ .../templates/dashboard/dashboard_order.html | 89 ++++++++++++ 2 files changed, 241 insertions(+) create mode 100644 restaurant_orders/dashboard/templates/dashboard/dashboard.html create mode 100644 restaurant_orders/dashboard/templates/dashboard/dashboard_order.html (limited to 'restaurant_orders/dashboard/templates') diff --git a/restaurant_orders/dashboard/templates/dashboard/dashboard.html b/restaurant_orders/dashboard/templates/dashboard/dashboard.html new file mode 100644 index 0000000..0d2bf11 --- /dev/null +++ b/restaurant_orders/dashboard/templates/dashboard/dashboard.html @@ -0,0 +1,152 @@ +{% extends "base.html" %} + +{% block title %}Dashboard{% endblock %} + +{% block content %} + {% include '_pagination.html' %} +
+ +
+ + + +
+ {% for object in object_list %} + + {% endfor %} +
+ + + + {% endblock %} diff --git a/restaurant_orders/dashboard/templates/dashboard/dashboard_order.html b/restaurant_orders/dashboard/templates/dashboard/dashboard_order.html new file mode 100644 index 0000000..f245843 --- /dev/null +++ b/restaurant_orders/dashboard/templates/dashboard/dashboard_order.html @@ -0,0 +1,89 @@ +{% extends "base.html" %} + +{% block title %}Order #{{order.wp_id}}{% endblock %} + +{% block content %} +
+ Wroc +

#{{ order.wp_id}} - {{ order.billing.first_name }} {{ order.billing.last_name }} - {{order.get_wp_status_display}}

+
+
+
+

Zamowienie

+ + + + + + + + + + + + + {% for item in order.line_items %} + + + + + + + + {% endfor %} + +
#ProduktCena za produktCena za produktyIlosc
{{ forloop.counter }}{{ item.name }}{{item.price}} zl{{item.subtotal}} zl{{item.quantity}}
+ +
    +
+
+
+ +
+
+

Adres dostawy

+
    +
  • + Imie i Nazwisko + {{order.billing.first_name}} {{order.billing.last_name}} +
  • +
  • + Numer stolika + {{order.billing.address_1}} +
  • +
  • + Telefon + {{order.billing.phone}} +
  • +
  • + Email + {{order.billing.email}} +
  • +
+
+
+ +
+
+

Doliczenie do zamowienia

+
+ {% csrf_token %} + {{addToBillForm}} + +
+
+
+ +
+
+

Akcje

+
+ {% csrf_token %} + {{orderStatusForm}} + +
+
+
+
+
+{% endblock %} -- cgit v1.2.3