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.

54 lines
2.0 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 or ovh_telephony_connector)
  15. via <t t-extend="FieldPhone">
  16. <a id="click2dial" href="#" class="oe_bold"/>
  17. -->
  18. </t>
  19. <t t-if="!widget.get('effective_readonly')">
  20. <div>
  21. <input type="text"
  22. t-att-id="widget.id_for_label"
  23. t-att-tabindex="widget.node.attrs.tabindex"
  24. t-att-autofocus="widget.node.attrs.autofocus"
  25. t-att-placeholder="widget.node.attrs.placeholder"
  26. t-att-maxlength="widget.field.size"
  27. />
  28. </div>
  29. </t>
  30. </span>
  31. </t>
  32. <t t-name="FieldFax">
  33. <span class="oe_form_field oe_form_field_email" t-att-style="widget.node.attrs.style">
  34. <t t-if="widget.get('effective_readonly')">
  35. <a href="#" class="oe_form_uri"/><span class="oe_form_char_content"/>
  36. </t>
  37. <t t-if="!widget.get('effective_readonly')">
  38. <div>
  39. <input type="text"
  40. t-att-id="widget.id_for_label"
  41. t-att-tabindex="widget.node.attrs.tabindex"
  42. t-att-autofocus="widget.node.attrs.autofocus"
  43. t-att-placeholder="widget.node.attrs.placeholder"
  44. t-att-maxlength="widget.field.size"
  45. />
  46. </div>
  47. </t>
  48. </span>
  49. </t>
  50. </templates>