changeset 207:15db910a957a

input (xmlui): don't use <textarea> in xhtmlbox_widget if we are not in a form
author Goffi <goffi@goffi.org>
date Fri, 14 Jun 2019 08:33:30 +0200
parents 131fd1eeb132
children 89f940763b02
files sat_templates/templates/default/input/xmlui.html
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/sat_templates/templates/default/input/xmlui.html	Wed Jun 12 09:14:53 2019 +0200
+++ b/sat_templates/templates/default/input/xmlui.html	Fri Jun 14 08:33:30 2019 +0200
@@ -220,7 +220,7 @@
 {% endmacro%}
 
 {% macro xhtmlbox_widget(wid, config, id=none) %}
-    {% if wid.read_only %}
+    {% if not config.form or wid.read_only %}
         <div class="xmlui_widget xmlui_xhtmlbox" {{ {'id':id}|xmlattr }}>
             {{- wid|item_filter(config.filters) -}}
         </div>