liquid_feedback_frontend

diff app/main/initiative/new.lua @ 52:88ac7798b562

Several bugfixes (getpic.c, accepted but canceled issues, ...); Listing of available policies

- Bugfixes in fastpath/getpic.c (related to crashes since alpha5)
- Respect Content-Types of images in database
(needs database update, as Content-Type was incorrectly stored by previous versions)
- Typo fixed in help messages
- RSS-Feed (currently only after manual authentication while session is valid)
- Listing of available policies
- German translation fixed: "gebe" -> "gib" (Imperativ)
- Bugfixes related to issues which had been accepted but canceled afterwards
- Prohibit creation of initiatives in disabled areas or with disabled policies
author bsw/jbe
date Thu Apr 15 19:58:25 2010 +0200 (2010-04-15)
parents 00d1004545f1
children 3ec1dea6eefb
line diff
     1.1 --- a/app/main/initiative/new.lua	Sun Apr 04 22:05:11 2010 +0200
     1.2 +++ b/app/main/initiative/new.lua	Thu Apr 15 19:58:25 2010 +0200
     1.3 @@ -27,6 +27,7 @@
     1.4    attr = { class = "vertical" },
     1.5    content = function()
     1.6      ui.field.text{ label = _"Area",  value = area.name }
     1.7 +    slot.put("<br />")
     1.8      if issue_id then
     1.9        ui.field.text{ label = _"Issue",  value = issue_id }
    1.10      else
    1.11 @@ -43,7 +44,34 @@
    1.12          value = (area.default_policy or {}).id
    1.13        }
    1.14      end
    1.15 -    ui.field.text{ label = _"Name", name = "name" }
    1.16 +    ui.tag{
    1.17 +      tag = "div",
    1.18 +      content = function()
    1.19 +        ui.tag{
    1.20 +          tag = "label",
    1.21 +          attr = { class = "ui_field_label" },
    1.22 +          content = function() slot.put("&nbsp;") end,
    1.23 +        }
    1.24 +        ui.tag{
    1.25 +          content = function()
    1.26 +            ui.link{
    1.27 +              text = _"Information about the available policies",
    1.28 +              module = "policy",
    1.29 +              view = "list"
    1.30 +            }
    1.31 +            slot.put(" ")
    1.32 +            ui.link{
    1.33 +              attr = { target = "_blank" },
    1.34 +              text = _"(new window)",
    1.35 +              module = "policy",
    1.36 +              view = "list"
    1.37 +            }
    1.38 +          end
    1.39 +        }
    1.40 +      end
    1.41 +    }
    1.42 +    slot.put("<br />")
    1.43 +    ui.field.text{ label = _"Title of initiative", name = "name" }
    1.44      ui.field.text{ label = _"Discussion URL", name = "discussion_url" }
    1.45      ui.field.select{
    1.46        label = _"Wiki engine",

Impressum / About Us