liquid_feedback_frontend
diff app/main/initiative/new.lua @ 133:fa55c8ded9fd
add wiki syntax help
add help display module
add links to the wiki editors that link to a help page of the selected wiki syntax.
add help display module
add links to the wiki editors that link to a help page of the selected wiki syntax.
| author | Daniel Poelzleithner <poelzi@poelzi.org> |
|---|---|
| date | Tue Oct 05 16:18:39 2010 +0200 (2010-10-05) |
| parents | 6a12fb7e4963 |
| children | fecd4c13054a |
line diff
1.1 --- a/app/main/initiative/new.lua Tue Oct 05 14:30:29 2010 +0200 1.2 +++ b/app/main/initiative/new.lua Tue Oct 05 16:18:39 2010 +0200 1.3 @@ -128,10 +128,40 @@ 1.4 { id = "rocketwiki", name = "RocketWiki" }, 1.5 { id = "compat", name = _"Traditional wiki syntax" } 1.6 }, 1.7 + attr = {id = "formatting_engine"}, 1.8 foreign_id = "id", 1.9 foreign_name = "name", 1.10 value = param.get("formatting_engine") 1.11 } 1.12 + ui.tag{ 1.13 + tag = "div", 1.14 + content = function() 1.15 + ui.tag{ 1.16 + tag = "label", 1.17 + attr = { class = "ui_field_label" }, 1.18 + content = function() slot.put(" ") end, 1.19 + } 1.20 + ui.tag{ 1.21 + content = function() 1.22 + ui.link{ 1.23 + text = _"Syntax help", 1.24 + module = "help", 1.25 + view = "show", 1.26 + id = "wikisyntax", 1.27 + attr = {onClick="this.href=this.href.replace(/wikisyntax[^.]*/g, 'wikisyntax_'+getElementById('formatting_engine').value)"} 1.28 + } 1.29 + slot.put(" ") 1.30 + ui.link{ 1.31 + text = _"(new window)", 1.32 + module = "help", 1.33 + view = "show", 1.34 + id = "wikisyntax", 1.35 + attr = {target = "_blank", onClick="this.href=this.href.replace(/wikisyntax[^.]*/g, 'wikisyntax_'+getElementById('formatting_engine').value)"} 1.36 + } 1.37 + end 1.38 + } 1.39 + end 1.40 + } 1.41 ui.field.text{ 1.42 label = _"Draft", 1.43 name = "draft",