liquid_feedback_frontend

annotate app/main/index/login.lua @ 1286:a501cdd10fbb

Changed default option when changing notification level
author bsw
date Mon Apr 18 09:57:49 2016 +0200 (2016-04-18)
parents 904f6807f7fa
children 32cc544d5a5b
rev   line source
bsw/jbe@5 1 ui.tag{
bsw/jbe@5 2 tag = "noscript",
bsw/jbe@5 3 content = function()
bsw@520 4 slot.put(_"JavaScript is disabled or not available.")
bsw/jbe@5 5 end
bsw/jbe@5 6 }
bsw/jbe@5 7
bsw@729 8 ui.title(_"Login")
jorges@105 9 app.html_title.title = _"Login"
bsw/jbe@0 10
bsw@1045 11 execute.view{ module = "index", view = "_sidebar_motd_public" }
bsw@1045 12
bsw@1045 13 ui.section(function()
bsw@1045 14
bsw@1045 15 ui.sectionHead(function()
bsw@1045 16 ui.heading{ level = 1, content = _"Login" }
bsw@1045 17 ui.container { attr = { class = "right" }, content = function()
bsw@1045 18 for i, lang in ipairs(config.enabled_languages) do
bsw@1145 19 local langcode
bsw@1045 20 locale.do_with({ lang = lang }, function()
bsw@1045 21 langcode = _("[Name of Language]")
bsw@1045 22 end)
bsw@1045 23
bsw@1045 24 if i > 1 then
bsw@1045 25 slot.put(" | ")
bsw@1045 26 end
bsw@1045 27
bsw@1045 28 ui.link{
bsw@1045 29 content = function()
bsw@1045 30 ui.tag{ content = langcode }
bsw@1045 31 end,
bsw@1045 32 module = "index",
bsw@1045 33 action = "set_lang",
bsw@1045 34 params = { lang = lang },
bsw@1045 35 routing = {
bsw@1045 36 default = {
bsw@1045 37 mode = "redirect",
bsw@1045 38 module = request.get_module(),
bsw@1045 39 view = request.get_view(),
bsw@1145 40 id = request.get_id_string(),
bsw@1145 41 params = request.get_param_strings()
bsw@1045 42 }
bsw@1045 43 }
bsw@1045 44 }
bsw@1045 45 end
bsw@1045 46 end }
bsw@1045 47 end)
bsw/jbe@0 48 ui.form{
bsw/jbe@0 49 module = 'index',
bsw/jbe@0 50 action = 'login',
bsw/jbe@0 51 routing = {
bsw/jbe@0 52 ok = {
bsw/jbe@0 53 mode = 'redirect',
bsw@51 54 module = param.get("redirect_module") or "index",
bsw@51 55 view = param.get("redirect_view") or "index",
bsw@51 56 id = param.get("redirect_id"),
bsw/jbe@0 57 },
bsw/jbe@0 58 error = {
bsw/jbe@0 59 mode = 'forward',
bsw/jbe@0 60 module = 'index',
bsw/jbe@0 61 view = 'login',
bsw/jbe@0 62 }
bsw/jbe@0 63 },
bsw/jbe@0 64 content = function()
bsw@1045 65 ui.sectionRow(function()
bsw@1045 66 ui.field.text{
bsw@1045 67 attr = { id = "username_field" },
bsw@1045 68 label = _'Login name',
bsw@1045 69 name = 'login',
bsw@1045 70 value = ''
bsw@1045 71 }
bsw@1045 72 ui.script{ script = 'document.getElementById("username_field").focus();' }
bsw@1045 73 ui.field.password{
bsw@1045 74 label = _'Password',
bsw@1045 75 name = 'password',
bsw@1045 76 value = ''
bsw@1045 77 }
bsw@1045 78 ui.container { attr = { class = "actions" }, content = function()
bsw@1045 79 ui.tag{
bsw@1045 80 tag = "input",
bsw@1045 81 attr = {
bsw@1045 82 type = "submit",
bsw@1045 83 class = "btn btn-default",
bsw@1045 84 value = _'Login'
bsw@1045 85 },
bsw@1045 86 content = ""
bsw@1045 87 }
bsw@1045 88 slot.put("<br />")
bsw@1045 89 slot.put("<br />")
bsw@1045 90 ui.link{ module = "index", view = "reset_password", text = _"Forgot password?" }
bsw@1045 91 slot.put("&nbsp;&nbsp;")
bsw@1045 92 ui.link{ module = "index", view = "send_login", text = _"Forgot login name?" }
bsw@1045 93 end }
bsw@1045 94 end )
bsw/jbe@0 95 end
bsw/jbe@0 96 }
bsw@1045 97 end )

Impressum / About Us