Commit 2ccfd41b authored by Kirby Ezekiel Santos's avatar Kirby Ezekiel Santos

Added the orders detail page

parent 5a4ab86e
from django.urls import path
from .views import HomePageView
from .views import IngredientsListView
from .views import IngredientsDetailView
from .views import IngredientsUpdateView
from .views import IngredientsCreateView
from .views import RecipesListView
from .views import RecipesDetailView
from .views import RecipesUpdateView
from .views import RecipesCreateView
from .views import OrdersListView
from .views import OrdersDetailView
urlpatterns = [
path('', HomePageView.as_view()),
......@@ -21,5 +25,6 @@ urlpatterns = [
path('recipes-detail', RecipesDetailView.as_view()),
path('recipes-update', RecipesUpdateView.as_view()),
path('recipes-create', RecipesCreateView.as_view()),
path('orders-list', OrdersListView.as_view())
path('orders-list', OrdersListView.as_view()),
path('orders-detail', OrdersDetailView.as_view())
]
......@@ -29,3 +29,6 @@ class RecipesCreateView(TemplateView):
class OrdersListView(TemplateView):
template_name = "orders_list.html"
class OrdersDetailView(TemplateView):
template_name = "orders_detail.html"
<!DOCTYPE html>
<html>
<head>
<title>Orders - Detail</title>
</head>
<body>
<div>
<h1 id="page_header">Orders - Detail</h1>
</div>
<div>
<table class="table">
<thead>
<tr>
<th>Customer</th>
<th>Size</th>
<th>Base Recipe</th>
<th>Customization</th>
</tr>
</thead>
<tbody>
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
</tbody>
</table>
</div>
<div>
<form>
<button type="submit" id="button_to_orders_update">Update Fields</button>
</form>
</div>
<div>
<form method="get" action="http://localhost:8000/orders-list">
<button type="submit" id="back_button">Back to List</button>
</form>
</div>
</body>
</html>
......@@ -21,7 +21,7 @@
<tr>
<td></td>
<td>
<form>
<form method="get" action="http://localhost:8000/orders-detail">
<button type="submit" id="button_to_orders_detail">Go to detail</button>
</form>
</td>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment