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