liquid_feedback_frontend
view app/main/registration_admin/role_verification_cancelled.lua @ 1319:00612e1ca36a
Allow external registration cancel target
| author | bsw | 
|---|---|
| date | Wed Aug 01 17:52:52 2018 +0200 (2018-08-01) | 
| parents | 32cc544d5a5b | 
| children | 7e328a78da93 | 
 line source
     1 ui.title(function()
     2   ui.link { module = "registration_admin", view = "index", content = _"Rolemanagement" }
     3   slot.put ( " ยป " )
     4   ui.tag { tag = "span", content = "Cancelled accounts"}
     5 end)
     6 app.html_title.title = _"Rolemanagement"
     8 ui.container{ attr = { class = "mdl-grid" }, content = function()
     9   ui.container{ attr = { class = "mdl-cell mdl-cell--12-col" }, content = function()
    11     ui.container{ attr = { class = "mdl-card mdl-card__fullwidth mdl-shadow--2dp" }, content = function()
    12       ui.container{ attr = { class = "mdl-card__title mdl-card--border" }, content = function()
    13         ui.heading { attr = { class = "mdl-card__title-text" }, level = 2, content = function()
    14           ui.tag{ content = _"Cancelled accounts" }
    15         end }
    16       end }
    18       ui.container{ attr = { class = "mdl-card__content mdl-card--border" }, content = function()
    20         local verifications = RoleVerification:new_selector()
    21           :join("member", nil, "member.id = role_verification.verified_member_id")
    22           :add_where("member.deleted NOTNULL")
    23           :add_order_by("requested DESC")
    24           :exec()
    26         if #verifications > 0 then
    27           execute.view{ module = "registration_admin", view = "_role_verification_list", params = { verifications = verifications } }
    28         end
    30       end }
    31     end }
    33   end }
    34 end }
