liquid_feedback_frontend
diff app/main/initiative/new.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 | 88ac7798b562 | 
| children | 6a12fb7e4963 | 
   line diff
1.1 --- a/app/main/initiative/new.lua Thu Apr 22 16:29:07 2010 +0200 1.2 +++ b/app/main/initiative/new.lua Thu Apr 22 17:05:18 2010 +0200 1.3 @@ -43,33 +43,33 @@ 1.4 foreign_name = "name", 1.5 value = (area.default_policy or {}).id 1.6 } 1.7 + ui.tag{ 1.8 + tag = "div", 1.9 + content = function() 1.10 + ui.tag{ 1.11 + tag = "label", 1.12 + attr = { class = "ui_field_label" }, 1.13 + content = function() slot.put(" ") end, 1.14 + } 1.15 + ui.tag{ 1.16 + content = function() 1.17 + ui.link{ 1.18 + text = _"Information about the available policies", 1.19 + module = "policy", 1.20 + view = "list" 1.21 + } 1.22 + slot.put(" ") 1.23 + ui.link{ 1.24 + attr = { target = "_blank" }, 1.25 + text = _"(new window)", 1.26 + module = "policy", 1.27 + view = "list" 1.28 + } 1.29 + end 1.30 + } 1.31 + end 1.32 + } 1.33 end 1.34 - ui.tag{ 1.35 - tag = "div", 1.36 - content = function() 1.37 - ui.tag{ 1.38 - tag = "label", 1.39 - attr = { class = "ui_field_label" }, 1.40 - content = function() slot.put(" ") end, 1.41 - } 1.42 - ui.tag{ 1.43 - content = function() 1.44 - ui.link{ 1.45 - text = _"Information about the available policies", 1.46 - module = "policy", 1.47 - view = "list" 1.48 - } 1.49 - slot.put(" ") 1.50 - ui.link{ 1.51 - attr = { target = "_blank" }, 1.52 - text = _"(new window)", 1.53 - module = "policy", 1.54 - view = "list" 1.55 - } 1.56 - end 1.57 - } 1.58 - end 1.59 - } 1.60 slot.put("<br />") 1.61 ui.field.text{ label = _"Title of initiative", name = "name" } 1.62 ui.field.text{ label = _"Discussion URL", name = "discussion_url" }