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/orders.pug

26 lines
984 B
Text
Raw Normal View History

2020-08-16 12:48:43 +02:00
extends layout
block content
div#date-selector.card
2020-08-18 17:13:22 +02:00
label(for="date")=__("date")
2020-08-16 12:48:43 +02:00
input#date(type="date" value=date)
div#orders.card
2020-08-18 17:54:00 +02:00
h1=__("orders")
each user, department in orders
2020-08-16 12:48:43 +02:00
div.department
h2= department
2020-08-18 17:54:00 +02:00
each orders, name in user
2020-08-16 12:48:43 +02:00
div.user
h3= name
2020-08-18 17:54:00 +02:00
each order, id in orders
2020-08-16 12:48:43 +02:00
div.order
2020-08-18 17:54:00 +02:00
h4 #{__("order")} N°#{id}
2020-08-16 12:48:43 +02:00
each sandwich in order
div.sandwich
form.give(method="POST" action="/orders/give")
input(type="hidden" name="id" value=id)
input.give(type="submit" value="v")
h4= sandwich.name
2020-08-16 12:48:43 +02:00
2020-08-18 17:54:00 +02:00
script(src="/javascripts/orders.js")