annotate app/main/index/_login.lua @ 1668:6d75df24e66e
Updated German translation
author |
bsw |
date |
Sun Mar 07 09:52:36 2021 +0100 (2021-03-07) |
parents |
701a5cf6b067 |
children |
|
rev |
line source |
bsw@1045
|
1 ui.form{
|
bsw@1045
|
2 attr = { class = "login" },
|
bsw@1045
|
3 module = 'index',
|
bsw@1045
|
4 action = 'login',
|
bsw@1045
|
5 routing = {
|
bsw@1045
|
6 ok = {
|
bsw@1045
|
7 mode = 'redirect',
|
bsw@1045
|
8 module = param.get("redirect_module") or "index",
|
bsw@1045
|
9 view = param.get("redirect_view") or "index",
|
bsw@1045
|
10 id = param.get("redirect_id"),
|
bsw@1045
|
11 },
|
bsw@1045
|
12 error = {
|
bsw@1045
|
13 mode = 'forward',
|
bsw@1045
|
14 module = 'index',
|
bsw@1045
|
15 view = 'login',
|
bsw@1045
|
16 }
|
bsw@1045
|
17 },
|
bsw@1045
|
18 content = function()
|
bsw@1045
|
19 ui.field.text{
|
bsw@1045
|
20 attr = { id = "username_field" },
|
bsw@1045
|
21 label = _'login name',
|
bsw@1045
|
22 html_name = 'login',
|
bsw@1045
|
23 value = ''
|
bsw@1045
|
24 }
|
bsw@1045
|
25 ui.script{ script = 'document.getElementById("username_field").focus();' }
|
bsw@1045
|
26 ui.field.password{
|
bsw@1045
|
27 label = _'Password',
|
bsw@1045
|
28 html_name = 'password',
|
bsw@1045
|
29 value = ''
|
bsw@1045
|
30 }
|
bsw@1045
|
31 ui.submit{
|
bsw@1045
|
32 text = _'Login'
|
bsw@1045
|
33 }
|
bsw@1045
|
34 slot.put(" ")
|
bsw@1045
|
35 ui.link{ module = "index", view = "reset_password", text = _"Forgot password?" }
|
bsw@1045
|
36 end
|
bsw@1045
|
37 } |