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
911 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
div.card#ordersManagement
h1=__("admin.ordersManagement")
a.add(href="/admin/orders/add")
button=__("admin.add")
2020-08-18 17:54:00 +02:00
div
each order in orders
div.order
div.title
h2=order.id
h3 #{order.firstName} #{order.lastName} - #{order.price}€
2020-08-18 17:54:00 +02:00
each sandwich in order.Sandwiches
div.sandwich
p #{sandwich.name} - #{sandwich.SandwichOrder.date}
div.buttons
a.edit(href="/admin/orders/edit?id=" + order.id)
button=__("admin.edit")
a.remove(href="/admin/orders/delete?id=" + order.id)
button=__("admin.remove")
script(src="/javascripts/admin/orders/index.js")