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.

42 lines
2.3 KiB

  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" ref="website.res_config_settings_view_form" />
  8. <field name="arch" type="xml">
  9. <div id="google_maps_setting" position="after">
  10. <div class="col-xs-12 col-md-6 o_setting_box" id="reCaptcha_setting">
  11. <div class="o_setting_left_pane">
  12. <field name="has_google_recaptcha"/>
  13. </div>
  14. <div class="o_setting_right_pane">
  15. <img width="20px" alt="captcha" class="mr-2" src="website_form_recaptcha/static/description/recaptcha_ico.png"/>
  16. <label for="has_google_recaptcha" string="reCaptcha"/>
  17. <span class="fa fa-lg fa-globe" title="Values set here are website-specific." groups="website.group_multi_website"/>
  18. <div class="text-muted mt8">
  19. Protect your forms using reCaptcha control.
  20. </div>
  21. <div class="content-group" attrs="{'invisible': [('has_google_recaptcha', '=', False)]}">
  22. <div class="row mt16">
  23. <label class="col-lg-5 o_light_label" for="recaptcha_key_site"/>
  24. <field name="recaptcha_key_site" placeholder="XXXXX"/>
  25. <label class="col-lg-5 o_light_label" for="recaptcha_key_secret"/>
  26. <field name="recaptcha_key_secret" placeholder="XXXXX"/>
  27. </div>
  28. </div>
  29. <div attrs="{'invisible': [('has_google_recaptcha', '=', False)]}" class="mt8">
  30. <a role="button" class="btn-link" target="_blank" href="http://www.google.com/recaptcha/admin"><i class="fa fa-arrow-right"></i>
  31. How to get my reCaptcha Key
  32. </a>
  33. </div>
  34. </div>
  35. </div>
  36. </div>
  37. </field>
  38. </record>
  39. </data>
  40. </openerp>