You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
1.5 KiB
38 lines
1.5 KiB
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!-- vim:fdl=1:
|
|
-->
|
|
<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"
|
|
></textarea><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"></span>
|
|
</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>
|