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.

57 lines
2.9 KiB

5 years ago
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <openerp>
  3. <data>
  4. <record id="view_website_config_settings" model="ir.ui.view">
  5. <field name="name">Website settings</field>
  6. <field name="model">res.config.settings</field>
  7. <field name="inherit_id"
  8. ref="website.res_config_settings_view_form"/>
  9. <field name="arch" type="xml">
  10. <div id="google_maps_setting" position="after">
  11. <div class="col-xs-12 col-md-6 o_setting_box"
  12. id="reCaptcha_setting">
  13. <div class="o_setting_left_pane">
  14. <field name="has_google_recaptcha"/>
  15. </div>
  16. <div class="o_setting_right_pane">
  17. <img width="20px" alt="captcha" class="mr-2"
  18. src="website_form_recaptcha/static/description/recaptcha_ico.png"/>
  19. <label for="has_google_recaptcha"
  20. string="reCaptcha"/>
  21. <span class="fa fa-lg fa-globe"
  22. title="Values set here are website-specific."
  23. groups="website.group_multi_website"/>
  24. <div class="text-muted mt8">
  25. Protect your forms using reCaptcha control.
  26. </div>
  27. <div class="content-group"
  28. attrs="{'invisible': [('has_google_recaptcha', '=', False)]}">
  29. <div class="row mt16">
  30. <label class="col-lg-5 o_light_label"
  31. for="recaptcha_key_site"/>
  32. <field name="recaptcha_key_site"
  33. placeholder="XXXXX"/>
  34. <label class="col-lg-5 o_light_label"
  35. for="recaptcha_key_secret"/>
  36. <field name="recaptcha_key_secret"
  37. placeholder="XXXXX"/>
  38. </div>
  39. </div>
  40. <div attrs="{'invisible': [('has_google_recaptcha', '=', False)]}"
  41. class="mt8">
  42. <a role="button" class="btn-link"
  43. target="_blank"
  44. href="http://www.google.com/recaptcha/admin">
  45. <i class="fa fa-arrow-right"></i>
  46. How to get my reCaptcha Key
  47. </a>
  48. </div>
  49. </div>
  50. </div>
  51. </div>
  52. </field>
  53. </record>
  54. </data>
  55. </openerp>