liquid_feedback_frontend

changeset 1780:7dcbcbf492e3

Removed unused code
author bsw
date Tue Oct 19 14:42:20 2021 +0200 (2021-10-19)
parents beca92ddc107
children c28ff4a85ded
files app/main/member/edit.lua app/main/suggestion/new.lua app/main/vote/list.lua
line diff
     1.1 --- a/app/main/member/edit.lua	Tue Oct 19 14:39:01 2021 +0200
     1.2 +++ b/app/main/member/edit.lua	Tue Oct 19 14:42:20 2021 +0200
     1.3 @@ -38,46 +38,6 @@
     1.4                  slot.put("<br />")
     1.5                end
     1.6              end
     1.7 -            if not config.enforce_formatting_engine then
     1.8 -              ui.field.select{
     1.9 -                label = _"Wiki engine for statement",
    1.10 -                name = "formatting_engine",
    1.11 -                foreign_records = config.formatting_engines,
    1.12 -                attr = {id = "formatting_engine"},
    1.13 -                foreign_id = "id",
    1.14 -                foreign_name = "name",
    1.15 -                value = param.get("formatting_engine")
    1.16 -              }
    1.17 -              ui.tag{
    1.18 -                tag = "div",
    1.19 -                content = function()
    1.20 -                  ui.tag{
    1.21 -                    tag = "label",
    1.22 -                    attr = { class = "ui_field_label" },
    1.23 -                    content = function() slot.put("&nbsp;") end,
    1.24 -                  }
    1.25 -                  ui.tag{
    1.26 -                    content = function()
    1.27 -                      ui.link{
    1.28 -                        text = _"Syntax help",
    1.29 -                        module = "help",
    1.30 -                        view = "show",
    1.31 -                        id = "wikisyntax",
    1.32 -                        attr = {onClick="this.href=this.href.replace(/wikisyntax[^.]*/g, 'wikisyntax_'+getElementById('formatting_engine').value)"}
    1.33 -                      }
    1.34 -                      slot.put(" ")
    1.35 -                      ui.link{
    1.36 -                        text = _"(new window)",
    1.37 -                        module = "help",
    1.38 -                        view = "show",
    1.39 -                        id = "wikisyntax",
    1.40 -                        attr = {target = "_blank", onClick="this.href=this.href.replace(/wikisyntax[^.]*/g, 'wikisyntax_'+getElementById('formatting_engine').value)"}
    1.41 -                      }
    1.42 -                    end
    1.43 -                  }
    1.44 -                end
    1.45 -              }
    1.46 -            end
    1.47              ui.field.text{
    1.48                label = _"Statement",
    1.49                name = "statement",
     2.1 --- a/app/main/suggestion/new.lua	Tue Oct 19 14:39:01 2021 +0200
     2.2 +++ b/app/main/suggestion/new.lua	Tue Oct 19 14:42:20 2021 +0200
     2.3 @@ -33,47 +33,6 @@
     2.4              end
     2.5              ui.field.text{ label = _"A short title (80 chars max)", name = "name" }
     2.6              
     2.7 -            if not config.enforce_formatting_engine then
     2.8 -              ui.field.select{
     2.9 -                label = _"Wiki engine",
    2.10 -                name = "formatting_engine",
    2.11 -                foreign_records = config.formatting_engines,
    2.12 -                attr = {id = "formatting_engine"},
    2.13 -                foreign_id = "id",
    2.14 -                foreign_name = "name",
    2.15 -                value = param.get("formatting_engine")
    2.16 -              }
    2.17 -              ui.tag{
    2.18 -                tag = "div",
    2.19 -                content = function()
    2.20 -                  ui.tag{
    2.21 -                    tag = "label",
    2.22 -                    attr = { class = "ui_field_label" },
    2.23 -                    content = function() slot.put("&nbsp;") end,
    2.24 -                  }
    2.25 -                  ui.tag{
    2.26 -                    content = function()
    2.27 -                      ui.link{
    2.28 -                        text = _"Syntax help",
    2.29 -                        module = "help",
    2.30 -                        view = "show",
    2.31 -                        id = "wikisyntax",
    2.32 -                        attr = {onClick="this.href=this.href.replace(/wikisyntax[^.]*/g, 'wikisyntax_'+getElementById('formatting_engine').value)"}
    2.33 -                      }
    2.34 -                      slot.put(" ")
    2.35 -                      ui.link{
    2.36 -                        text = _"(new window)",
    2.37 -                        module = "help",
    2.38 -                        view = "show",
    2.39 -                        id = "wikisyntax",
    2.40 -                        attr = {target = "_blank", onClick="this.href=this.href.replace(/wikisyntax[^.]*/g, 'wikisyntax_'+getElementById('formatting_engine').value)"}
    2.41 -                      }
    2.42 -                    end
    2.43 -                  }
    2.44 -                end
    2.45 -              }
    2.46 -            end
    2.47 -
    2.48              ui.field.text{
    2.49                label = _"Describe how the proposal and/or the reasons of the initiative could be improved",
    2.50                name = "content",
     3.1 --- a/app/main/vote/list.lua	Tue Oct 19 14:39:01 2021 +0200
     3.2 +++ b/app/main/vote/list.lua	Tue Oct 19 14:42:20 2021 +0200
     3.3 @@ -462,17 +462,6 @@
     3.4              if app.session.member_id and app.session.member_id == member.id then
     3.5                if (not readonly or direct_voter) and not preview then
     3.6                  ui.container{ content = function()
     3.7 -                  if not config.enforce_formatting_engine then
     3.8 -                    ui.field.select{
     3.9 -                      label = _"Wiki engine for statement",
    3.10 -                      name = "formatting_engine",
    3.11 -                      foreign_records = config.formatting_engines,
    3.12 -                      attr = {id = "formatting_engine"},
    3.13 -                      foreign_id = "id",
    3.14 -                      foreign_name = "name",
    3.15 -                      value = param.get("formatting_engine") or direct_voter and direct_voter.formatting_engine
    3.16 -                    }
    3.17 -                  end
    3.18                    ui.container{ content = _"Voting comment (optional)" }
    3.19                    ui.field.text{
    3.20                      name = "comment",

Impressum / About Us