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.5 KiB
Text
Raw Normal View History

2020-08-17 17:58:55 +02:00
extends layout
block content
div.card
h1 Profile
form(action="/profile" method="POST")
h2 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") First name:
input#firstName(type="text" name="firstName" value=user.firstName required)
div.field
label(for="lastName") Last name:
input#lastName(type="text" name="lastName" value=user.lastName required)
div.field
label(for="department") Department:
input#department(type="list" list="department-list" name="department" value=user.DepartmentName required)
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)
div.card#userCommandList
h1 Commands
each command in commands
div
h2=command.id
each sandwich in command.Sandwiches
p #{sandwich.name} - #{sandwich.SandwichCommand.date}