liquid_feedback_frontend
annotate app/main/index/change_password.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 | 3bfb2fcf7ab9 | 
| children | 
| rev | line source | 
|---|---|
| bsw/jbe@0 | 1 | 
| bsw/jbe@0 | 2 slot.put_into("title", _"Change password") | 
| bsw/jbe@0 | 3 | 
| bsw/jbe@0 | 4 slot.select("actions", function() | 
| bsw/jbe@0 | 5 ui.link{ | 
| bsw/jbe@0 | 6 content = function() | 
| bsw/jbe@0 | 7 ui.image{ static = "icons/16/cancel.png" } | 
| bsw/jbe@0 | 8 slot.put(_"Cancel") | 
| bsw/jbe@0 | 9 end, | 
| bsw/jbe@0 | 10 module = "index", | 
| bsw/jbe@0 | 11 view = "index" | 
| bsw/jbe@0 | 12 } | 
| bsw/jbe@0 | 13 end) | 
| bsw/jbe@0 | 14 | 
| bsw/jbe@4 | 15 util.help("index.change_password", _"Change password") | 
| bsw/jbe@4 | 16 | 
| bsw/jbe@0 | 17 ui.form{ | 
| bsw/jbe@0 | 18 attr = { class = "vertical" }, | 
| bsw/jbe@0 | 19 module = "index", | 
| bsw/jbe@0 | 20 action = "update_password", | 
| bsw/jbe@0 | 21 routing = { | 
| bsw/jbe@0 | 22 ok = { | 
| bsw/jbe@0 | 23 mode = "redirect", | 
| bsw/jbe@0 | 24 module = "index", | 
| bsw/jbe@0 | 25 view = "index" | 
| bsw/jbe@0 | 26 } | 
| bsw/jbe@0 | 27 }, | 
| bsw/jbe@0 | 28 content = function() | 
| bsw/jbe@0 | 29 ui.field.password{ label = _"Old password", name = "old_password" } | 
| bsw/jbe@0 | 30 ui.field.password{ label = _"New password", name = "new_password1" } | 
| bsw/jbe@0 | 31 ui.field.password{ label = _"Repeat new password", name = "new_password2" } | 
| bsw/jbe@0 | 32 ui.submit{ value = _"Change password" } | 
| bsw/jbe@0 | 33 end | 
| bsw/jbe@0 | 34 } |