extends ../../layout
block content
div.card#usersManagement
h1=__("admin.new")+" "+__("admin.user")
form(action="/admin/users/add" method="POST")
h1=__("register.title")
div.field
label(for="username")=__("username") + ":"
input#username(type="text" name="username" required)
label(for="email")=__("email") + ":"
input#email(type="email" name="email" required)
label(for="firstName")=__("firstName") + ":"
input#firstName(type="text" name="firstName" required)
label(for="lastName")=__("lastName") + ":"
input#lastName(type="text" name="lastName" required)
label(for="department")=__("department") + ":"
+list("department", "department-list", "department", "", "off", true)
label(for="password")=__("password") + ":"
input#password(type="password" name="password" required)
label(for="permissions")=__("admin.permissions")
input#permissions(type="number" min="0" max="3" value="0" name="permissions")
input(type="submit" value=__("register.submit"))
datalist#department-list
each department in departments
option(value=department.name)