Archived
1
0
Fork 0

Add locales to login

This commit is contained in:
Ethanell 2020-08-18 16:53:34 +02:00
parent 13f2d6558f
commit 36d9da7c7c
2 changed files with 10 additions and 4 deletions

View file

@ -28,5 +28,11 @@
"sandwich": "Sandwich",
"day": "Day",
"pay": "Pay"
},
"login": {
"title": "Login",
"username": "Username",
"password": "Password",
"submit": "Login"
}
}

View file

@ -2,12 +2,12 @@ extends layout
block content
form.card(action="/login" method="POST")
h1 Login
h1=__("login.title")
div.field
label(for="username") Username:
label(for="username")=__("login.username")+":"
input#username(type="text" name="username" required)
div.field
label(for="password") Password:
label(for="password")=__("login.password")+":"
input#password(type="password" name="password" required)
div.field
input(type="submit" value="Login")
input(type="submit" value=__("login.submit"))