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

40 lines
1.6 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-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-18 17:08:29 +02:00
input(type="submit" value=__("profile.save"))
2020-08-17 17:58:55 +02:00
datalist#department-list
each department in departments
option(value=department.name)
div.card#userCommandList
2020-08-18 17:08:29 +02:00
h1=__("commands")
2020-08-17 17:58:55 +02:00
each command in commands
div
h2=command.id
each sandwich in command.Sandwiches
p #{sandwich.name} - #{sandwich.SandwichCommand.date}