liquid_feedback_frontend
view app/main/admin/member_deactivate.lua @ 1532:3c15fea3f1c0
Added FirstLife group mirroring
author | bsw |
---|---|
date | Sun Oct 04 16:31:47 2020 +0200 (2020-10-04) |
parents | 5b6082e9bd5c |
children | a17ad625ffbc |
line source
1 local id = param.get_id()
3 local member = Member:by_id(id)
5 ui.title(_"Deactivate member")
8 ui.form{
9 attr = { class = "vertical section" },
10 module = "admin",
11 action = "member_deactivate",
12 id = member and member.id,
13 record = member,
14 routing = {
15 error = {
16 mode = "forward",
17 module = "admin", view = "member_deactivate", id = id
18 },
19 default = {
20 mode = "redirect",
21 modules = "admin", view = "index"
22 }
23 },
24 content = function()
25 ui.sectionHead( function()
26 ui.heading { level = 1, content = member and (member.name or member.id) or _"New member" }
27 if member and member.identification then
28 ui.heading { level = 3, content = member.identification }
29 end
30 end )
31 ui.sectionRow(function()
32 ui.heading { level = 2, content = _"Do you really want to irrevocably deactive this member?" }
33 ui.tag{ tag = "input", attr = { type = "checkbox", name = "sure", value = "yes" } }
34 ui.tag { content = _"I want to deactive this member irrevocably" }
35 slot.put("<br />")
36 slot.put("<br />")
37 ui.submit{ text = _"Deactivate member" }
38 slot.put(" ")
39 ui.link { module = "admin", view = "member_edit", id = member.id, content = _"cancel" }
40 end)
41 end
42 }