diff --git a/website_event_require_login_itpp/README.rst b/website_event_require_login_itpp/README.rst new file mode 100644 index 0000000..4442819 --- /dev/null +++ b/website_event_require_login_itpp/README.rst @@ -0,0 +1,92 @@ +======================== +No tickets without Email +======================== + +.. + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! source digest: sha256:0e53ce0bc6aaed4335ccd5879ff1bc2b74c8373d11bc3ea47936805ebd10e292 + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png + :target: https://odoo-community.org/page/development-status + :alt: Beta +.. |badge2| image:: https://img.shields.io/badge/licence-LGPL--3-blue.png + :target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html + :alt: License: LGPL-3 +.. |badge3| image:: https://img.shields.io/badge/github-it--projects--llc%2Fwebsite--addons-lightgray.png?logo=github + :target: https://github.com/it-projects-llc/website-addons/tree/14.0/website_event_require_login_itpp + :alt: it-projects-llc/website-addons + +|badge1| |badge2| |badge3| + +The module updates ``/event/EVENT-ID/register`` page when user is not +authenticated: + +- button ``[Register Now]`` (``[Order Now]`` if ``website_event_sale`` + is installed) is renamed to ``[Sign in (Sign up) to proceed]`` and + opens ``/web/login`` page +- quantity selectors are disabled + +**Table of contents** + +.. contents:: + :local: + +Usage +===== + +- Open page ``/event`` as non-authenticated user + +- Select some Event + +- RESULT: + + - button button ``[Register Now]`` (``[Order Now]`` if + ``website_event_sale`` is installed) is renamed to ask for sign in + / sign up + - quantity selectors are disabled + +- Click the button + +- RESULT: it opens login page + +- sign in or sign up + +- RESULT: you are redirect back to event page and now you can order the + tickets + +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 to smash it by providing a detailed and welcomed +`feedback `_. + +Do not contact contributors directly about support or help with technical issues. + +Credits +======= + +Authors +------- + +* IT-Projects LLC + +Contributors +------------ + +- Ivan Yelizariev (https://github.com/yelizariev) +- Artem Rafailov (https://github.com/Ommo73) +- Eugene Molotov (https://github.com/em230418) +- Victor Bykov (https://github.com/BykovVik) + +Maintainers +----------- + +This module is part of the `it-projects-llc/website-addons `_ project on GitHub. + +You are welcome to contribute. diff --git a/website_event_require_login_itpp/__init__.py b/website_event_require_login_itpp/__init__.py new file mode 100644 index 0000000..e046e49 --- /dev/null +++ b/website_event_require_login_itpp/__init__.py @@ -0,0 +1 @@ +from . import controllers diff --git a/website_event_require_login_itpp/__manifest__.py b/website_event_require_login_itpp/__manifest__.py new file mode 100644 index 0000000..18138ea --- /dev/null +++ b/website_event_require_login_itpp/__manifest__.py @@ -0,0 +1,16 @@ +{ + "name": """No tickets without Email""", + "summary": """User registration at your portal is always a plus for marketing""", + "category": "Marketing", + "images": ["images/banner.jpg"], + "version": "14.0.1.0.0", + "application": False, + "author": "IT-Projects LLC", + "support": "apps@it-projects.info", + "website": "https://github.com/it-projects-llc/website-addons", + "license": "LGPL-3", + "depends": ["website_event"], + "data": ["views/website_event_sale_templates.xml"], + "qweb": [], + "demo": [], +} diff --git a/website_event_require_login_itpp/controllers/__init__.py b/website_event_require_login_itpp/controllers/__init__.py new file mode 100644 index 0000000..12a7e52 --- /dev/null +++ b/website_event_require_login_itpp/controllers/__init__.py @@ -0,0 +1 @@ +from . import main diff --git a/website_event_require_login_itpp/controllers/main.py b/website_event_require_login_itpp/controllers/main.py new file mode 100644 index 0000000..e69de29 diff --git a/website_event_require_login_itpp/images/banner.jpg b/website_event_require_login_itpp/images/banner.jpg new file mode 100644 index 0000000..bc04fec Binary files /dev/null and b/website_event_require_login_itpp/images/banner.jpg differ diff --git a/website_event_require_login_itpp/pyproject.toml b/website_event_require_login_itpp/pyproject.toml new file mode 100644 index 0000000..4231d0c --- /dev/null +++ b/website_event_require_login_itpp/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["whool"] +build-backend = "whool.buildapi" diff --git a/website_event_require_login_itpp/readme/CONTRIBUTORS.md b/website_event_require_login_itpp/readme/CONTRIBUTORS.md new file mode 100644 index 0000000..2a8fd8d --- /dev/null +++ b/website_event_require_login_itpp/readme/CONTRIBUTORS.md @@ -0,0 +1,4 @@ +- Ivan Yelizariev (https://github.com/yelizariev) +- Artem Rafailov (https://github.com/Ommo73) +- Eugene Molotov (https://github.com/em230418) +- Victor Bykov (https://github.com/BykovVik) diff --git a/website_event_require_login_itpp/readme/DESCRIPTION.md b/website_event_require_login_itpp/readme/DESCRIPTION.md new file mode 100644 index 0000000..85cde61 --- /dev/null +++ b/website_event_require_login_itpp/readme/DESCRIPTION.md @@ -0,0 +1,4 @@ +The module updates `/event/EVENT-ID/register` page when user is not authenticated: + +* button `[Register Now]` (`[Order Now]` if `website_event_sale` is installed) is renamed to `[Sign in (Sign up) to proceed]` and opens `/web/login` page +* quantity selectors are disabled diff --git a/website_event_require_login_itpp/readme/USAGE.md b/website_event_require_login_itpp/readme/USAGE.md new file mode 100644 index 0000000..18bb8f9 --- /dev/null +++ b/website_event_require_login_itpp/readme/USAGE.md @@ -0,0 +1,11 @@ +* Open page `/event` as non-authenticated user +* Select some Event +* RESULT: + + * button button `[Register Now]` (`[Order Now]` if `website_event_sale` is installed) is renamed to ask for sign in / sign up + * quantity selectors are disabled + +* Click the button +* RESULT: it opens login page +* sign in or sign up +* RESULT: you are redirect back to event page and now you can order the tickets diff --git a/website_event_require_login_itpp/static/description/index.html b/website_event_require_login_itpp/static/description/index.html new file mode 100644 index 0000000..4b354a3 --- /dev/null +++ b/website_event_require_login_itpp/static/description/index.html @@ -0,0 +1,446 @@ + + + + + +No tickets without Email + + + +
+

No tickets without Email

+ + +

Beta License: LGPL-3 it-projects-llc/website-addons

+

The module updates /event/EVENT-ID/register page when user is not +authenticated:

+
    +
  • button [Register Now] ([Order Now] if website_event_sale +is installed) is renamed to [Sign in (Sign up) to proceed] and +opens /web/login page
  • +
  • quantity selectors are disabled
  • +
+

Table of contents

+ +
+

Usage

+
    +
  • Open page /event as non-authenticated user
  • +
  • Select some Event
  • +
  • RESULT:
      +
    • button button [Register Now] ([Order Now] if +website_event_sale is installed) is renamed to ask for sign in +/ sign up
    • +
    • quantity selectors are disabled
    • +
    +
  • +
  • Click the button
  • +
  • RESULT: it opens login page
  • +
  • sign in or sign up
  • +
  • RESULT: you are redirect back to event page and now you can order the +tickets
  • +
+
+
+

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 to smash it by providing a detailed and welcomed +feedback.

+

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

+
+
+

Credits

+
+

Authors

+
    +
  • IT-Projects LLC
  • +
+
+
+

Contributors

+ +
+
+

Maintainers

+

This module is part of the it-projects-llc/website-addons project on GitHub.

+

You are welcome to contribute.

+
+
+
+ + diff --git a/website_event_require_login_itpp/views/website_event_sale_templates.xml b/website_event_require_login_itpp/views/website_event_sale_templates.xml new file mode 100644 index 0000000..4dc550d --- /dev/null +++ b/website_event_require_login_itpp/views/website_event_sale_templates.xml @@ -0,0 +1,54 @@ + + + +