liquid_feedback_frontend
diff app/main/initiative/new.lua @ 7:3941792e8be6
Version beta3
Table allowed_policy is respected while creating new issues
Broken vote now/later link is not shown anymore (until it's implemented)
More user friendly error page
Minor spelling error corrected
Table allowed_policy is respected while creating new issues
Broken vote now/later link is not shown anymore (until it's implemented)
More user friendly error page
Minor spelling error corrected
| author | bsw |
|---|---|
| date | Sat Jan 02 12:00:00 2010 +0100 (2010-01-02) |
| parents | afd9f769c7ae |
| children | 72c5e0ee7c98 |
line diff
1.1 --- a/app/main/initiative/new.lua Sat Jan 02 12:00:00 2010 +0100 1.2 +++ b/app/main/initiative/new.lua Sat Jan 02 12:00:00 2010 +0100 1.3 @@ -30,12 +30,14 @@ 1.4 if issue_id then 1.5 ui.field.text{ label = _"Issue", value = issue_id } 1.6 else 1.7 + local value 1.8 ui.field.select{ 1.9 label = _"Policy", 1.10 name = "policy_id", 1.11 - foreign_records = Policy:new_selector():add_order_by("index"):exec(), 1.12 + foreign_records = area.allowed_policies, 1.13 foreign_id = "id", 1.14 - foreign_name = "name" 1.15 + foreign_name = "name", 1.16 + value = area.default_policy.id 1.17 } 1.18 end 1.19 ui.field.text{ label = _"Name", name = "name" }