# HG changeset patch # User bsw # Date 1634647340 -7200 # Node ID 7dcbcbf492e3eb86aa43baa13f46c3b10fdddc7f # Parent beca92ddc1070c8a68f89785e95b32d1e335df94 Removed unused code diff -r beca92ddc107 -r 7dcbcbf492e3 app/main/member/edit.lua --- a/app/main/member/edit.lua Tue Oct 19 14:39:01 2021 +0200 +++ b/app/main/member/edit.lua Tue Oct 19 14:42:20 2021 +0200 @@ -38,46 +38,6 @@ slot.put("
") end end - if not config.enforce_formatting_engine then - ui.field.select{ - label = _"Wiki engine for statement", - name = "formatting_engine", - foreign_records = config.formatting_engines, - attr = {id = "formatting_engine"}, - foreign_id = "id", - foreign_name = "name", - value = param.get("formatting_engine") - } - ui.tag{ - tag = "div", - content = function() - ui.tag{ - tag = "label", - attr = { class = "ui_field_label" }, - content = function() slot.put(" ") end, - } - ui.tag{ - content = function() - ui.link{ - text = _"Syntax help", - module = "help", - view = "show", - id = "wikisyntax", - attr = {onClick="this.href=this.href.replace(/wikisyntax[^.]*/g, 'wikisyntax_'+getElementById('formatting_engine').value)"} - } - slot.put(" ") - ui.link{ - text = _"(new window)", - module = "help", - view = "show", - id = "wikisyntax", - attr = {target = "_blank", onClick="this.href=this.href.replace(/wikisyntax[^.]*/g, 'wikisyntax_'+getElementById('formatting_engine').value)"} - } - end - } - end - } - end ui.field.text{ label = _"Statement", name = "statement", diff -r beca92ddc107 -r 7dcbcbf492e3 app/main/suggestion/new.lua --- a/app/main/suggestion/new.lua Tue Oct 19 14:39:01 2021 +0200 +++ b/app/main/suggestion/new.lua Tue Oct 19 14:42:20 2021 +0200 @@ -33,47 +33,6 @@ end ui.field.text{ label = _"A short title (80 chars max)", name = "name" } - if not config.enforce_formatting_engine then - ui.field.select{ - label = _"Wiki engine", - name = "formatting_engine", - foreign_records = config.formatting_engines, - attr = {id = "formatting_engine"}, - foreign_id = "id", - foreign_name = "name", - value = param.get("formatting_engine") - } - ui.tag{ - tag = "div", - content = function() - ui.tag{ - tag = "label", - attr = { class = "ui_field_label" }, - content = function() slot.put(" ") end, - } - ui.tag{ - content = function() - ui.link{ - text = _"Syntax help", - module = "help", - view = "show", - id = "wikisyntax", - attr = {onClick="this.href=this.href.replace(/wikisyntax[^.]*/g, 'wikisyntax_'+getElementById('formatting_engine').value)"} - } - slot.put(" ") - ui.link{ - text = _"(new window)", - module = "help", - view = "show", - id = "wikisyntax", - attr = {target = "_blank", onClick="this.href=this.href.replace(/wikisyntax[^.]*/g, 'wikisyntax_'+getElementById('formatting_engine').value)"} - } - end - } - end - } - end - ui.field.text{ label = _"Describe how the proposal and/or the reasons of the initiative could be improved", name = "content", diff -r beca92ddc107 -r 7dcbcbf492e3 app/main/vote/list.lua --- a/app/main/vote/list.lua Tue Oct 19 14:39:01 2021 +0200 +++ b/app/main/vote/list.lua Tue Oct 19 14:42:20 2021 +0200 @@ -462,17 +462,6 @@ if app.session.member_id and app.session.member_id == member.id then if (not readonly or direct_voter) and not preview then ui.container{ content = function() - if not config.enforce_formatting_engine then - ui.field.select{ - label = _"Wiki engine for statement", - name = "formatting_engine", - foreign_records = config.formatting_engines, - attr = {id = "formatting_engine"}, - foreign_id = "id", - foreign_name = "name", - value = param.get("formatting_engine") or direct_voter and direct_voter.formatting_engine - } - end ui.container{ content = _"Voting comment (optional)" } ui.field.text{ name = "comment",