2020-06-26 16:59:54 +02:00
|
|
|
extends layout
|
|
|
|
|
|
|
|
block content
|
2020-08-14 20:08:00 +02:00
|
|
|
div.card
|
|
|
|
h1= title
|
2020-08-18 16:48:09 +02:00
|
|
|
p=__("index.welcome")
|
2020-08-18 17:54:00 +02:00
|
|
|
form#order(action="/order" method="POST")
|
2020-08-14 20:08:00 +02:00
|
|
|
div.field
|
2020-08-18 17:00:07 +02:00
|
|
|
label(for="department")=__("department")+":"
|
2020-09-13 21:17:13 +02:00
|
|
|
+list("department", "department-list", "department", user ? user.DepartmentName : "", "off", true)
|
2020-08-14 20:08:00 +02:00
|
|
|
datalist#department-list
|
2020-08-15 12:55:21 +02:00
|
|
|
each department in departments
|
|
|
|
option(value=department.name)
|
2020-08-14 20:08:00 +02:00
|
|
|
|
|
|
|
div.field
|
2020-08-18 17:00:07 +02:00
|
|
|
label(for="firstname")=__("firstName")+":"
|
2020-08-17 16:54:43 +02:00
|
|
|
input#firstname(type="text" name="firstName" value=user ? user.firstName : "" required)
|
2020-08-14 20:08:00 +02:00
|
|
|
div.field
|
2020-08-18 17:00:07 +02:00
|
|
|
label(for="lastname")=__("lastName")+":"
|
2020-08-17 16:54:43 +02:00
|
|
|
input#lastname(type="text" name="lastName" value=user ? user.lastName : "" required)
|
2020-08-14 20:08:00 +02:00
|
|
|
|
2020-08-18 17:54:00 +02:00
|
|
|
div#order1.order
|
|
|
|
h2=__("order")+" 1"
|
2020-08-14 20:08:00 +02:00
|
|
|
div.field
|
2020-08-20 13:11:25 +02:00
|
|
|
label(for="sandwich1")=__("sandwich")+":"
|
2020-09-13 21:17:13 +02:00
|
|
|
+list("sandwich1", "sandwich-list", "sandwiches[1]", "", "off", true)
|
2020-08-14 20:08:00 +02:00
|
|
|
div.field
|
2020-08-18 16:48:09 +02:00
|
|
|
label(for="day1")=__("index.day")+":"
|
2020-09-13 18:56:13 +02:00
|
|
|
input#day1(type="date" min=date.firstDate ? date.firstDate : "" max=date.lastDate ? date.lastDate : "" name="dates[1]" required)
|
2020-08-14 20:08:00 +02:00
|
|
|
|
2020-08-18 17:54:00 +02:00
|
|
|
div#order-action
|
|
|
|
a#add-order +
|
|
|
|
a#remove-order.hide -
|
2020-08-14 20:08:00 +02:00
|
|
|
|
2020-09-20 12:35:02 +02:00
|
|
|
h3=__("index.payment")
|
|
|
|
div.field.buttons
|
|
|
|
label(for="lyf_pay") LyfPay
|
|
|
|
input#lyf_pay(type="radio" name="payment" value="lyfPay" checked)
|
|
|
|
label(for="credit_card")=__("index.creditCard")
|
|
|
|
input#credit_card(type="radio" name="payment" value="creditCard")
|
|
|
|
|
2020-08-14 20:08:00 +02:00
|
|
|
div.field
|
2020-09-13 20:37:58 +02:00
|
|
|
+submit(value=__("index.pay"))
|
2020-08-14 20:08:00 +02:00
|
|
|
|
|
|
|
datalist#sandwich-list
|
2020-08-16 12:48:43 +02:00
|
|
|
each sandwich in sandwiches
|
2020-08-15 12:55:21 +02:00
|
|
|
option(value=sandwich.name)
|
2020-08-15 11:47:36 +02:00
|
|
|
|
2020-08-17 19:19:13 +02:00
|
|
|
script(src="/javascripts/index.js")
|