frontends, jp, templates: added XHTMLBox widget:
for jp, the XHTML is rendered for now using markdown.
This commit is contained in:
parent
87871fabca
commit
37ea73b19f
1 changed files with 44 additions and 0 deletions
|
|
@ -116,12 +116,22 @@ class PasswordWidget(Widget):
|
|||
|
||||
class TextBoxWidget(Widget):
|
||||
"""Input widget with require a long, possibly multilines string
|
||||
|
||||
often called TextArea in toolkits
|
||||
"""
|
||||
|
||||
pass
|
||||
|
||||
|
||||
class XHTMLBoxWidget(Widget):
|
||||
"""Input widget specialised in XHTML editing,
|
||||
|
||||
a WYSIWYG or specialised editor is expected
|
||||
"""
|
||||
|
||||
pass
|
||||
|
||||
|
||||
class BoolWidget(Widget):
|
||||
"""Input widget with require a boolean value
|
||||
often called CheckBox in toolkits
|
||||
|
|
@ -582,6 +592,11 @@ class XMLUIPanel(XMLUIBase):
|
|||
_xmlui_parent, value, self._isAttrSet("read_only", node)
|
||||
)
|
||||
self.ctrl_list[name] = {"type": type_, "control": ctrl}
|
||||
elif type_ == "xhtmlbox":
|
||||
ctrl = self.widget_factory.createXHTMLBoxWidget(
|
||||
_xmlui_parent, value, self._isAttrSet("read_only", node)
|
||||
)
|
||||
self.ctrl_list[name] = {"type": type_, "control": ctrl}
|
||||
elif type_ == "bool":
|
||||
ctrl = self.widget_factory.createBoolWidget(
|
||||
_xmlui_parent,
|
||||
|
|
|
|||
Loading…
Reference in a new issue