liquid_feedback_frontend

diff app/main/member/edit.lua @ 1843:b01d9920371b

merge
author jbe
date Thu Feb 03 15:57:22 2022 +0100 (2022-02-03)
parents 757a87af4c83
children
line diff
     1.1 --- a/app/main/member/edit.lua	Thu Feb 03 15:54:23 2022 +0100
     1.2 +++ b/app/main/member/edit.lua	Thu Feb 03 15:57:22 2022 +0100
     1.3 @@ -32,52 +32,12 @@
     1.4                  ui.container{
     1.5                    attr = { class = "mdl-textfield mdl-js-textfield mdl-textfield--floating-label" },
     1.6                    content = function()
     1.7 -                    ui.tag{ tag = "input", attr = { class = "mdl-textfield__input", name = field.id, id = "input_" .. field.id, readonly = config.locked_profile_fields[field.id], value = profile and profile.profile and profile.profile[field.id] or nil } }
     1.8 +                    ui.tag{ tag = "input", attr = { class = "mdl-textfield__input", name = field.id, id = "input_" .. field.id, readonly = field.validate_func and "readonly" or nil, value = profile and profile.profile and profile.profile[field.id] or nil } }
     1.9                      ui.tag{ tag = "label", attr = { class = "mdl-textfield__label", ["for"] = "input_" .. field.id }, content = field.name }
    1.10                  end }
    1.11                  slot.put("<br />")
    1.12                end
    1.13              end
    1.14 -            if not config.enforce_formatting_engine then
    1.15 -              ui.field.select{
    1.16 -                label = _"Wiki engine for statement",
    1.17 -                name = "formatting_engine",
    1.18 -                foreign_records = config.formatting_engines,
    1.19 -                attr = {id = "formatting_engine"},
    1.20 -                foreign_id = "id",
    1.21 -                foreign_name = "name",
    1.22 -                value = param.get("formatting_engine")
    1.23 -              }
    1.24 -              ui.tag{
    1.25 -                tag = "div",
    1.26 -                content = function()
    1.27 -                  ui.tag{
    1.28 -                    tag = "label",
    1.29 -                    attr = { class = "ui_field_label" },
    1.30 -                    content = function() slot.put("&nbsp;") end,
    1.31 -                  }
    1.32 -                  ui.tag{
    1.33 -                    content = function()
    1.34 -                      ui.link{
    1.35 -                        text = _"Syntax help",
    1.36 -                        module = "help",
    1.37 -                        view = "show",
    1.38 -                        id = "wikisyntax",
    1.39 -                        attr = {onClick="this.href=this.href.replace(/wikisyntax[^.]*/g, 'wikisyntax_'+getElementById('formatting_engine').value)"}
    1.40 -                      }
    1.41 -                      slot.put(" ")
    1.42 -                      ui.link{
    1.43 -                        text = _"(new window)",
    1.44 -                        module = "help",
    1.45 -                        view = "show",
    1.46 -                        id = "wikisyntax",
    1.47 -                        attr = {target = "_blank", onClick="this.href=this.href.replace(/wikisyntax[^.]*/g, 'wikisyntax_'+getElementById('formatting_engine').value)"}
    1.48 -                      }
    1.49 -                    end
    1.50 -                  }
    1.51 -                end
    1.52 -              }
    1.53 -            end
    1.54              ui.field.text{
    1.55                label = _"Statement",
    1.56                name = "statement",

Impressum / About Us