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

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!-- vim:fdl=1:
  3. -->
  4. <templates id="template" xml:space="preserve">
  5. <t t-name="FieldMarkDown">
  6. <div t-attf-class="oe_form_field oe_form_field_markdown markdown-body" t-att-style="widget.node.attrs.style">
  7. <t t-if="!widget.get('effective_readonly')">
  8. <textarea rows="6"
  9. t-att-name="widget.name"
  10. class="field_text"
  11. t-att-tabindex="widget.node.attrs.tabindex"
  12. t-att-autofocus="widget.node.attrs.autofocus"
  13. t-att-placeholder="! widget.get('effective_readonly') ? widget.node.attrs.placeholder : ''"
  14. t-att-maxlength="widget.field.size"
  15. ></textarea><img class="oe_field_translate oe_input_icon"
  16. t-if="widget.field.translate and !widget.get('effective_readonly')"
  17. t-att-src='_s + "/web/static/src/img/icons/terp-translate.png"'
  18. width="16"
  19. height="16"
  20. border="0"
  21. />
  22. </t>
  23. <t t-if="widget.get('effective_readonly')">
  24. <span class="oe_form_text_content"></span>
  25. </t>
  26. </div>
  27. </t>
  28. <t t-name="FieldTextRst2HtmlReadOnly">
  29. <div class="oe_form_field_html oe_form_field_rst2html_readonly"
  30. t-att-style="widget.node.attrs.style">
  31. </div>
  32. </t>
  33. </templates>