liquid_feedback_frontend

diff app/main/draft/new.lua @ 4:80c215dbf076

Version alpha5

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 5c601807d397
children 6a12fb7e4963
line diff
     1.1 --- a/app/main/draft/new.lua	Mon Nov 30 12:00:00 2009 +0100
     1.2 +++ b/app/main/draft/new.lua	Thu Dec 10 12:00:00 2009 +0100
     1.3 @@ -1,7 +1,19 @@
     1.4 -slot.put_into("title", _"Add new draft")
     1.5 +slot.put_into("title", _"Edit draft")
     1.6  
     1.7  local initiative = Initiative:by_id(param.get("initiative_id"))
     1.8  
     1.9 +slot.select("actions", function()
    1.10 +  ui.link{
    1.11 +    content = function()
    1.12 +        ui.image{ static = "icons/16/cancel.png" }
    1.13 +        slot.put(_"Cancel")
    1.14 +    end,
    1.15 +    module = "initiative",
    1.16 +    view = "show",
    1.17 +    id = initiative.id
    1.18 +  }
    1.19 +end)
    1.20 +
    1.21  ui.form{
    1.22    record = initiative.current_draft,
    1.23    attr = { class = "vertical" },
    1.24 @@ -19,6 +31,16 @@
    1.25    content = function()
    1.26  
    1.27      ui.field.text{ label = _"Author", value = app.session.member.name, readonly = true }
    1.28 +    ui.field.select{
    1.29 +      label = _"Wiki engine",
    1.30 +      name = "formatting_engine",
    1.31 +      foreign_records = {
    1.32 +        { id = "rocketwiki", name = "RocketWiki" },
    1.33 +        { id = "compat", name = _"Traditional wiki syntax" }
    1.34 +      },
    1.35 +      foreign_id = "id",
    1.36 +      foreign_name = "name"
    1.37 +    }
    1.38      ui.field.text{
    1.39        label = _"Content",
    1.40        name = "content",

Impressum / About Us