annotate app/main/registration_admin/role_verification_requests.lua @ 1341:35f343eec2b6
Fixed image display part 3
 | author | 
 bsw | 
 | date | 
 Fri Aug 03 17:36:10 2018 +0200 (2018-08-03) | 
 | parents | 
 7e328a78da93  | 
 | children | 
  | 
 
 | rev | 
   line source | 
| 
bsw/jbe@1309
 | 
     1 local mode = param.get("mode")
 | 
| 
bsw/jbe@1309
 | 
     2 
 | 
| 
bsw/jbe@1309
 | 
     3 local verifications_selector = RoleVerification:new_selector()
 | 
| 
bsw/jbe@1309
 | 
     4   :add_where("verified ISNULL")
 | 
| 
bsw/jbe@1309
 | 
     5   :add_where("denied ISNULL")
 | 
| 
bsw/jbe@1309
 | 
     6   :add_order_by("requested DESC")
 | 
| 
bsw/jbe@1309
 | 
     7 
 | 
| 
bsw/jbe@1309
 | 
     8 local title = _"Open role requests"
 | 
| 
bsw/jbe@1309
 | 
     9   
 | 
| 
bsw/jbe@1309
 | 
    10 local verifications = verifications_selector:exec()
 | 
| 
bsw/jbe@1309
 | 
    11   
 | 
| 
bsw/jbe@1309
 | 
    12 
 | 
| 
bsw/jbe@1309
 | 
    13 ui.title(function()
 | 
| 
bsw@1326
 | 
    14   ui.link { module = "registration_admin", view = "index", content = _"Role management" }
 | 
| 
bsw/jbe@1309
 | 
    15   slot.put ( " ยป " )
 | 
| 
bsw/jbe@1309
 | 
    16   ui.tag { tag = "span", content = _"Open requests" }
 | 
| 
bsw/jbe@1309
 | 
    17 end)
 | 
| 
bsw/jbe@1309
 | 
    18 
 | 
| 
bsw@1326
 | 
    19 app.html_title.title = _"Role management"
 | 
| 
bsw/jbe@1309
 | 
    20 
 | 
| 
bsw/jbe@1309
 | 
    21 ui.container{ attr = { class = "mdl-grid" }, content = function()
 | 
| 
bsw/jbe@1309
 | 
    22   ui.container{ attr = { class = "mdl-cell mdl-cell--12-col" }, content = function()
 | 
| 
bsw/jbe@1309
 | 
    23 
 | 
| 
bsw/jbe@1309
 | 
    24     ui.container{ attr = { class = "mdl-card mdl-card__fullwidth mdl-shadow--2dp" }, content = function()
 | 
| 
bsw/jbe@1309
 | 
    25       ui.container{ attr = { class = "mdl-card__title mdl-card--border" }, content = function()
 | 
| 
bsw/jbe@1309
 | 
    26         ui.heading { attr = { class = "mdl-card__title-text" }, level = 2, content = function()
 | 
| 
bsw/jbe@1309
 | 
    27           ui.tag{ content = title }
 | 
| 
bsw/jbe@1309
 | 
    28         end }
 | 
| 
bsw/jbe@1309
 | 
    29       end }
 | 
| 
bsw/jbe@1309
 | 
    30 
 | 
| 
bsw/jbe@1309
 | 
    31       ui.container{ attr = { class = "mdl-card__content mdl-card--border" }, content = function()
 | 
| 
bsw/jbe@1309
 | 
    32 
 | 
| 
bsw/jbe@1309
 | 
    33         if #verifications > 0 then
 | 
| 
bsw/jbe@1309
 | 
    34           execute.view{ module = "registration_admin", view = "_role_verification_list", params = { verifications = verifications } }
 | 
| 
bsw/jbe@1309
 | 
    35         end
 | 
| 
bsw/jbe@1309
 | 
    36       
 | 
| 
bsw/jbe@1309
 | 
    37       end }
 | 
| 
bsw/jbe@1309
 | 
    38     end }
 | 
| 
bsw/jbe@1309
 | 
    39 
 | 
| 
bsw/jbe@1309
 | 
    40   end }
 | 
| 
bsw/jbe@1309
 | 
    41 end }
 | 
| 
bsw/jbe@1309
 | 
    42 
 |