annotate app/main/registration_admin/verification_rejected.lua @ 1309:32cc544d5a5b
Cumulative patch for upcoming frontend version 4
author |
bsw/jbe |
date |
Sun Jul 15 14:07:29 2018 +0200 (2018-07-15) |
parents |
|
children |
7e328a78da93 |
rev |
line source |
bsw/jbe@1309
|
1 ui.title(function()
|
bsw/jbe@1309
|
2 ui.link { module = "registration_admin", view = "index", content = _"Usermanagement" }
|
bsw/jbe@1309
|
3 slot.put ( " ยป " )
|
bsw/jbe@1309
|
4 ui.tag { tag = "span", content = "Rejected requests"}
|
bsw/jbe@1309
|
5 end)
|
bsw/jbe@1309
|
6 app.html_title.title = _"Usermanagement"
|
bsw/jbe@1309
|
7
|
bsw/jbe@1309
|
8 ui.container{ attr = { class = "mdl-grid" }, content = function()
|
bsw/jbe@1309
|
9 ui.container{ attr = { class = "mdl-cell mdl-cell--12-col" }, content = function()
|
bsw/jbe@1309
|
10
|
bsw/jbe@1309
|
11 ui.container{ attr = { class = "mdl-card mdl-card__fullwidth mdl-shadow--2dp" }, content = function()
|
bsw/jbe@1309
|
12 ui.container{ attr = { class = "mdl-card__title mdl-card--border" }, content = function()
|
bsw/jbe@1309
|
13 ui.heading { attr = { class = "mdl-card__title-text" }, level = 2, content = function()
|
bsw/jbe@1309
|
14 ui.tag{ content = _"Rejected accreditation requests" }
|
bsw/jbe@1309
|
15 end }
|
bsw/jbe@1309
|
16 end }
|
bsw/jbe@1309
|
17
|
bsw/jbe@1309
|
18 ui.container{ attr = { class = "mdl-card__content mdl-card--border" }, content = function()
|
bsw/jbe@1309
|
19
|
bsw/jbe@1309
|
20 local verifications = Verification:new_selector()
|
bsw/jbe@1309
|
21 :add_where("denied NOTNULL")
|
bsw/jbe@1309
|
22 :add_order_by("request_data->>'name', request_data->>'first_name', requested DESC")
|
bsw/jbe@1309
|
23 :exec()
|
bsw/jbe@1309
|
24
|
bsw/jbe@1309
|
25 if #verifications > 0 then
|
bsw/jbe@1309
|
26 execute.view{ module = "registration_admin", view = "_verification_list", params = { verifications = verifications } }
|
bsw/jbe@1309
|
27 end
|
bsw/jbe@1309
|
28
|
bsw/jbe@1309
|
29 end }
|
bsw/jbe@1309
|
30 end }
|
bsw/jbe@1309
|
31
|
bsw/jbe@1309
|
32
|
bsw/jbe@1309
|
33 end }
|
bsw/jbe@1309
|
34 end }
|
bsw/jbe@1309
|
35
|