Files
web/web_widget_text_markdown/static/src/xml/bootstrap_markdown.xml
phuc.nt 52a8a108a6 [10.0][MIG] web_widget_text_markdown
Adjustment to make it work version 10.0
2022-02-02 09:40:01 +01:00

41 lines
1.6 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<!-- * Copyright 2014 Sudokeys <http://www.sudokeys.com>
* Copyright 2017 Komit - <http:///komit-consulting.com>
* License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).-->
<templates id="template" xml:space="preserve">
<t t-name="FieldMarkDown">
<div t-attf-class="oe_form_field oe_form_field_markdown markdown-body" t-att-style="widget.node.attrs.style">
<t t-if="!widget.get('effective_readonly')">
<textarea rows="6"
t-att-name="widget.name"
class="field_text"
t-att-tabindex="widget.node.attrs.tabindex"
t-att-autofocus="widget.node.attrs.autofocus"
t-att-placeholder="! widget.get('effective_readonly') ? widget.node.attrs.placeholder : ''"
t-att-maxlength="widget.field.size"
/><img class="oe_field_translate oe_input_icon"
t-if="widget.field.translate and !widget.get('effective_readonly')"
t-att-src='_s + "/web/static/src/img/icons/terp-translate.png"'
width="16"
height="16"
border="0"
/>
</t>
<t t-if="widget.get('effective_readonly')">
<span class="oe_form_text_content"/>
</t>
</div>
</t>
<t t-name="FieldTextRst2HtmlReadOnly">
<div class="oe_form_field_html oe_form_field_rst2html_readonly"
t-att-style="widget.node.attrs.style">
</div>
</t>
</templates>