liquid_feedback_frontend
view app/main/admin/area_show.lua @ 3:768faea1096d
Version alpha4
Members interested in an issue or supporting an initiative have a weight information attached. Browsing the members causing that weight is possible.
Initiatives may provide a link to an external discussion platform
Direct link on every initiative page to create an alternative initiative
Bugfix: No error when clicking "neutral", when "neutral" is currently selected
Members interested in an issue or supporting an initiative have a weight information attached. Browsing the members causing that weight is possible.
Initiatives may provide a link to an external discussion platform
Direct link on every initiative page to create an alternative initiative
Bugfix: No error when clicking "neutral", when "neutral" is currently selected
| author | bsw |
|---|---|
| date | Mon Nov 30 12:00:00 2009 +0100 (2009-11-30) |
| parents | 3bfb2fcf7ab9 |
| children | afd9f769c7ae |
line source
1 local id = param.get_id()
3 local area
4 if id then
5 area = Area:new_selector():add_where{ "id = ?", id }:single_object_mode():exec()
6 end
8 slot.put_into("title", _"Create new area")
10 ui.form{
11 attr = { class = "vertical" },
12 record = area,
13 module = "area",
14 action = "update",
15 routing = {
16 default = {
17 mode = "redirect",
18 module = "admin",
19 view = "area_list"
20 }
21 },
22 id = area and area.id or nil,
23 content = function()
24 ui.field.text{ label = _"Name", name = "name" }
25 ui.field.boolean{ label = _"Active?", name = "active" }
26 ui.field.text{ label = _"Description", name = "description", multiline = true }
27 ui.submit{ text = _"Save" }
28 end
29 }
