55 lines
2 KiB
Text
55 lines
2 KiB
Text
extends ../../layout
|
|
|
|
block content
|
|
div.card
|
|
h1=__("admin.ordersManagement")
|
|
form#order(method="POST")
|
|
div.field
|
|
label(for="department")=__("department") + ":"
|
|
+list("department", "department-list", "department", "", "off", true)
|
|
datalist#department-list
|
|
each department in departments
|
|
option(value=department.name)
|
|
|
|
div.field
|
|
label(for="firstname")=__("firstName") + ":"
|
|
input#firstname(type="text" name="firstName" required)
|
|
div.field
|
|
label(for="lastname")=__("lastName") + ":"
|
|
input#lastname(type="text" name="lastName" required)
|
|
|
|
div.field
|
|
label(for="username")=__("username")
|
|
+list("username", "usernames", "username", "", "off")
|
|
|
|
div#order1.order
|
|
h2=__("order") + " 1"
|
|
div.field
|
|
label(for="sandwich1")=__("sandwich") + ":"
|
|
+list("sandwich1", "sandwich-list", "sandwiches[1]", "", "off", true)
|
|
div.field
|
|
label(for="day1")=__("index.day") + ":"
|
|
input#day1(type="date" name="dates[1]" required)
|
|
|
|
div#order-action
|
|
a#add-order +
|
|
a#remove-order.hide -
|
|
|
|
div.field
|
|
label(for="paid")=__("admin.paid")
|
|
input#paid(type="checkbox" name="paid")
|
|
label(for="given")=__("admin.given")
|
|
input#given(type="checkbox" name="give")
|
|
|
|
div.field
|
|
input#send(type="submit" value=__("admin.add"))
|
|
|
|
datalist#sandwich-list
|
|
each sandwich in sandwiches
|
|
option(value=sandwich.name)
|
|
datalist#usernames
|
|
each user in users
|
|
option(value=user.username)
|
|
|
|
|
|
script(src="/javascripts/admin/orders/add.js")
|