liquid_feedback_frontend

view app/main/suggestion/_suggestion.lua @ 107:eeb167cf9dc4

add comand line admin tool

started a command line admin tool to help development.
currently supports setting login passwords and list users
author Daniel Poelzleithner <poelzi@poelzi.org>
date Sun Sep 19 01:33:23 2010 +0200 (2010-09-19)
parents 0849be391140
children de6b80867eb7
line source
1 local suggestion = param.get("suggestion", "table")
3 ui.form{
4 attr = { class = "vertical" },
5 record = suggestion,
6 readonly = true,
7 content = function()
8 if app.session.member_id or config.public_access == "pseudonym" then
9 ui.field.text{ label = _"Author", value = suggestion.author.name }
10 else
11 ui.field.text{ label = _"Author", value = _"[not displayed public]" }
12 end
13 ui.field.text{ label = _"Title", name = "name" }
14 ui.container{
15 attr = { class = "suggestion_content wiki" },
16 content = function()
17 ui.tag{
18 tag = "p",
19 content = suggestion.description
20 }
21 end
22 }
23 end
24 }
25 execute.view{
26 module = "suggestion",
27 view = "_list",
28 params = {
29 suggestions_selector = Suggestion:new_selector():add_where{ "id = ?", suggestion.id },
30 initiative = suggestion.initiative,
31 show_name = false,
32 show_filter = false
33 }
34 }

Impressum / About Us