liquid_feedback_frontend
view app/main/admin/member_edit.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
- 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 | 768faea1096d |
children | 46351752814f |
line source
1 local id = param.get_id()
3 local member
4 if id then
5 member = Member:new_selector():add_where{"id = ?", id}:optional_object_mode():exec()
6 slot.put_into("title", encode.html(_("Member: '#{login}' (#{name})", { login = member.login, name = member.name })))
7 else
8 slot.put_into("title", encode.html(_"Register new member"))
9 end
11 ui.form{
12 attr = { class = "vertical" },
13 module = "admin",
14 action = "member_update",
15 id = member and member.id,
16 record = member,
17 readonly = not app.session.member.admin,
18 routing = {
19 default = {
20 mode = "redirect",
21 modules = "admin",
22 view = "member_list"
23 }
24 },
25 content = function()
26 ui.field.text{ label = _"Login", name = "login" }
27 ui.field.text{ label = _"Name", name = "name" }
28 ui.field.password{ label = _"Password", name = "password", value = (member and member.password) and "********" or "" }
29 ui.field.boolean{ label = _"Admin?", name = "admin" }
30 ui.field.boolean{ label = _"Active?", name = "active" }
31 ui.submit{ text = _"Save" }
32 end
33 }