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

44 lines
1.7 KiB
Text

extends layout
block content
div.card
h1=__("profile.title")
form(action="/profile" method="POST")
h2=__("profile.infos")
div.field
label(for="username")=__("username")+":"
input#username(type="text" name="username" value=user.username disabled required)
div.field
label(for="email")=__("email")+":"
input#email(type="email" name="email" value=user.email required)
div.field
label(for="firstName")=__("firstName")+":"
input#firstName(type="text" name="firstName" value=user.firstName required)
div.field
label(for="lastName")=__("lastName")+":"
input#lastName(type="text" name="lastName" value=user.lastName required)
div.field
label(for="department")=__("department")+":"
+list("department", "department-list", "department", user.DepartmentName, "off", true)
div.field
label(for="password")=__("password")+":"
input#password(type="password" name="password")
div.field
input(type="submit" value=__("save"))
datalist#department-list
each department in departments
option(value=department.name)
if (!user.emailVerified)
div.field
a(href="/profile/resend")
input(type="button" value=__("profile.emailCheck"))
div.card#userOrderList
h1=__("orders")
each order in orders
div
h2=order.id
each sandwich in order.Sandwiches
p #{sandwich.name} - #{sandwich.SandwichOrder.date}