liquid_feedback_frontend
view app/main/index/login.lua @ 0:3bfb2fcf7ab9
Version alpha1
| author | bsw/jbe |
|---|---|
| date | Wed Nov 18 12:00:00 2009 +0100 (2009-11-18) |
| parents | |
| children | 768faea1096d |
line source
1 slot.put_into("title", encode.html(config.app_title))
3 ui.tag{
4 tag = 'p',
5 content = 'You need to be logged in, to use this system.'
6 }
8 ui.form{
9 attr = { class = "login" },
10 module = 'index',
11 action = 'login',
12 routing = {
13 ok = {
14 mode = 'redirect',
15 module = 'index',
16 view = 'index'
17 },
18 error = {
19 mode = 'forward',
20 module = 'index',
21 view = 'login',
22 }
23 },
24 content = function()
25 ui.field.text{
26 attr = { id = "username_field" },
27 label = _'Username',
28 html_name = 'login',
29 value = ''
30 }
31 ui.script{ script = 'document.getElementById("username_field").focus();' }
32 ui.field.password{
33 label = _'Password',
34 html_name = 'password',
35 value = ''
36 }
37 ui.submit{
38 text = _'Login'
39 }
40 end
41 }
