comparison sat_templates/templates/default/input/xmlui.html @ 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 e03e085bf7e8
children 16b3a2988afd
comparison
equal deleted inserted replaced
206:131fd1eeb132 207:15db910a957a
218 </p> 218 </p>
219 {% endif %} 219 {% endif %}
220 {% endmacro%} 220 {% endmacro%}
221 221
222 {% macro xhtmlbox_widget(wid, config, id=none) %} 222 {% macro xhtmlbox_widget(wid, config, id=none) %}
223 {% if wid.read_only %} 223 {% if not config.form or wid.read_only %}
224 <div class="xmlui_widget xmlui_xhtmlbox" {{ {'id':id}|xmlattr }}> 224 <div class="xmlui_widget xmlui_xhtmlbox" {{ {'id':id}|xmlattr }}>
225 {{- wid|item_filter(config.filters) -}} 225 {{- wid|item_filter(config.filters) -}}
226 </div> 226 </div>
227 {% else %} 227 {% else %}
228 <textarea class="xmlui_widget xmlui_xhtmlbox" rows="10" cols="50" {{ {'name':wid.name, 'id':id}|dict_ext(config.attrs, wid.name)|xmlattr }}> 228 <textarea class="xmlui_widget xmlui_xhtmlbox" rows="10" cols="50" {{ {'name':wid.name, 'id':id}|dict_ext(config.attrs, wid.name)|xmlattr }}>