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

52 lines
2.4 KiB
Text
Raw Normal View History

2020-08-17 17:58:55 +02:00
extends layout
block content
2020-09-27 21:38:04 +02:00
div.container
div.row
h4=__("profile.title")
form(action="/profile" method="POST")
h2=__("profile.infos")
div.row
div.input-field.col.s6
input#username(type="text" name="username" value=user.username disabled required)
label(for="username")=__("username")+":"
div.input-field.col.s6
input#email(type="email" name="email" value=user.email required)
label(for="email")=__("email")+":"
div.row
div.input-field.col.s6
input#firstName(type="text" name="firstName" value=user.firstName required)
label(for="firstName")=__("firstName")+":"
div.input-field.col.s6
input#lastName(type="text" name="lastName" value=user.lastName required)
label(for="lastName")=__("lastName")+":"
div.row
div.input-field.col.s12
select(name="department" required)
each department in departments
option(value=department.name selected=department.name===user.DepartmentName)=department.name
label=__("department")+":"
div.row
div.input-field.col.s12
label(for="password")=__("password")+":"
input#password(type="password" name="password")
div.row.center
div.input-field.col.s12
+submit(__("save"))
2020-08-17 17:58:55 +02:00
2020-09-27 21:38:04 +02:00
if (!user.emailVerified)
div.row.center
div.input-field.col.s12
a.btn.waves-effect.waves-light.yellow.darken-4(href="/profile/resend")=__("profile.emailCheck")
2020-08-17 17:58:55 +02:00
2020-09-27 21:38:04 +02:00
div.container.valign-wrapper
div.row.center
h4=__("orders")
each order in orders
div.col
div.card.blue-grey
div.card-content.white-text
span.card-title=order.id
each sandwich in order.Sandwiches
p #{sandwich.name} - #{sandwich.SandwichOrder.date}