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
2020-09-28 22:55:35 +02:00

23 lines
910 B
Text

extends ../../layout
block content
div.container
h1=__("admin.ordersManagement")
ul.collection
each order in orders
li.collection-item
div #{order.id} | #{order.firstName} #{order.lastName} - #{order.price}€
div.secondary-content
a(href="/admin/orders/edit?id=" + order.id)
i.material-icons edit
a.delete(href="/admin/orders/delete?id=" + order.id)
i.material-icons remove
each sandwich in order.Sandwiches
p #{sandwich.name} - #{sandwich.SandwichOrder.date}
div.fixed-action-btn
a.btn-floating.btn-large.blue(href="/admin/orders/add")
i.large.material-icons add
script(src="/javascripts/admin/orders/index.js")