liquid_feedback_frontend
view app/main/member/edit.lua @ 0:3bfb2fcf7ab9
Version alpha1
author | bsw/jbe |
---|---|
date | Wed Nov 18 12:00:00 2009 +0100 (2009-11-18) |
parents | |
children | 5c601807d397 |
line source
1 slot.put_into("title", _"Edit my page")
3 slot.select("actions", function()
4 ui.link{
5 content = function()
6 ui.image{ static = "icons/16/cancel.png" }
7 slot.put(_"Cancel")
8 end,
9 module = "index",
10 view = "index"
11 }
12 end)
14 ui.form{
15 record = app.session.member,
16 attr = { class = "vertical" },
17 module = "member",
18 action = "update",
19 routing = {
20 ok = {
21 mode = "redirect",
22 module = "index",
23 view = "index"
24 }
25 },
26 content = function()
27 ui.field.text{ label = _"Name", name = "name" }
28 ui.submit{ value = _"Save" }
29 end
30 }