liquid_feedback_frontend
annotate app/main/area/_action/update.lua @ 4:80c215dbf076
Version alpha5
Many optical changes and improved usability
Support for different wiki-formatting-engines
Help system
Many optical changes and improved usability
Support for different wiki-formatting-engines
Help system
author | bsw/jbe |
---|---|
date | Thu Dec 10 12:00:00 2009 +0100 (2009-12-10) |
parents | 3bfb2fcf7ab9 |
children |
rev | line source |
---|---|
bsw/jbe@4 | 1 if not app.session.member.admin then |
bsw/jbe@4 | 2 error() |
bsw/jbe@4 | 3 end |
bsw/jbe@4 | 4 |
bsw/jbe@0 | 5 local id = param.get_id() |
bsw/jbe@0 | 6 |
bsw/jbe@0 | 7 local area |
bsw/jbe@0 | 8 if id then |
bsw/jbe@0 | 9 area = Area:new_selector():add_where{ "id = ?", id }:single_object_mode():exec() |
bsw/jbe@0 | 10 else |
bsw/jbe@0 | 11 area = Area:new() |
bsw/jbe@0 | 12 end |
bsw/jbe@0 | 13 |
bsw/jbe@0 | 14 |
bsw/jbe@0 | 15 param.update(area, "name", "description", "active") |
bsw/jbe@0 | 16 |
bsw/jbe@0 | 17 area:save() |
bsw/jbe@0 | 18 |
bsw/jbe@0 | 19 slot.put_into("notice", _"Area successfully updated") |