liquid_feedback_frontend

diff app/main/index/send_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 5a712ec1a7f1
children 32cc544d5a5b
line diff
     1.1 --- a/app/main/index/send_login.lua	Thu Jul 10 01:02:43 2014 +0200
     1.2 +++ b/app/main/index/send_login.lua	Thu Jul 10 01:19:48 2014 +0200
     1.3 @@ -1,35 +1,54 @@
     1.4 -ui.title(_"Request email with login name")
     1.5 +ui.title(_"Recover login name")
     1.6 +
     1.7 +ui.section( function()
     1.8  
     1.9 -ui.actions(function()
    1.10 -  ui.link{
    1.11 -    content = function()
    1.12 -        slot.put(_"Cancel")
    1.13 -    end,
    1.14 -    module = "index",
    1.15 -    view = "login"
    1.16 -  }
    1.17 -end)
    1.18 +  ui.sectionHead( function()
    1.19 +    ui.heading{ level = 1, content = _"Request email with login name" }
    1.20 +  end )
    1.21 +
    1.22 +  ui.sectionRow( function()
    1.23  
    1.24 -ui.tag{
    1.25 -  tag = 'p',
    1.26 -  content = _'Please enter your email address. You will receive an email with your login name.'
    1.27 -}
    1.28 -ui.form{
    1.29 -  attr = { class = "vertical" },
    1.30 -  module = "index",
    1.31 -  action = "send_login",
    1.32 -  routing = {
    1.33 -    ok = {
    1.34 -      mode = "redirect",
    1.35 +    ui.tag{
    1.36 +      tag = 'p',
    1.37 +      content = _'Please enter your email address. You will receive an email with your login name.'
    1.38 +    }
    1.39 +    ui.form{
    1.40 +      attr = { class = "vertical" },
    1.41        module = "index",
    1.42 -      view = "index"
    1.43 +      action = "send_login",
    1.44 +      routing = {
    1.45 +        ok = {
    1.46 +          mode = "redirect",
    1.47 +          module = "index",
    1.48 +          view = "index"
    1.49 +        }
    1.50 +      },
    1.51 +      content = function()
    1.52 +        ui.field.text{ 
    1.53 +          label = _"Email address",
    1.54 +          name = "email"
    1.55 +        }
    1.56 +
    1.57 +        ui.container { attr = { class = "actions" }, content = function()
    1.58 +          ui.tag{
    1.59 +            tag = "input",
    1.60 +            attr = {
    1.61 +              type = "submit",
    1.62 +              class = "btn btn-default",
    1.63 +              value = _"Request email with login name"
    1.64 +            },
    1.65 +            content = ""
    1.66 +          }
    1.67 +          slot.put("<br /><br />")
    1.68 +          ui.link{
    1.69 +            content = function()
    1.70 +                slot.put(_"Cancel")
    1.71 +            end,
    1.72 +            module = "index",
    1.73 +            view = "login"
    1.74 +          }
    1.75 +        end }
    1.76 +      end
    1.77      }
    1.78 -  },
    1.79 -  content = function()
    1.80 -    ui.field.text{ 
    1.81 -      label = _"Email address",
    1.82 -      name = "email"
    1.83 -    }
    1.84 -    ui.submit{ text = _"Request email with login name" }
    1.85 -  end
    1.86 -}
    1.87 +  end )
    1.88 +end )
    1.89 \ No newline at end of file

Impressum / About Us