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.

105 lines
6.6 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <odoo>
  3. <template id="contactby_form">
  4. <t t-call="website.layout">
  5. <div class="oe_structure">
  6. <div class="container">
  7. <form action="/contact_by_send/" method="post" data-model_name="crm.lead" data-success_page="/contactus-thank-you"
  8. class="s_website_form container-fluid mt32" enctype="multipart/form-data"
  9. data-editable-form="false">
  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">In the future I want to
  12. be
  13. contacted
  14. by
  15. </label>
  16. <div class="col-lg-7 col-md-8">
  17. <div class="checkbox">
  18. <label>
  19. <input type="checkbox" name="letter_contact" value="letter_contact"/>
  20. Contact by Letter
  21. </label>
  22. </div>
  23. <div class="checkbox">
  24. <label>
  25. <input type="checkbox" name="email_contact" value="email_contact"/>
  26. Contact by E-Mail
  27. </label>
  28. </div>
  29. <div class="checkbox">
  30. <label>
  31. <input type="checkbox" name="phone_contact" value="phone_contact"/>
  32. Contact by Phone
  33. </label>
  34. </div>
  35. <div>
  36. <a href="#" role="button" class="btn btn-primary btn-lg o_website_form_send">Send</a>
  37. <!--<button name="Send" class="btn btn-primary btn-lg o_website_form_send" type="submit">Send</button>-->
  38. </div>
  39. </div>
  40. </div>
  41. </form>
  42. </div>
  43. </div>
  44. </t>
  45. </template>
  46. <template id="review_form">
  47. <t t-call="website.layout">
  48. <div class="oe_structure">
  49. <div class="container">
  50. <form action="/form_review_send/" method="post"
  51. data-success_page="/contactus-thank-you" data-model_name="crm.lead"
  52. class="s_website_form container-fluid mt32">
  53. <div class="form-group row form-field">
  54. <label class="col-lg-3 col-md-4 col-form-label" for="email_from">Email</label>
  55. <div class="col-lg-7 col-md-8">
  56. <input class="form-control o_website_form_input" type="text" name="email_from" t-att-value="form_data[0]" disabled="true"/></div>
  57. </div>
  58. <div class="form-group row form-field">
  59. <label class="col-lg-3 col-md-4 col-form-label" for="contact_name">Your Name</label>
  60. <div class="col-lg-7 col-md-8">
  61. <input class="form-control o_website_form_input" type="text" name="contact_name" t-att-value="form_data[4]" disabled="true"/></div>
  62. </div>
  63. <div class="form-group row form-field">
  64. <label class="col-lg-3 col-md-4 col-form-label" for="company_name">Your Company</label>
  65. <div class="col-lg-7 col-md-8">
  66. <input class="form-control o_website_form_input" type="text" name="company_name" t-att-value="form_data[2]" disabled="true"/></div>
  67. </div>
  68. <div class="form-group row form-field">
  69. <label class="col-lg-3 col-md-4 col-form-label" for="phone">Phone</label>
  70. <div class="col-lg-7 col-md-8">
  71. <input class="form-control o_website_form_input" type="text" name="phone" t-att-value="form_data[10]" disabled="true"/></div>
  72. </div>
  73. <div class="form-group row form-field">
  74. <label class="col-lg-3 col-md-4 col-form-label" for="name">Subject</label>
  75. <div class="col-lg-7 col-md-8">
  76. <input class="form-control o_website_form_input" type="text" name="name" t-att-value="form_data[1]" disabled="true"/></div>
  77. </div>
  78. <div class="form-group row form-field">
  79. <label class="col-lg-3 col-md-4 col-form-label" for="description">Your Question</label>
  80. <div class="col-lg-7 col-md-8">
  81. <textarea class="form-control o_website_form_input" type="text" name="description" disabled="disabled"><t t-esc="form_data[6]"/></textarea></div>
  82. </div>
  83. <div class="form-group row form-field">
  84. <label class="col-lg-3 col-md-4 col-form-label" for="request_gdpdr">Set contact channel</label>
  85. <div class="col-lg-7 col-md-8">
  86. <input type="checkbox" name="request_gdpdr" t-att-checked="form_data[8]" disabled="true"/></div>
  87. </div>
  88. <div class="form-group row form-field">
  89. <label class="col-lg-3 col-md-4 col-form-label" for="send_mail">Information request about personal data</label>
  90. <div class="col-lg-7 col-md-8">
  91. <input type="checkbox" name="send_mail" t-att-checked="form_data[9]" disabled="true"/></div>
  92. </div>
  93. <div>
  94. <div class="offset-lg-3 offset-md-4 col-md-8 col-lg-7">
  95. <a href="#" role="button" class="btn btn-primary btn-lg o_website_form_send">Confirm</a>
  96. <a href="/contactus" class="btn btn-primary btn-lg" style="margin-left: 1%;">Cancel</a>
  97. </div>
  98. </div>
  99. </form>
  100. </div>
  101. </div>
  102. </t>
  103. </template>
  104. </odoo>