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

45 lines
1.7 KiB
Text
Raw Normal View History

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-09-13 21:17:13 +02:00
+list("department", "department-list", "department", user.DepartmentName, "off", true)
2020-08-17 17:58:55 +02:00
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-25 15:40:06 +02:00
if (!user.emailVerified)
div.field
a(href="/profile/resend")
input(type="button" value=__("profile.emailCheck"))
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}