From 3f69c826661c100fdcb3b056770306eace3b3ac0 Mon Sep 17 00:00:00 2001 From: Antonio Espinosa Date: Mon, 22 Jun 2015 15:58:38 +0200 Subject: [PATCH 01/31] [ADD] website_crm_privacy_policy addon - Fix review comments - Icon changed - Remove website_legal_page depedency - Set Privacy policy link for opening in new tab, in order to not change user focus and avoid losing any data entered by user in contactus form - [IMP] README and OCA as author OCA Transbot updated translations from Transifex --- website_crm_privacy_policy/README.rst | 68 ++++++++++++++++++ website_crm_privacy_policy/__init__.py | 3 + website_crm_privacy_policy/__openerp__.py | 45 ++++++++++++ website_crm_privacy_policy/i18n/ca.po | 36 ++++++++++ website_crm_privacy_policy/i18n/de.po | 36 ++++++++++ website_crm_privacy_policy/i18n/el_GR.po | 35 +++++++++ website_crm_privacy_policy/i18n/es.po | 35 +++++++++ website_crm_privacy_policy/i18n/fr.po | 36 ++++++++++ website_crm_privacy_policy/i18n/it.po | 36 ++++++++++ website_crm_privacy_policy/i18n/pt_BR.po | 36 ++++++++++ website_crm_privacy_policy/i18n/ru.po | 35 +++++++++ website_crm_privacy_policy/i18n/sl.po | 36 ++++++++++ .../i18n/website_crm_privacy_policy.pot | 39 ++++++++++ .../static/description/icon.png | Bin 0 -> 2591 bytes .../static/src/js/scripts.js | 49 +++++++++++++ website_crm_privacy_policy/views/assets.xml | 12 ++++ .../views/templates.xml | 26 +++++++ 17 files changed, 563 insertions(+) create mode 100644 website_crm_privacy_policy/README.rst create mode 100644 website_crm_privacy_policy/__init__.py create mode 100644 website_crm_privacy_policy/__openerp__.py create mode 100644 website_crm_privacy_policy/i18n/ca.po create mode 100644 website_crm_privacy_policy/i18n/de.po create mode 100644 website_crm_privacy_policy/i18n/el_GR.po create mode 100644 website_crm_privacy_policy/i18n/es.po create mode 100644 website_crm_privacy_policy/i18n/fr.po create mode 100644 website_crm_privacy_policy/i18n/it.po create mode 100644 website_crm_privacy_policy/i18n/pt_BR.po create mode 100644 website_crm_privacy_policy/i18n/ru.po create mode 100644 website_crm_privacy_policy/i18n/sl.po create mode 100644 website_crm_privacy_policy/i18n/website_crm_privacy_policy.pot create mode 100644 website_crm_privacy_policy/static/description/icon.png create mode 100644 website_crm_privacy_policy/static/src/js/scripts.js create mode 100644 website_crm_privacy_policy/views/assets.xml create mode 100644 website_crm_privacy_policy/views/templates.xml diff --git a/website_crm_privacy_policy/README.rst b/website_crm_privacy_policy/README.rst new file mode 100644 index 0000000000..3f202339e8 --- /dev/null +++ b/website_crm_privacy_policy/README.rst @@ -0,0 +1,68 @@ +.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg + :alt: License: AGPL-3 + +Website CRM privacy policy +========================== + +This module was written to add a checkbox to contact us form for user privacy +policy validation + +Privacy policy is provided by Website legal page addon (website_legal_page) + +Usage +===== + +Website editors can change easily any text of these pages using website builder + +.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas + :alt: Try me on Runbot + :target: https://runbot.odoo-community.org/runbot/186/8.0 + + +Bug Tracker +=========== + +Bugs are tracked on `GitHub Issues `_. +In case of trouble, please check there if your issue has already been reported. +If you spotted it first, help us smashing it by providing a detailed and welcomed feedback +`here `_. + + +Credits +======= + +Icon +---- + +Icon based on ```johnny-automatic-scales-of-justice.svg``` from +[Openclipart](https://openclipart.org/detail/26849/scales-of-justice) and +```jetxee-check-sign-and-cross-sign.svg``` from +[Openclipart](https://openclipart.org/detail/11118/check-sign-and-cross-sign) + +Thanks to: +* [johnny_automatic](https://openclipart.org/user-detail/johnny_automatic) +* [jetxee](https://openclipart.org/user-detail/jetxee) + + +Contributors +------------ + +* Jorge Camacho +* Antonio Espinosa +* Rafael Blasco + + +Maintainer +---------- + +.. image:: https://odoo-community.org/logo.png + :alt: Odoo Community Association + :target: https://odoo-community.org + +This module is maintained by the OCA. + +OCA, or the Odoo Community Association, is a nonprofit organization whose +mission is to support the collaborative development of Odoo features and +promote its widespread use. + +To contribute to this module, please visit http://odoo-community.org. diff --git a/website_crm_privacy_policy/__init__.py b/website_crm_privacy_policy/__init__.py new file mode 100644 index 0000000000..4eb8bc8fd8 --- /dev/null +++ b/website_crm_privacy_policy/__init__.py @@ -0,0 +1,3 @@ +# -*- coding: utf-8 -*- +# Python source code encoding : https://www.python.org/dev/peps/pep-0263/ +############################################################################## diff --git a/website_crm_privacy_policy/__openerp__.py b/website_crm_privacy_policy/__openerp__.py new file mode 100644 index 0000000000..d1b3cfdc23 --- /dev/null +++ b/website_crm_privacy_policy/__openerp__.py @@ -0,0 +1,45 @@ +# -*- coding: utf-8 -*- +# Python source code encoding : https://www.python.org/dev/peps/pep-0263/ +############################################################################## +# +# OpenERP, Odoo Source Management Solution +# Copyright (c) 2014-Today Trey, Kilobytes de Soluciones +# Jorge Camacho +# Copyright (c) 2015 Antiun Ingeniería S.L. (http://www.antiun.com) +# Antonio Espinosa +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published +# by the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . +# +############################################################################## +{ + 'name': 'Website CRM privacy policy', + 'category': 'Website', + 'version': '8.0.1.0.0', + 'depends': [ + 'website', + 'website_crm', + ], + 'data': [ + 'views/assets.xml', + 'views/templates.xml', + ], + 'author': 'Trey, ' + 'Antiun Ingeniería S.L., ' + 'Odoo Community Association (OCA)', + 'website': 'http://www.trey.es', + 'license': 'AGPL-3', + 'demo': [], + 'test': [], + 'installable': True, +} diff --git a/website_crm_privacy_policy/i18n/ca.po b/website_crm_privacy_policy/i18n/ca.po new file mode 100644 index 0000000000..04da7a276b --- /dev/null +++ b/website_crm_privacy_policy/i18n/ca.po @@ -0,0 +1,36 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * website_crm_privacy_policy +# +# Translators: +# Carles Antolí , 2015 +msgid "" +msgstr "" +"Project-Id-Version: website (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2015-11-23 10:22+0000\n" +"PO-Revision-Date: 2015-11-18 21:16+0000\n" +"Last-Translator: Carles Antolí \n" +"Language-Team: Catalan (http://www.transifex.com/oca/OCA-website-8-0/language/ca/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: ca\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: website_crm_privacy_policy +#: view:website:website.contactus +msgid "I have read and accept the" +msgstr "He llegit i accepto la" + +#. module: website_crm_privacy_policy +#: view:website:website.contactus +msgid "Privacy Policy" +msgstr "Política de Privacitat" + +#. module: website_crm_privacy_policy +#. openerp-web +#: code:addons/website_crm_privacy_policy/static/src/js/scripts.js:43 +#, python-format +msgid "You must accept our Privacy Policy." +msgstr "Ha d'acceptar la nostra Política de privacitat." diff --git a/website_crm_privacy_policy/i18n/de.po b/website_crm_privacy_policy/i18n/de.po new file mode 100644 index 0000000000..9de25c8020 --- /dev/null +++ b/website_crm_privacy_policy/i18n/de.po @@ -0,0 +1,36 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * website_crm_privacy_policy +# +# Translators: +# Rudolf Schnapka , 2016 +msgid "" +msgstr "" +"Project-Id-Version: website (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-02-25 14:25+0000\n" +"PO-Revision-Date: 2016-02-24 22:30+0000\n" +"Last-Translator: Rudolf Schnapka \n" +"Language-Team: German (http://www.transifex.com/oca/OCA-website-8-0/language/de/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: de\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: website_crm_privacy_policy +#: view:website:website.contactus +msgid "I have read and accept the" +msgstr "Gelesen und Zustimmung zum" + +#. module: website_crm_privacy_policy +#: view:website:website.contactus +msgid "Privacy Policy" +msgstr "Regelwerk zur Privatsphäre" + +#. module: website_crm_privacy_policy +#. openerp-web +#: code:addons/website_crm_privacy_policy/static/src/js/scripts.js:43 +#, python-format +msgid "You must accept our Privacy Policy." +msgstr "Sie müssen unser Regelwerk zur Privatsphäre akzeptieren." diff --git a/website_crm_privacy_policy/i18n/el_GR.po b/website_crm_privacy_policy/i18n/el_GR.po new file mode 100644 index 0000000000..9491123ecf --- /dev/null +++ b/website_crm_privacy_policy/i18n/el_GR.po @@ -0,0 +1,35 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * website_crm_privacy_policy +# +# Translators: +msgid "" +msgstr "" +"Project-Id-Version: website (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2015-11-28 02:04+0000\n" +"PO-Revision-Date: 2015-11-24 15:31+0000\n" +"Last-Translator: Goutoudis Kostas \n" +"Language-Team: Greek (Greece) (http://www.transifex.com/oca/OCA-website-8-0/language/el_GR/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: el_GR\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: website_crm_privacy_policy +#: view:website:website.contactus +msgid "I have read and accept the" +msgstr "Έχω διαβάσει και αποδέχομαι τους" + +#. module: website_crm_privacy_policy +#: view:website:website.contactus +msgid "Privacy Policy" +msgstr "Πολιτική Απορρήτου" + +#. module: website_crm_privacy_policy +#. openerp-web +#: code:addons/website_crm_privacy_policy/static/src/js/scripts.js:43 +#, python-format +msgid "You must accept our Privacy Policy." +msgstr "Θα πρέπει να αποδεχθείτε την Πολιτική Απορρήτου." diff --git a/website_crm_privacy_policy/i18n/es.po b/website_crm_privacy_policy/i18n/es.po new file mode 100644 index 0000000000..9b7ed46bfa --- /dev/null +++ b/website_crm_privacy_policy/i18n/es.po @@ -0,0 +1,35 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * website_crm_privacy_policy +# +# Translators: +msgid "" +msgstr "" +"Project-Id-Version: website (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2015-10-03 23:14+0000\n" +"PO-Revision-Date: 2015-09-25 08:34+0000\n" +"Last-Translator: OCA Transbot \n" +"Language-Team: Spanish (http://www.transifex.com/oca/OCA-website-8-0/language/es/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: es\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: website_crm_privacy_policy +#: view:website:website.contactus +msgid "I have read and accept the" +msgstr "He leído y acepto la" + +#. module: website_crm_privacy_policy +#: view:website:website.contactus +msgid "Privacy Policy" +msgstr "Política de Privacidad" + +#. module: website_crm_privacy_policy +#. openerp-web +#: code:addons/website_crm_privacy_policy/static/src/js/scripts.js:43 +#, python-format +msgid "You must accept our Privacy Policy." +msgstr "Es obligatorio aceptar la Política de Privacidad." diff --git a/website_crm_privacy_policy/i18n/fr.po b/website_crm_privacy_policy/i18n/fr.po new file mode 100644 index 0000000000..8d86bea83f --- /dev/null +++ b/website_crm_privacy_policy/i18n/fr.po @@ -0,0 +1,36 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * website_crm_privacy_policy +# +# Translators: +# Christophe CHAUVET , 2016 +msgid "" +msgstr "" +"Project-Id-Version: website (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-05-06 02:53+0000\n" +"PO-Revision-Date: 2016-05-06 08:39+0000\n" +"Last-Translator: Christophe CHAUVET \n" +"Language-Team: French (http://www.transifex.com/oca/OCA-website-8-0/language/fr/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: fr\n" +"Plural-Forms: nplurals=2; plural=(n > 1);\n" + +#. module: website_crm_privacy_policy +#: view:website:website.contactus +msgid "I have read and accept the" +msgstr "J'ai lu et accepte les" + +#. module: website_crm_privacy_policy +#: view:website:website.contactus +msgid "Privacy Policy" +msgstr "Politique de vie privée" + +#. module: website_crm_privacy_policy +#. openerp-web +#: code:addons/website_crm_privacy_policy/static/src/js/scripts.js:43 +#, python-format +msgid "You must accept our Privacy Policy." +msgstr "Vous devez accepter note politique de vie privée" diff --git a/website_crm_privacy_policy/i18n/it.po b/website_crm_privacy_policy/i18n/it.po new file mode 100644 index 0000000000..f58bc21802 --- /dev/null +++ b/website_crm_privacy_policy/i18n/it.po @@ -0,0 +1,36 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * website_crm_privacy_policy +# +# Translators: +# Paolo Valier, 2016 +msgid "" +msgstr "" +"Project-Id-Version: website (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-03-12 02:17+0000\n" +"PO-Revision-Date: 2016-03-11 16:43+0000\n" +"Last-Translator: Paolo Valier\n" +"Language-Team: Italian (http://www.transifex.com/oca/OCA-website-8-0/language/it/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: it\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: website_crm_privacy_policy +#: view:website:website.contactus +msgid "I have read and accept the" +msgstr "Ho letto e accettato l'" + +#. module: website_crm_privacy_policy +#: view:website:website.contactus +msgid "Privacy Policy" +msgstr "Informativa sulla Privacy" + +#. module: website_crm_privacy_policy +#. openerp-web +#: code:addons/website_crm_privacy_policy/static/src/js/scripts.js:43 +#, python-format +msgid "You must accept our Privacy Policy." +msgstr "Devi accettare l'Informativa sulla Privacy." diff --git a/website_crm_privacy_policy/i18n/pt_BR.po b/website_crm_privacy_policy/i18n/pt_BR.po new file mode 100644 index 0000000000..07c64b2f67 --- /dev/null +++ b/website_crm_privacy_policy/i18n/pt_BR.po @@ -0,0 +1,36 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * website_crm_privacy_policy +# +# Translators: +# danimaribeiro , 2016 +msgid "" +msgstr "" +"Project-Id-Version: website (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-03-12 02:17+0000\n" +"PO-Revision-Date: 2016-03-05 18:09+0000\n" +"Last-Translator: danimaribeiro \n" +"Language-Team: Portuguese (Brazil) (http://www.transifex.com/oca/OCA-website-8-0/language/pt_BR/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: pt_BR\n" +"Plural-Forms: nplurals=2; plural=(n > 1);\n" + +#. module: website_crm_privacy_policy +#: view:website:website.contactus +msgid "I have read and accept the" +msgstr "Eu li e aceito o" + +#. module: website_crm_privacy_policy +#: view:website:website.contactus +msgid "Privacy Policy" +msgstr "Politica de privacidade" + +#. module: website_crm_privacy_policy +#. openerp-web +#: code:addons/website_crm_privacy_policy/static/src/js/scripts.js:43 +#, python-format +msgid "You must accept our Privacy Policy." +msgstr "Você deve aceitar nossa Política de Privacidade" diff --git a/website_crm_privacy_policy/i18n/ru.po b/website_crm_privacy_policy/i18n/ru.po new file mode 100644 index 0000000000..d059ffd1d0 --- /dev/null +++ b/website_crm_privacy_policy/i18n/ru.po @@ -0,0 +1,35 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * website_crm_privacy_policy +# +# Translators: +msgid "" +msgstr "" +"Project-Id-Version: website (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-01-19 11:34+0000\n" +"PO-Revision-Date: 2015-09-25 08:27+0000\n" +"Last-Translator: <>\n" +"Language-Team: Russian (http://www.transifex.com/oca/OCA-website-8-0/language/ru/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: ru\n" +"Plural-Forms: nplurals=4; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<12 || n%100>14) ? 1 : n%10==0 || (n%10>=5 && n%10<=9) || (n%100>=11 && n%100<=14)? 2 : 3);\n" + +#. module: website_crm_privacy_policy +#: view:website:website.contactus +msgid "I have read and accept the" +msgstr "Я прочитал и принимаю" + +#. module: website_crm_privacy_policy +#: view:website:website.contactus +msgid "Privacy Policy" +msgstr "Политика конфиденциальности. " + +#. module: website_crm_privacy_policy +#. openerp-web +#: code:addons/website_crm_privacy_policy/static/src/js/scripts.js:43 +#, python-format +msgid "You must accept our Privacy Policy." +msgstr "" diff --git a/website_crm_privacy_policy/i18n/sl.po b/website_crm_privacy_policy/i18n/sl.po new file mode 100644 index 0000000000..7a472c0b44 --- /dev/null +++ b/website_crm_privacy_policy/i18n/sl.po @@ -0,0 +1,36 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * website_crm_privacy_policy +# +# Translators: +# Matjaž Mozetič , 2015 +msgid "" +msgstr "" +"Project-Id-Version: website (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2015-10-14 08:34+0000\n" +"PO-Revision-Date: 2015-10-18 04:18+0000\n" +"Last-Translator: Matjaž Mozetič \n" +"Language-Team: Slovenian (http://www.transifex.com/oca/OCA-website-8-0/language/sl/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: sl\n" +"Plural-Forms: nplurals=4; plural=(n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n%100==4 ? 2 : 3);\n" + +#. module: website_crm_privacy_policy +#: view:website:website.contactus +msgid "I have read and accept the" +msgstr "Prebral sem in sprejemam" + +#. module: website_crm_privacy_policy +#: view:website:website.contactus +msgid "Privacy Policy" +msgstr "pravila in pogoje o zasebnosti" + +#. module: website_crm_privacy_policy +#. openerp-web +#: code:addons/website_crm_privacy_policy/static/src/js/scripts.js:43 +#, python-format +msgid "You must accept our Privacy Policy." +msgstr "Sprejeti morate naša pravila o zasebnosti." diff --git a/website_crm_privacy_policy/i18n/website_crm_privacy_policy.pot b/website_crm_privacy_policy/i18n/website_crm_privacy_policy.pot new file mode 100644 index 0000000000..fa566c703d --- /dev/null +++ b/website_crm_privacy_policy/i18n/website_crm_privacy_policy.pot @@ -0,0 +1,39 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * website_crm_privacy_policy +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 8.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2015-06-22 12:18+0000\n" +"PO-Revision-Date: 2015-06-22 12:18+0000\n" +"Last-Translator: <>\n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: \n" + +#. module: website_crm_privacy_policy +#: view:website:website.contactus +msgid "I have read and accept the" +msgstr "" + +#. module: website_crm_privacy_policy +#: view:website:website.contactus +msgid "Privacy Policy" +msgstr "" + +#. module: website_crm_privacy_policy +#. openerp-web +#: code:addons/website_crm_privacy_policy/static/src/js/scripts.js:43 +#, python-format +msgid "You must accept our Privacy Policy." +msgstr "" + +#. module: website_crm_privacy_policy +#: view:website:website.contactus +msgid "btn btn-primary btn-block" +msgstr "" + diff --git a/website_crm_privacy_policy/static/description/icon.png b/website_crm_privacy_policy/static/description/icon.png new file mode 100644 index 0000000000000000000000000000000000000000..1fa5efe6d4d6bbb9d85204fdc38b1c0305354e23 GIT binary patch literal 2591 zcmV+)3gGpLP)mC zoQk2XxnQ?omWyqEV`!09L}4QmU~fsooq6-%q+LN!+Q7Gxkd~KCHPg+<-lUlycD$Emo|qY|UqkK6!|t!Ii&!P=`uTyHwcg&= zh>D(ASe<*$c$Sq7fQLb8a4e~(xpZcjMivj}-`KXb!FfV&$cHh>oQz0E3#Ejtc6WFP z0t@Qk!ck;T+rWu^H4^F6pNvNpG*f0qW_NgYj}Z|!S*%=bzHOSF*quP;!g%oL z-!oKnIbMM!MPW);A!t^OLMtr0Y!IV;)bUo|Ok0&BXb$b$$leu(AKf7{Q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s>VjBdf^*eq3XXYRK1vTV<=Sl6)M^I^fyo- z^zz>F(n^|g-kJk%_!5SAZwEjiM*qzK2+a6@<6rlj(kR4StWW>|002ovPDHLkV1nP# B0muLV literal 0 HcmV?d00001 diff --git a/website_crm_privacy_policy/static/src/js/scripts.js b/website_crm_privacy_policy/static/src/js/scripts.js new file mode 100644 index 0000000000..f5e6a5c77a --- /dev/null +++ b/website_crm_privacy_policy/static/src/js/scripts.js @@ -0,0 +1,49 @@ +/** + * # -*- coding: utf-8 -*- + * ############################################################################## + * # + * # OpenERP, Open Source Management Solution + * # This module copyright : + * # (c) 2014-Today Trey, Kilobytes de Soluciones + * # Jorge Camacho + * # (c) 2015 Antiun Ingenieria, SL (Madrid, Spain, http://www.antiun.com) + * # Antonio Espinosa + * # Endika Iglesias + * # + * # This program is free software: you can redistribute it and/or modify + * # it under the terms of the GNU Affero General Public License as + * # published by the Free Software Foundation, either version 3 of the + * # License, or (at your option) any later version. + * # + * # This program is distributed in the hope that it will be useful, + * # but WITHOUT ANY WARRANTY; without even the implied warranty of + * # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * # GNU Affero General Public License for more details. + * # + * # You should have received a copy of the GNU Affero General Public License + * # along with this program. If not, see . + * # + * ############################################################################## + */ + +// Check jQuery available +if (typeof jQuery === 'undefined') { throw new Error('Website CRM privacy policy addon requires jQuery') } + ++function ($) { + 'use strict'; + + $(document).ready(function() { + var _t = openerp._t; + + // Validate form + $('form[action="/crm/contactus"]').on('submit', function(e) { + // Validate privacy_policy is checked + if(!$('input[name="privacy_policy"]').is(':checked')) { + e.preventDefault(); // Prevent form from submitting + alert(_t('You must accept our Privacy Policy.')); + } + }); + + }); + +}(jQuery); diff --git a/website_crm_privacy_policy/views/assets.xml b/website_crm_privacy_policy/views/assets.xml new file mode 100644 index 0000000000..c26e59f808 --- /dev/null +++ b/website_crm_privacy_policy/views/assets.xml @@ -0,0 +1,12 @@ + + + + +