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.

146 lines
8.5 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <odoo>
  3. <template id="assets_frontend" inherit_id="website.assets_frontend" name="Website Support Assets">
  4. <xpath expr="//script[last()]" position="after">
  5. <script type="text/javascript" src="/website_contact_extend/static/src/js/contactus.js"/>
  6. </xpath>
  7. </template>
  8. <!--<template id="contactus_form_inherited" name="Contact Form" inherit_id="website_crm.contactus_form" customize_show="True">-->
  9. <!--<xpath expr="//div[@class='form-group row form-field o_website_form_required_custom'][last()]" position="after">-->
  10. <!--<div class="form-group row form-field o_website_form_required_custom">-->
  11. <!--<label class="col-lg-3 col-md-4 col-form-label" for="contact_type">Request GDPDR</label>-->
  12. <!--<div class="col-lg-7 col-md-8">-->
  13. <!--<div class="checkbox>"><label><input type="checkbox" name="request_gdpdr" value="request_gdpdr"/></label></div>-->
  14. <!--&lt;!&ndash;<div class="checkbox>"><label><input type="checkbox" name="letter_contact" value="letter_contact"/> Contact by Letter </label></div>&ndash;&gt;-->
  15. <!--&lt;!&ndash;<div class="checkbox>"><label><input type="checkbox" name="email_contact" value="email_contact"/> Contact by E-Mail </label></div>&ndash;&gt;-->
  16. <!--&lt;!&ndash;<div class="checkbox>"><label><input type="checkbox" name="phone_contact" value="phone_contact"/> Contact by Phone </label></div>&ndash;&gt;-->
  17. <!--&lt;!&ndash;<select class="form-control" name="contact_type" id="contact_type">-->
  18. <!--<option value="no_contact">I do not want to be contacted.</option>-->
  19. <!--<option value="email_contact">I only want to be contacted by Email.</option>-->
  20. <!--<option value="phone_contact">I only want to be contacted by Phone.</option>-->
  21. <!--<option value="email_phone_contact">You can contact me by Email or Phone.</option>-->
  22. <!--</select>&ndash;&gt;-->
  23. <!--</div>-->
  24. <!--</div>-->
  25. <!--<div class="form-group row form-field">-->
  26. <!--<label class="col-lg-3 col-md-4 col-form-label" for="contact_type">Information request concerning data about the personally</label>-->
  27. <!--<div class="col-lg-7 col-md-8">-->
  28. <!--<input type="checkbox" name="send_mail" value="send_mail"/>-->
  29. <!--</div>-->
  30. <!--</div>-->
  31. <!--</xpath>-->
  32. <!--</template>-->
  33. <!--t-attf="http.request.session.review_form ? '/contact-us-form-review' : '/contactus-thank-you'"-->
  34. <template id="contactus_form_inherited" name="Contact Form" inherit_id="website_crm.contactus_form"
  35. customize_show="True">
  36. <xpath expr="//div" position="replace">
  37. <div class="container">
  38. <form action="/website_form/" method="post" data-model_name="crm.lead"
  39. data-success_page="/contactus-thank-you"
  40. class="s_website_form container-fluid mt32" enctype="multipart/form-data"
  41. data-editable-form="false">
  42. <div class="form-group row form-field o_website_form_required_custom">
  43. <label class="col-lg-3 col-md-4 col-form-label" for="contact_name">Your Name</label>
  44. <div class="col-lg-7 col-md-8">
  45. <input type="text" class="form-control o_website_form_input" name="contact_name"
  46. t-att-value="request.params.get('contact_name', '')" required=""/>
  47. </div>
  48. </div>
  49. <div class="form-group row form-field">
  50. <label class="col-lg-3 col-md-4 col-form-label" for="phone">Phone Number</label>
  51. <div class="col-lg-7 col-md-8">
  52. <input type="text" class="form-control o_website_form_input" name="phone"
  53. t-att-value="request.params.get('phone', '')"/>
  54. </div>
  55. </div>
  56. <div class="form-group row form-field o_website_form_required_custom">
  57. <label class="col-lg-3 col-md-4 col-form-label" for="email_from">Email</label>
  58. <div class="col-lg-7 col-md-8">
  59. <input type="text" class="form-control o_website_form_input input_email_from" name="email_from" required=""
  60. t-att-value="request.params.get('email_from', '')"/>
  61. </div>
  62. </div>
  63. <div class="form-group row form-field o_website_form_required_custom">
  64. <label class="col-lg-3 col-md-4 col-form-label" for="partner_name">Your Company</label>
  65. <div class="col-lg-7 col-md-8">
  66. <input type="text" class="form-control o_website_form_input input_company" name="partner_name" required=""
  67. t-att-value="request.params.get('partner_name', '')"/>
  68. </div>
  69. </div>
  70. <div class="form-group row form-field o_website_form_required">
  71. <label class="col-lg-3 col-md-4 col-form-label" for="name">Subject</label>
  72. <div class="col-lg-7 col-md-8">
  73. <input type="text" class="form-control o_website_form_input" name="name" required=""
  74. t-att-value="request.params.get('name', '')"/>
  75. </div>
  76. </div>
  77. <div class="form-group row form-field o_website_form_required_custom">
  78. <label class="col-lg-3 col-md-4 col-form-label" for="description">Your Question</label>
  79. <div class="col-lg-7 col-md-8">
  80. <textarea class="form-control o_website_form_input" name="description" required="">
  81. <t t-esc="request.params.get('description', '')"/>
  82. </textarea>
  83. </div>
  84. </div>
  85. <div class="form-group row form-field">
  86. <label class="col-lg-3 col-md-4 col-form-label" for="request_gdpdr">Set contact channel</label>
  87. <div class="col-lg-7 col-md-8">
  88. <div class="checkbox>">
  89. <label>
  90. <input type="checkbox" name="request_gdpdr" value="request_gdpdr"/>
  91. </label>
  92. </div>
  93. </div>
  94. </div>
  95. <div class="form-group row form-field">
  96. <label class="col-lg-3 col-md-4 col-form-label" for="send_mail">Information request about personal data
  97. </label>
  98. <div class="col-lg-7 col-md-8">
  99. <input type="checkbox" name="send_mail" value="send_mail"/>
  100. </div>
  101. </div>
  102. <div class="form-group row">
  103. <div class="offset-lg-3 offset-md-4 col-md-8 col-lg-7">
  104. <a href="#" role="button" class="btn btn-primary btn-lg o_website_form_send">Send</a>
  105. <span id="o_website_form_result"></span>
  106. </div>
  107. </div>
  108. </form>
  109. </div>
  110. </xpath>
  111. </template>
  112. <!--<record id="contactus_thanks_override" model="website.page">-->
  113. <!--<field name="inherit_id" ref="website_crm.contactus_thanks_ir_ui_view"></field>-->
  114. <!--&lt;!&ndash;<field name="key">website_crm.contactus_thanks</field>&ndash;&gt;-->
  115. <!--<field name="arch" type="xml">-->
  116. <!--<xpath expr="//t/t/div[@id='wrap']" position="replace">-->
  117. <!--<body>-->
  118. <!--<div>Hello</div>-->
  119. <!--</body>-->
  120. <!--</xpath>-->
  121. <!--</field>-->
  122. <!--</record>-->
  123. <!--<record id="contactus_form_review" model="website.page">-->
  124. <!--<field name="name">Review Form</field>-->
  125. <!--<field name="type">qweb</field>-->
  126. <!--<field name="url">/contact-us-form-review</field>-->
  127. <!--<field name="website_published">True</field>-->
  128. <!--<field name="key">website_contact_extend.contactus_form_review</field>-->
  129. <!--<field name="arch" type="xml">-->
  130. <!--<body>-->
  131. <!--<div>Hello from Review</div>-->
  132. <!--</body>-->
  133. <!--</field>-->
  134. <!--</record>-->
  135. </odoo>