2020-08-17 17:58:55 +02:00
|
|
|
extends layout
|
|
|
|
|
|
|
|
block content
|
|
|
|
div.card
|
2020-08-18 17:08:29 +02:00
|
|
|
h1=__("profile.title")
|
2020-08-17 17:58:55 +02:00
|
|
|
form(action="/profile" method="POST")
|
2020-08-18 17:08:29 +02:00
|
|
|
h2=__("profile.infos")
|
2020-08-17 17:58:55 +02:00
|
|
|
div.field
|
2020-08-18 17:08:29 +02:00
|
|
|
label(for="username")=__("username")+":"
|
2020-08-17 17:58:55 +02:00
|
|
|
input#username(type="text" name="username" value=user.username disabled required)
|
|
|
|
div.field
|
2020-08-18 17:08:29 +02:00
|
|
|
label(for="email")=__("email")+":"
|
2020-08-17 17:58:55 +02:00
|
|
|
input#email(type="email" name="email" value=user.email required)
|
|
|
|
div.field
|
2020-08-18 17:08:29 +02:00
|
|
|
label(for="firstName")=__("firstName")+":"
|
2020-08-17 17:58:55 +02:00
|
|
|
input#firstName(type="text" name="firstName" value=user.firstName required)
|
|
|
|
div.field
|
2020-08-18 17:08:29 +02:00
|
|
|
label(for="lastName")=__("lastName")+":"
|
2020-08-17 17:58:55 +02:00
|
|
|
input#lastName(type="text" name="lastName" value=user.lastName required)
|
|
|
|
div.field
|
2020-08-18 17:08:29 +02:00
|
|
|
label(for="department")=__("department")+":"
|
2020-08-17 17:58:55 +02:00
|
|
|
input#department(type="list" list="department-list" name="department" value=user.DepartmentName required)
|
|
|
|
div.field
|
2020-08-18 17:08:29 +02:00
|
|
|
label(for="password")=__("password")+":"
|
2020-08-17 17:58:55 +02:00
|
|
|
input#password(type="password" name="password")
|
|
|
|
div.field
|
2020-08-20 11:48:28 +02:00
|
|
|
input(type="submit" value=__("save"))
|
2020-08-17 17:58:55 +02:00
|
|
|
|
|
|
|
datalist#department-list
|
|
|
|
each department in departments
|
|
|
|
option(value=department.name)
|
|
|
|
|
2020-08-18 17:54:00 +02:00
|
|
|
div.card#userOrderList
|
|
|
|
h1=__("orders")
|
|
|
|
each order in orders
|
2020-08-17 17:58:55 +02:00
|
|
|
div
|
2020-08-18 17:54:00 +02:00
|
|
|
h2=order.id
|
|
|
|
each sandwich in order.Sandwiches
|
|
|
|
p #{sandwich.name} - #{sandwich.SandwichOrder.date}
|