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

24 lines
910 B
Text
Raw Normal View History

2020-08-24 23:23:46 +02:00
extends ../../layout
2020-08-18 17:54:00 +02:00
block content
2020-09-28 22:55:35 +02:00
div.container
2020-08-18 17:54:00 +02:00
h1=__("admin.ordersManagement")
2020-09-28 22:55:35 +02:00
ul.collection
2020-08-18 17:54:00 +02:00
each order in orders
2020-09-28 22:55:35 +02:00
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
2020-08-18 17:54:00 +02:00
p #{sandwich.name} - #{sandwich.SandwichOrder.date}
2020-09-28 22:55:35 +02:00
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")