Skip to content

Commit

Permalink
[IMP] website_form_require_legal: pre-commit auto fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
NICO-SOLUTIONS committed Nov 21, 2023
1 parent 926bf62 commit 2735663
Show file tree
Hide file tree
Showing 9 changed files with 53 additions and 45 deletions.
42 changes: 22 additions & 20 deletions website_form_require_legal/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,19 @@ Website Form Require Legal
:target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html
:alt: License: LGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fwebsite-lightgray.png?logo=github
:target: https://github.com/OCA/website/tree/16.0/website_form_require_legal
:target: https://github.com/OCA/website/tree/17.0/website_form_require_legal
:alt: OCA/website
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/website-16-0/website-16-0-website_form_require_legal
:target: https://translation.odoo-community.org/projects/website-17-0/website-17-0-website_form_require_legal
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
:target: https://runboat.odoo-community.org/builds?repo=OCA/website&target_branch=16.0
:target: https://runboat.odoo-community.org/builds?repo=OCA/website&target_branch=17.0
:alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

This module adds the possibility to require confirm legal terms at frontend forms.
This module adds the possibility to require confirm legal terms at
frontend forms.

**Table of contents**

Expand All @@ -40,48 +41,49 @@ Usage

To use this module, you need to:

* Edit any page in your website.
* Add a form from the snippets.
* Modify the parameters.
* You will find the option "Legal terms acceptance".
* If you select it you will be able to modify the text shown and the link to the
page from the text editor.
- Edit any page in your website.
- Add a form from the snippets.
- Modify the parameters.
- You will find the option "Legal terms acceptance".
- If you select it you will be able to modify the text shown and the
link to the page from the text editor.

Note: Remember to change the terms and conditions link to redirect to the desired page.
Note: Remember to change the terms and conditions link to redirect to
the desired page.

Known issues / Roadmap
======================

This module is aimed to deprecate website_crm_privacy_policy and modules similar to this
one.
This module is aimed to deprecate website_crm_privacy_policy and modules
similar to this one.

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/website/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us to smash it by providing a detailed and welcomed
`feedback <https://github.com/OCA/website/issues/new?body=module:%20website_form_require_legal%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
`feedback <https://github.com/OCA/website/issues/new?body=module:%20website_form_require_legal%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

Do not contact contributors directly about support or help with technical issues.

Credits
=======

Authors
~~~~~~~
-------

* Tecnativa

Contributors
~~~~~~~~~~~~
------------

* `Tecnativa <https://www.tecnativa.com>`__:
- `Tecnativa <https://www.tecnativa.com>`__:

* Carlos Roca
- Carlos Roca

Maintainers
~~~~~~~~~~~
-----------

This module is maintained by the OCA.

Expand All @@ -93,6 +95,6 @@ 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.

This module is part of the `OCA/website <https://github.com/OCA/website/tree/16.0/website_form_require_legal>`_ project on GitHub.
This module is part of the `OCA/website <https://github.com/OCA/website/tree/17.0/website_form_require_legal>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
3 changes: 3 additions & 0 deletions website_form_require_legal/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[build-system]
requires = ["whool"]
build-backend = "whool.buildapi"
2 changes: 2 additions & 0 deletions website_form_require_legal/readme/CONTRIBUTORS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- [Tecnativa](https://www.tecnativa.com):
- Carlos Roca
3 changes: 0 additions & 3 deletions website_form_require_legal/readme/CONTRIBUTORS.rst

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
This module adds the possibility to require confirm legal terms at frontend forms.
This module adds the possibility to require confirm legal terms at
frontend forms.
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
This module is aimed to deprecate website_crm_privacy_policy and modules similar to this
one.
This module is aimed to deprecate website_crm_privacy_policy and modules
similar to this one.
11 changes: 11 additions & 0 deletions website_form_require_legal/readme/USAGE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
To use this module, you need to:

- Edit any page in your website.
- Add a form from the snippets.
- Modify the parameters.
- You will find the option "Legal terms acceptance".
- If you select it you will be able to modify the text shown and the
link to the page from the text editor.

Note: Remember to change the terms and conditions link to redirect to
the desired page.
10 changes: 0 additions & 10 deletions website_form_require_legal/readme/USAGE.rst

This file was deleted.

20 changes: 11 additions & 9 deletions website_form_require_legal/static/description/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -369,8 +369,9 @@ <h1 class="title">Website Form Require Legal</h1>
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:d42bd92c06b48ff759e04a63fcbed82512d602526159ec8b6e86111c1e6e789e
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/lgpl-3.0-standalone.html"><img alt="License: LGPL-3" src="https://img.shields.io/badge/licence-LGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/website/tree/16.0/website_form_require_legal"><img alt="OCA/website" src="https://img.shields.io/badge/github-OCA%2Fwebsite-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/website-16-0/website-16-0-website_form_require_legal"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/website&amp;target_branch=16.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
<p>This module adds the possibility to require confirm legal terms at frontend forms.</p>
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/lgpl-3.0-standalone.html"><img alt="License: LGPL-3" src="https://img.shields.io/badge/licence-LGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/website/tree/17.0/website_form_require_legal"><img alt="OCA/website" src="https://img.shields.io/badge/github-OCA%2Fwebsite-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/website-17-0/website-17-0-website_form_require_legal"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/website&amp;target_branch=17.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
<p>This module adds the possibility to require confirm legal terms at
frontend forms.</p>
<p><strong>Table of contents</strong></p>
<div class="contents local topic" id="contents">
<ul class="simple">
Expand All @@ -393,22 +394,23 @@ <h1><a class="toc-backref" href="#toc-entry-1">Usage</a></h1>
<li>Add a form from the snippets.</li>
<li>Modify the parameters.</li>
<li>You will find the option “Legal terms acceptance”.</li>
<li>If you select it you will be able to modify the text shown and the link to the
page from the text editor.</li>
<li>If you select it you will be able to modify the text shown and the
link to the page from the text editor.</li>
</ul>
<p>Note: Remember to change the terms and conditions link to redirect to the desired page.</p>
<p>Note: Remember to change the terms and conditions link to redirect to
the desired page.</p>
</div>
<div class="section" id="known-issues-roadmap">
<h1><a class="toc-backref" href="#toc-entry-2">Known issues / Roadmap</a></h1>
<p>This module is aimed to deprecate website_crm_privacy_policy and modules similar to this
one.</p>
<p>This module is aimed to deprecate website_crm_privacy_policy and modules
similar to this one.</p>
</div>
<div class="section" id="bug-tracker">
<h1><a class="toc-backref" href="#toc-entry-3">Bug Tracker</a></h1>
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/website/issues">GitHub Issues</a>.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us to smash it by providing a detailed and welcomed
<a class="reference external" href="https://github.com/OCA/website/issues/new?body=module:%20website_form_require_legal%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
<a class="reference external" href="https://github.com/OCA/website/issues/new?body=module:%20website_form_require_legal%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
<p>Do not contact contributors directly about support or help with technical issues.</p>
</div>
<div class="section" id="credits">
Expand All @@ -435,7 +437,7 @@ <h2><a class="toc-backref" href="#toc-entry-7">Maintainers</a></h2>
<p>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.</p>
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/website/tree/16.0/website_form_require_legal">OCA/website</a> project on GitHub.</p>
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/website/tree/17.0/website_form_require_legal">OCA/website</a> project on GitHub.</p>
<p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p>
</div>
</div>
Expand Down

0 comments on commit 2735663

Please sign in to comment.