liquid_feedback_frontend

view app/main/member/settings_password.lua @ 1858:3d1f0464a3ea

Handle missing ldap.member.allowed function
author bsw
date Tue Sep 20 17:35:29 2022 +0200 (20 months ago)
parents 20576245ff6a
children
line source
1 ui.titleMember(_"Password")
3 ui.grid{ content = function()
4 ui.cell_main{ content = function()
6 ui.container{ attr = { class = "mdl-card mdl-card__fullwidth mdl-shadow--2dp" }, content = function()
7 ui.container{ attr = { class = "mdl-card__title mdl-card--border" }, content = function()
8 ui.heading { attr = { class = "mdl-card__title-text" }, level = 2, content = _"Password" }
9 end }
10 ui.container{ attr = { class = "mdl-card__content mdl-card--border" }, content = function()
12 ui.form{
13 attr = { class = "wide" },
14 module = "member",
15 action = "update_password",
16 routing = {
17 ok = {
18 mode = "redirect",
19 module = "member",
20 view = "settings"
21 }
22 },
23 content = function()
25 ui.field.password{
26 container_attr = { class = "mdl-textfield mdl-js-textfield mdl-textfield--floating-label" },
27 attr = { id = "lf-member__old_password", class = "mdl-textfield__input" },
28 label_attr = { class = "mdl-textfield__label", ["for"] = "lf-member__old_password" },
29 label= _'Current password',
30 name = 'old_password',
31 value = ""
32 }
34 slot.put("<br />")
36 ui.field.password{
37 container_attr = { class = "mdl-textfield mdl-js-textfield mdl-textfield--floating-label" },
38 attr = { id = "lf-member__new_password1", class = "mdl-textfield__input" },
39 label_attr = { class = "mdl-textfield__label", ["for"] = "lf-member__new_password1" },
40 label= _'New password',
41 name = 'new_password1',
42 value = ""
43 }
45 slot.put("<br />")
47 ui.field.password{
48 container_attr = { class = "mdl-textfield mdl-js-textfield mdl-textfield--floating-label" },
49 attr = { id = "lf-member__new_password2", class = "mdl-textfield__input" },
50 label_attr = { class = "mdl-textfield__label", ["for"] = "lf-member__new_password2" },
51 label= _'Repeat new password',
52 name = 'new_password2',
53 value = ""
54 }
56 slot.put("<br />")
58 ui.tag{
59 tag = "input",
60 attr = {
61 type = "submit",
62 class = "mdl-button mdl-js-button mdl-button--raised mdl-button--colored",
63 value = _"Save"
64 },
65 content = ""
66 }
67 slot.put(" &nbsp; ")
68 ui.link {
69 attr = { class = "mdl-button mdl-js-button" },
70 module = "member", view = "show", id = app.session.member_id,
71 content = _"Cancel"
72 }
73 end
74 }
76 end }
77 end }
78 end }
80 ui.cell_sidebar{ content = function()
81 execute.view {
82 module = "member", view = "_sidebar_whatcanido", params = {
83 member = app.session.member
84 }
85 }
86 end }
88 end }

Impressum / About Us