liquid_feedback_frontend
view 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 source
1 ui.title(_"Recover login name")
3 ui.section( function()
5 ui.sectionHead( function()
6 ui.heading{ level = 1, content = _"Request email with login name" }
7 end )
9 ui.sectionRow( function()
11 ui.tag{
12 tag = 'p',
13 content = _'Please enter your email address. You will receive an email with your login name.'
14 }
15 ui.form{
16 attr = { class = "vertical" },
17 module = "index",
18 action = "send_login",
19 routing = {
20 ok = {
21 mode = "redirect",
22 module = "index",
23 view = "index"
24 }
25 },
26 content = function()
27 ui.field.text{
28 label = _"Email address",
29 name = "email"
30 }
32 ui.container { attr = { class = "actions" }, content = function()
33 ui.tag{
34 tag = "input",
35 attr = {
36 type = "submit",
37 class = "btn btn-default",
38 value = _"Request email with login name"
39 },
40 content = ""
41 }
42 slot.put("<br /><br />")
43 ui.link{
44 content = function()
45 slot.put(_"Cancel")
46 end,
47 module = "index",
48 view = "login"
49 }
50 end }
51 end
52 }
53 end )
54 end )