liquid_feedback_frontend

view app/main/registration_admin/_verification_list.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 local verifications = param.get("verifications", "table")
3 ui.list{
4 records = verifications,
5 columns = {
6 {
7 label = _"Requested at",
8 content = function(record)
9 ui.link{ module = "registration_admin", view = "verification", id = record.id, content = function()
10 ui.container{ content = format.date(record.requested) }
11 ui.container{ attr = { class = "light" }, content = format.time(record.requested) }
12 end }
13 end
14 },
15 {
16 label = _"Name",
17 content = function(record)
18 ui.container{ content = function()
19 ui.tag{ content = (record.verification_data or record.request_data).name }
20 ui.tag{ content = ", " }
21 ui.tag{ content = (record.verification_data or record.request_data).first_name }
22 end }
23 end
24 },
25 --[[
26 {
27 label = _"City",
28 content = function(record)
29 ui.container{ content = (record.verification_data or record.request_data).zip_code }
30 ui.tag{ content = " " }
31 ui.tag{ content = (record.verification_data or record.request_data).city }
32 end
33 },
34 --]]
35 {
36 label = _"Date/place of birth",
37 content = function(record)
38 ui.container{ content = (record.verification_data or record.request_data).date_of_birth }
39 ui.container{ content = (record.verification_data or record.request_data).place_of_birth }
40 end
41 },
42 {
43 label = _"Fiscal code",
44 content = function(record)
45 ui.tag{ content = (record.verification_data or record.request_data).fiscal_code }
46 end
47 },
48 {
49 label = _"Contact",
50 content = function(record)
51 ui.container{ content = function()
52 ui.tag{ content = (record.verification_data or record.request_data).email }
53 end }
54 ui.container{ content = function()
55 ui.tag{ content = config.self_registration.sms_prefix }
56 local phone_number = (record.verification_data or record.request_data).mobile_phone
57 if config.self_registration.sms_strip_leading_zero then
58 phone_number = string.match(phone_number, "0(.+)")
59 end
60 ui.tag{ content = phone_number }
61 end }
62 end
63 }
64 }
65 }
67 slot.put([[<style>
69 td {
70 vertical-align: top;
71 }
72 td div.light {
73 color: #777;
74 }
76 </style>]])

Impressum / About Us