liquid_feedback_frontend

view app/main/draft/_list.lua @ 64:3ec1dea6eefb

Bug when creating alternative initiatives fixed; Policy list link only shown when creating new issue
author bsw
date Thu Apr 22 17:05:18 2010 +0200 (2010-04-22)
parents 0849be391140
children de6b80867eb7
line source
1 ui.form{
2 method = "get",
3 module = "draft",
4 view = "diff",
5 content = function()
6 ui.list{
7 records = param.get("drafts", "table"),
8 columns = {
9 {
10 label = _"Created at",
11 content = function(record)
12 ui.field.text{ readonly = true, value = format.timestamp(record.created) }
13 end
14 },
15 {
16 label = _"Author",
17 content = function(record)
18 if app.session.member_id or config.public_access == "pseudonym" then
19 ui.field.text{ readonly = true, value = record.author.name }
20 else
21 ui.field.text{ readonly = true, value = _"[not displayed public]" }
22 end
23 end
24 },
25 {
26 content = function(record)
27 ui.link{
28 attr = { class = "action" },
29 text = _"Show",
30 module = "draft",
31 view = "show",
32 id = record.id
33 }
34 end
35 },
36 {
37 label = _"Compare",
38 content = function(record)
39 slot.put('<input type="radio" name="old_draft_id" value="' .. tostring(record.id) .. '">')
40 slot.put('<input type="radio" name="new_draft_id" value="' .. tostring(record.id) .. '">')
41 end
42 }
43 }
44 }
45 ui.submit{ text = _"Compare" }
46 end
47 }

Impressum / About Us