Archived
1
0
Fork 0
This repository has been archived on 2024-02-17. You can view files and clone it, but cannot push or open issues or pull requests.
SOD/views/admin/orders/index.pug

22 lines
990 B
Text

extends ../../layout
block content
div.card#ordersManagement
h1=__("admin.ordersManagement")
div
each order in orders
div.order
div.title
h2=order.id
form(action="/admin/orders/order/delete" method="POST")
input.hide(type="number" name="id" value=order.id)
input(type="submit" value="x")
h3 #{order.firstName} #{order.lastName}
each sandwich in order.Sandwiches
div.sandwich
p #{sandwich.name} - #{sandwich.SandwichOrder.date}
form(action="/admin/orders/sandwich/delete" method="POST")
input.hide(type="number" name="id" value=sandwich.SandwichOrder.id)
input(type="submit" value="x")
script(src="/javascripts/admin/orders.js")