annotate app/main/member/settings_password.lua @ 971:a8c6e80cdf5d
Fixed showing of wrong issue cancelled information
 | author | 
 bsw | 
 | date | 
 Sat Mar 09 19:13:55 2013 +0100 (2013-03-09) | 
 | parents | 
 418b590fa9ed  | 
 | children | 
 701a5cf6b067  | 
 
 | rev | 
   line source | 
| 
bsw@564
 | 
     1 ui.title(_"Change your password")
 | 
| 
bsw@75
 | 
     2 
 | 
| 
bsw@75
 | 
     3 util.help("member.settings.password", _"Change password")
 | 
| 
bsw@75
 | 
     4 
 | 
| 
bsw@75
 | 
     5 ui.form{
 | 
| 
bsw@75
 | 
     6   attr = { class = "vertical" },
 | 
| 
bsw@75
 | 
     7   module = "member",
 | 
| 
bsw@75
 | 
     8   action = "update_password",
 | 
| 
bsw@75
 | 
     9   routing = {
 | 
| 
bsw@75
 | 
    10     ok = {
 | 
| 
bsw@75
 | 
    11       mode = "redirect",
 | 
| 
bsw@75
 | 
    12       module = "index",
 | 
| 
bsw@75
 | 
    13       view = "index"
 | 
| 
bsw@75
 | 
    14     }
 | 
| 
bsw@75
 | 
    15   },
 | 
| 
bsw@75
 | 
    16   content = function()
 | 
| 
bsw@75
 | 
    17     ui.field.password{ label = _"Old password", name = "old_password" }
 | 
| 
bsw@75
 | 
    18     ui.field.password{ label = _"New password", name = "new_password1" }
 | 
| 
bsw@75
 | 
    19     ui.field.password{ label = _"Repeat new password", name = "new_password2" }
 | 
| 
bsw@75
 | 
    20     ui.submit{ value = _"Change password" }
 | 
| 
bsw@75
 | 
    21   end
 | 
| 
bsw@75
 | 
    22 } |