liquid_feedback_frontend

view app/main/index/_login.lua @ 1641:ab837b075cf7

Fixed mldap_get_named_number_arg to not leave any element on the Lua stack (should not have had any effect anyway but is now consistent to documentation)
author jbe
date Tue Feb 09 17:44:47 2021 +0100 (2021-02-09)
parents 701a5cf6b067
children
line source
1 ui.form{
2 attr = { class = "login" },
3 module = 'index',
4 action = 'login',
5 routing = {
6 ok = {
7 mode = 'redirect',
8 module = param.get("redirect_module") or "index",
9 view = param.get("redirect_view") or "index",
10 id = param.get("redirect_id"),
11 },
12 error = {
13 mode = 'forward',
14 module = 'index',
15 view = 'login',
16 }
17 },
18 content = function()
19 ui.field.text{
20 attr = { id = "username_field" },
21 label = _'login name',
22 html_name = 'login',
23 value = ''
24 }
25 ui.script{ script = 'document.getElementById("username_field").focus();' }
26 ui.field.password{
27 label = _'Password',
28 html_name = 'password',
29 value = ''
30 }
31 ui.submit{
32 text = _'Login'
33 }
34 slot.put("  ")
35 ui.link{ module = "index", view = "reset_password", text = _"Forgot password?" }
36 end
37 }

Impressum / About Us