liquid_feedback_frontend
view app/main/admin/member_edit.lua @ 24:81586ea68d57
Minor bugfixes
app/main/initiative/_list.lua:
Replaced single by optional object mode
locale/translations.de.lua:
Consistent translation
app/main/initiative/_show.lua:
Added missing case "not approved" in voting info box
app/main/initiative/_show_voting.lua:
Added link to initiative
app/main/initiative/_show_voting.lua:
Added missing argument for link
app/main/member/show_tab.lua:
Added outgoing argument to show outgoing delegations correctly
app/main/initiative/_list.lua:
Replaced single by optional object mode
locale/translations.de.lua:
Consistent translation
app/main/initiative/_show.lua:
Added missing case "not approved" in voting info box
app/main/initiative/_show_voting.lua:
Added link to initiative
app/main/initiative/_show_voting.lua:
Added missing argument for link
app/main/member/show_tab.lua:
Added outgoing argument to show outgoing delegations correctly
author | bsw |
---|---|
date | Sun Feb 21 14:09:11 2010 +0100 (2010-02-21) |
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 }