liquid_feedback_frontend
diff app/main/draft/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 | 6e13a7da16b5 |
line diff
1.1 --- a/app/main/draft/new.lua Tue Oct 05 14:30:29 2010 +0200 1.2 +++ b/app/main/draft/new.lua Tue Oct 05 16:18:39 2010 +0200 1.3 @@ -56,9 +56,39 @@ 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 } 1.11 + ui.tag{ 1.12 + tag = "div", 1.13 + content = function() 1.14 + ui.tag{ 1.15 + tag = "label", 1.16 + attr = { class = "ui_field_label" }, 1.17 + content = function() slot.put(" ") end, 1.18 + } 1.19 + ui.tag{ 1.20 + content = function() 1.21 + ui.link{ 1.22 + text = _"Syntax help", 1.23 + module = "help", 1.24 + view = "show", 1.25 + id = "wikisyntax", 1.26 + attr = {onClick="this.href=this.href.replace(/wikisyntax[^.]*/g, 'wikisyntax_'+getElementById('formatting_engine').value)"} 1.27 + } 1.28 + slot.put(" ") 1.29 + ui.link{ 1.30 + text = _"(new window)", 1.31 + module = "help", 1.32 + view = "show", 1.33 + id = "wikisyntax", 1.34 + attr = {target = "_blank", onClick="this.href=this.href.replace(/wikisyntax[^.]*/g, 'wikisyntax_'+getElementById('formatting_engine').value)"} 1.35 + } 1.36 + end 1.37 + } 1.38 + end 1.39 + } 1.40 ui.field.text{ 1.41 label = _"Content", 1.42 name = "content",