liquid_feedback_frontend
diff app/main/index/change_password.lua @ 0:3bfb2fcf7ab9
Version alpha1
author | bsw/jbe |
---|---|
date | Wed Nov 18 12:00:00 2009 +0100 (2009-11-18) |
parents | |
children | 80c215dbf076 |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/app/main/index/change_password.lua Wed Nov 18 12:00:00 2009 +0100 1.3 @@ -0,0 +1,32 @@ 1.4 + 1.5 +slot.put_into("title", _"Change password") 1.6 + 1.7 +slot.select("actions", function() 1.8 + ui.link{ 1.9 + content = function() 1.10 + ui.image{ static = "icons/16/cancel.png" } 1.11 + slot.put(_"Cancel") 1.12 + end, 1.13 + module = "index", 1.14 + view = "index" 1.15 + } 1.16 +end) 1.17 + 1.18 +ui.form{ 1.19 + attr = { class = "vertical" }, 1.20 + module = "index", 1.21 + action = "update_password", 1.22 + routing = { 1.23 + ok = { 1.24 + mode = "redirect", 1.25 + module = "index", 1.26 + view = "index" 1.27 + } 1.28 + }, 1.29 + content = function() 1.30 + ui.field.password{ label = _"Old password", name = "old_password" } 1.31 + ui.field.password{ label = _"New password", name = "new_password1" } 1.32 + ui.field.password{ label = _"Repeat new password", name = "new_password2" } 1.33 + ui.submit{ value = _"Change password" } 1.34 + end 1.35 +} 1.36 \ No newline at end of file