liquid_feedback_frontend

diff app/main/draft/new.lua @ 0:3bfb2fcf7ab9

Version alpha1
author bsw/jbe
date Wed Nov 18 12:00:00 2009 +0100 (2009-11-18)
parents
children 5c601807d397
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/app/main/draft/new.lua	Wed Nov 18 12:00:00 2009 +0100
     1.3 @@ -0,0 +1,25 @@
     1.4 +slot.put_into("title", _"Add new draft")
     1.5 +
     1.6 +local initiative_id = param.get("initiative_id")
     1.7 +
     1.8 +ui.form{
     1.9 +  attr = { class = "vertical" },
    1.10 +  module = "draft",
    1.11 +  action = "add",
    1.12 +  params = { initiative_id = initiative_id },
    1.13 +  routing = {
    1.14 +    default = {
    1.15 +      mode = "redirect",
    1.16 +      module = "initiative",
    1.17 +      view = "show",
    1.18 +      id = initiative_id
    1.19 +    }
    1.20 +  },
    1.21 +  content = function()
    1.22 +
    1.23 +    ui.field.text{ label = _"Author", value = app.session.member.name, readonly = true }
    1.24 +    ui.field.text{ label = _"Content", name = "content", multiline = true }
    1.25 +
    1.26 +    ui.submit{ text = _"Save" }
    1.27 +  end
    1.28 +}

Impressum / About Us