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.

73 lines
3.3KB

  1. <?xml version="1.0" encoding="utf-8" ?>
  2. <!--
  3. Copyright 2018 Simone Orsi - Camptocamp SA
  4. Copyright 2019 Tecnativa - Cristina Martin R.
  5. License AGPL-3 or later (http://www.gnu.org/licenses/agpl.html).
  6. -->
  7. <odoo>
  8. <record id="view_website_config_settings" model="ir.ui.view">
  9. <field name="name">reCaptcha Settings</field>
  10. <field name="model">res.config.settings</field>
  11. <field name="inherit_id" ref="website.res_config_settings_view_form" />
  12. <field name="arch" type="xml">
  13. <div id="google_maps_setting" position="after">
  14. <div class="col-xs-12 col-md-6 o_setting_box" id="reCaptcha_setting">
  15. <div class="o_setting_left_pane">
  16. <field name="has_google_recaptcha" />
  17. </div>
  18. <div class="o_setting_right_pane">
  19. <img
  20. width="20px"
  21. alt="captcha"
  22. class="mr-2"
  23. src="website_form_recaptcha/static/description/recaptcha_ico.png"
  24. />
  25. <label for="has_google_recaptcha" string="reCaptcha" />
  26. <span
  27. class="fa fa-lg fa-globe"
  28. title="Values set here are website-specific."
  29. groups="website.group_multi_website"
  30. />
  31. <div class="text-muted mt8">
  32. Protect your forms using reCaptcha control.
  33. </div>
  34. <div
  35. class="content-group"
  36. attrs="{'invisible': [('has_google_recaptcha', '=', False)]}"
  37. >
  38. <div class="row mt16">
  39. <label
  40. class="col-lg-5 o_light_label"
  41. for="recaptcha_key_site"
  42. />
  43. <field name="recaptcha_key_site" placeholder="XXXXX" />
  44. <label
  45. class="col-lg-5 o_light_label"
  46. for="recaptcha_key_secret"
  47. />
  48. <field
  49. name="recaptcha_key_secret"
  50. placeholder="XXXXX"
  51. />
  52. </div>
  53. </div>
  54. <div
  55. attrs="{'invisible': [('has_google_recaptcha', '=', False)]}"
  56. class="mt8"
  57. >
  58. <a
  59. role="button"
  60. class="btn-link"
  61. target="_blank"
  62. href="http://www.google.com/recaptcha/admin"
  63. ><i class="fa fa-arrow-right" />
  64. How to get my reCaptcha Key
  65. </a>
  66. </div>
  67. </div>
  68. </div>
  69. </div>
  70. </field>
  71. </record>
  72. </odoo>
上海开阖软件有限公司 沪ICP备12045867号-1