liquid_feedback_frontend
view app/main/index/login.lua @ 4:80c215dbf076
Version alpha5
Many optical changes and improved usability
Support for different wiki-formatting-engines
Help system
Many optical changes and improved usability
Support for different wiki-formatting-engines
Help system
| author | bsw/jbe |
|---|---|
| date | Thu Dec 10 12:00:00 2009 +0100 (2009-12-10) |
| parents | 768faea1096d |
| children | afd9f769c7ae |
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 }
