59 lines
2.5 KiB
Text
59 lines
2.5 KiB
Text
extends ../../layout
|
|
|
|
block content
|
|
span#dummy.hide=__("admin.given")
|
|
div.container
|
|
h1=__("admin.ordersManagement")
|
|
div.row
|
|
form#order.col.s12(method="POST")
|
|
div.row
|
|
div.input-field.col.s12
|
|
select(name="department" required)
|
|
option(value="" disabled selected hidden)=__("chooseDepartment")
|
|
each department in departments
|
|
option(value=department.name)=department.name
|
|
label=__("department") + ":"
|
|
|
|
div.row
|
|
div.input-field.col.s12
|
|
select(name="username")
|
|
option(value="" disabled selected hidden)=__("admin.chooseUser")
|
|
each user in users
|
|
option(value=user.username)=user.username
|
|
label=__("username") + ":"
|
|
|
|
div.row
|
|
div.input-field.col.s6
|
|
input#firstname(type="text" name="firstName" required)
|
|
label(for="firstname")=__("firstName") + ":"
|
|
div.input-field.col.s6
|
|
input#lastname(type="text" name="lastName" required)
|
|
label(for="lastname")=__("lastName") + ":"
|
|
|
|
div#oderCreator.row
|
|
h5=__("order")
|
|
div.input-field.col.s6
|
|
select#sandwich
|
|
option(value="" disabled selected hidden)=__("index.chooseSandwich")
|
|
each sandwich in sandwiches
|
|
option(value=sandwich.name)=sandwich.name
|
|
label=__("sandwich") + ":"
|
|
div.input-field.col.s6
|
|
input#day(type="date")
|
|
label(for="day")=__("index.day") + ":"
|
|
a#addOrder.btn-floating.btn-large.waves-effect.waves-light.blue: i.material-icons add
|
|
|
|
div#orders
|
|
|
|
div.row.center
|
|
div.input-field.col.s12
|
|
p
|
|
label(for="paid")
|
|
input#paid(type="checkbox" name="paid")
|
|
span=__("admin.paid")
|
|
|
|
div.row.center
|
|
div.input-field.col.s12
|
|
+submit(__("admin.add"))
|
|
|
|
script(src="/javascripts/admin/orders/add.js")
|