liquid_feedback_frontend

view app/main/member/settings.lua @ 1668:6d75df24e66e

Updated German translation
author bsw
date Sun Mar 07 09:52:36 2021 +0100 (2021-03-07)
parents 32cc544d5a5b
children
line source
1 execute.view{ module = "index", view = "_lang_chooser" }
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 = _"Settings" }
9 end }
10 ui.container{ attr = { class = "mdl-card__content mdl-card--border" }, content = function()
12 local agents = Agent:new_selector()
13 :add_where{ "controller_id = ?", app.session.member_id }
14 :add_where{ "accepted ISNULL" }
15 :exec()
17 if #agents > 0 then
18 ui.container { attr = { class = "mdl-card__content mdl-card--border" }, content = function ()
19 ui.container{ content = _"You have been granted access to the following account(s):" }
20 for i, agent in ipairs(agents) do
21 local member = Member:by_id(agent.controlled_id)
22 ui.tag { tag = "ul", content = function()
23 ui.tag{ tag = "li", content = function()
24 ui.link{
25 module = "agent", view = "show", params = { controlled_id = agent.controlled_id },
26 content= _("Account access invitation from '#{member_name}'", { member_name = member.name })
27 }
28 end }
29 end }
30 end
31 end }
32 end
35 local controlled_members_count = Member:new_selector()
36 :join("agent", nil, "agent.controlled_id = member.id")
37 :add_where("agent.accepted")
38 :add_where("NOT member.locked")
39 :add_where{ "agent.controller_id = ?", app.session.member_id }
40 :count()
41 if controlled_members_count > 0 or app.session.real_member_id then
42 ui.container { attr = { class = "mdl-card__content mdl-card--border" }, content = function ()
43 ui.container{ content = _"I want to switch to another account" }
44 ui.tag { tag = "ul", content = function()
45 execute.view{ module = "member", view = "_agent_menu" }
46 end }
47 end }
48 end
50 execute.view{ module = "member", view = "_settings_list" }
52 end }
53 end }
54 end }
55 end }

Impressum / About Us