diff --git a/core/__pycache__/urls.cpython-311.pyc b/core/__pycache__/urls.cpython-311.pyc index a262fa5..a1dbf7f 100644 Binary files a/core/__pycache__/urls.cpython-311.pyc and b/core/__pycache__/urls.cpython-311.pyc differ diff --git a/core/__pycache__/views.cpython-311.pyc b/core/__pycache__/views.cpython-311.pyc index aaa26e7..fa3e5c8 100644 Binary files a/core/__pycache__/views.cpython-311.pyc and b/core/__pycache__/views.cpython-311.pyc differ diff --git a/core/templates/base.html b/core/templates/base.html index e6c9160..33c17ee 100644 --- a/core/templates/base.html +++ b/core/templates/base.html @@ -169,6 +169,9 @@
Overview of your restaurant's performance and stock.
@@ -114,4 +118,44 @@ -{% endblock %} \ No newline at end of file + + + +{% endblock %} diff --git a/core/templates/core/edit_menu_item.html b/core/templates/core/edit_menu_item.html new file mode 100644 index 0000000..294aba5 --- /dev/null +++ b/core/templates/core/edit_menu_item.html @@ -0,0 +1,134 @@ +{% extends 'base.html' %} + +{% block content %} +Updating: {{ menu_item.name }}
+Create and edit your restaurant's menu items.
+| Item | +Price | +Status | +Actions | +
|---|---|---|---|
|
+
+ {% if item.image_url %}
+
+
+
+
+ {% endif %}
+
+
+ {{ item.name }}
+ {{ item.ingredients.count }} ingredients
+ |
+ {{ item.price|floatformat:2 }} EGP | ++ {% if item.is_active %} + Active + {% else %} + Inactive + {% endif %} + | +
+
+
+
+
+ |
+
|
+ No menu items found. Add your first one! + |
+ |||