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.

53 lines
1.9 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!--
  3. Base phone module for OpenERP
  4. Copyright (C) 2013-2014 Alexis de Lattre <alexis@via.ecp.fr>
  5. The licence is in the file __openerp__.py
  6. -->
  7. <templates id="template" xml:space="preserve">
  8. <t t-name="FieldPhone">
  9. <span class="oe_form_field oe_form_field_email" t-att-style="widget.node.attrs.style">
  10. <t t-if="widget.get('effective_readonly')">
  11. <a href="#" class="oe_form_uri"/><span class="oe_form_char_content"/>
  12. <!--
  13. You should add the following "<a .. />" in your IPBX-specific
  14. module (such as asterisk_click2dial) via <t t-extend="FieldPhone">
  15. <a id="click2dial" href="#" class="oe_bold"/>
  16. -->
  17. </t>
  18. <t t-if="!widget.get('effective_readonly')">
  19. <div>
  20. <input type="text"
  21. t-att-id="widget.id_for_label"
  22. t-att-tabindex="widget.node.attrs.tabindex"
  23. t-att-autofocus="widget.node.attrs.autofocus"
  24. t-att-placeholder="widget.node.attrs.placeholder"
  25. t-att-maxlength="widget.field.size"
  26. />
  27. </div>
  28. </t>
  29. </span>
  30. </t>
  31. <t t-name="FieldFax">
  32. <span class="oe_form_field oe_form_field_email" t-att-style="widget.node.attrs.style">
  33. <t t-if="widget.get('effective_readonly')">
  34. <a href="#" class="oe_form_uri"/><span class="oe_form_char_content"/>
  35. </t>
  36. <t t-if="!widget.get('effective_readonly')">
  37. <div>
  38. <input type="text"
  39. t-att-id="widget.id_for_label"
  40. t-att-tabindex="widget.node.attrs.tabindex"
  41. t-att-autofocus="widget.node.attrs.autofocus"
  42. t-att-placeholder="widget.node.attrs.placeholder"
  43. t-att-maxlength="widget.field.size"
  44. />
  45. </div>
  46. </t>
  47. </span>
  48. </t>
  49. </templates>