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/admin/users/add.pug

35 lines
1.5 KiB
Text
Raw Normal View History

2020-08-20 14:50:59 +02:00
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)
div.field
label(for="email")=__("email") + ":"
input#email(type="email" name="email" required)
div.field
label(for="firstName")=__("firstName") + ":"
input#firstName(type="text" name="firstName" required)
div.field
label(for="lastName")=__("lastName") + ":"
input#lastName(type="text" name="lastName" required)
div.field
label(for="department")=__("department") + ":"
2020-09-13 21:17:13 +02:00
+list("department", "department-list", "department", "", "off", true)
2020-08-20 14:50:59 +02:00
div.field
label(for="password")=__("password") + ":"
input#password(type="password" name="password" required)
div.field
label(for="permissions")=__("admin.permissions")
input#permissions(type="number" min="0" max="3" value="0" name="permissions")
div.field
input(type="submit" value=__("register.submit"))
datalist#department-list
each department in departments
option(value=department.name)