liquid_feedback_frontend

annotate app/main/member/settings_password.lua @ 1054:13d827829f51

Going to version 3.0.1
author bsw
date Tue Jul 15 21:41:52 2014 +0200 (2014-07-15)
parents 701a5cf6b067
children 32cc544d5a5b
rev   line source
bsw@1045 1 ui.titleMember(_"Password")
bsw@75 2
bsw@1045 3 execute.view {
bsw@1045 4 module = "member", view = "_sidebar_whatcanido", params = {
bsw@1045 5 member = app.session.member
bsw@1045 6 }
bsw@1045 7 }
bsw@75 8
bsw@75 9 ui.form{
bsw@1045 10 attr = { class = "wide" },
bsw@75 11 module = "member",
bsw@75 12 action = "update_password",
bsw@75 13 routing = {
bsw@75 14 ok = {
bsw@75 15 mode = "redirect",
bsw@1045 16 module = "member",
bsw@1045 17 view = "show",
bsw@1045 18 id = app.session.member_id
bsw@75 19 }
bsw@75 20 },
bsw@75 21 content = function()
bsw@1045 22 ui.section( function()
bsw@1045 23 ui.sectionHead( function()
bsw@1045 24 ui.heading { level = 1, content = _"Password" }
bsw@1045 25 end )
bsw@1045 26
bsw@1045 27 ui.sectionRow( function()
bsw@1045 28 ui.heading { level = 2, content = _"Enter your current password:" }
bsw@1045 29 ui.field.password{ name = "old_password" }
bsw@1045 30
bsw@1045 31 slot.put("<br />")
bsw@1045 32
bsw@1045 33 ui.heading { level = 2, content = _"Enter a new password:" }
bsw@1045 34 ui.field.password{ name = "new_password1" }
bsw@1045 35
bsw@1045 36 ui.heading { level = 2, content = _"Enter your new password again please:" }
bsw@1045 37 ui.field.password{ name = "new_password2" }
bsw@1045 38
bsw@1045 39 slot.put("<br />")
bsw@1045 40
bsw@1045 41 ui.tag{
bsw@1045 42 tag = "input",
bsw@1045 43 attr = {
bsw@1045 44 type = "submit",
bsw@1045 45 class = "btn btn-default",
bsw@1045 46 value = _"Save"
bsw@1045 47 },
bsw@1045 48 content = ""
bsw@1045 49 }
bsw@1045 50 slot.put("<br /><br /><br />")
bsw@1045 51 ui.link {
bsw@1045 52 module = "member", view = "show", id = app.session.member_id,
bsw@1045 53 content = _"Cancel"
bsw@1045 54 }
bsw@1045 55 end )
bsw@1045 56 end )
bsw@75 57 end
bsw@75 58 }

Impressum / About Us