liquid_feedback_frontend
diff app/main/index/_login.lua @ 1045:701a5cf6b067
Imported LiquidFeedback Frontend 3.0 branch
author | bsw |
---|---|
date | Thu Jul 10 01:19:48 2014 +0200 (2014-07-10) |
parents | |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/app/main/index/_login.lua Thu Jul 10 01:19:48 2014 +0200 1.3 @@ -0,0 +1,37 @@ 1.4 +ui.form{ 1.5 + attr = { class = "login" }, 1.6 + module = 'index', 1.7 + action = 'login', 1.8 + routing = { 1.9 + ok = { 1.10 + mode = 'redirect', 1.11 + module = param.get("redirect_module") or "index", 1.12 + view = param.get("redirect_view") or "index", 1.13 + id = param.get("redirect_id"), 1.14 + }, 1.15 + error = { 1.16 + mode = 'forward', 1.17 + module = 'index', 1.18 + view = 'login', 1.19 + } 1.20 + }, 1.21 + content = function() 1.22 + ui.field.text{ 1.23 + attr = { id = "username_field" }, 1.24 + label = _'login name', 1.25 + html_name = 'login', 1.26 + value = '' 1.27 + } 1.28 + ui.script{ script = 'document.getElementById("username_field").focus();' } 1.29 + ui.field.password{ 1.30 + label = _'Password', 1.31 + html_name = 'password', 1.32 + value = '' 1.33 + } 1.34 + ui.submit{ 1.35 + text = _'Login' 1.36 + } 1.37 + slot.put(" ") 1.38 + ui.link{ module = "index", view = "reset_password", text = _"Forgot password?" } 1.39 + end 1.40 +} 1.41 \ No newline at end of file