liquid_feedback_frontend
view app/main/admin/cancel_issue.lua @ 1062:f03fbffc1800
New layout for suggestion details view
| author | bsw | 
|---|---|
| date | Wed Jul 16 21:52:17 2014 +0200 (2014-07-16) | 
| parents | 701a5cf6b067 | 
| children | 72f4947b8217 | 
 line source
     1 local id = param.get("id")
     3 if not id then
     4   return
     5 end
     7 local issue = Issue:by_id(id)
     8 issue:load_everything_for_member_id ( app.session.member_id )
     9 issue.initiatives:load_everything_for_member_id ( app.session.member_id )
    11 ui.titleAdmin(_"Cancel issue")
    13 ui.form{
    14   module = "admin",
    15   action = "cancel_issue",
    16   id = id,
    17   attr = { class = "vertical section" },
    18   content = function()
    20     ui.sectionHead( function()
    21       ui.heading { level = 1, content = _("Cancel issue ##{id}", { id = issue.id }) }
    22     end )
    24     ui.sectionRow( function()
    25       execute.view{ module = "initiative", view = "_list", params = {
    26         issue = issue,
    27         initiatives = issue.initiatives
    28       } }
    29     end )
    31     ui.sectionRow( function()
    32       ui.field.text{ label = _"public administrative notice:", name = "admin_notice", multiline = true }
    33       ui.submit{ text = _"cancel issue now" }
    34       slot.put(" ")
    35       ui.link { module = "admin", view = "index", content = "go back to safety" }
    36     end )
    37   end
    38 }
