Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ADD] website_event_require_login_itpp #8

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
92 changes: 92 additions & 0 deletions website_event_require_login_itpp/README.rst
Original file line number Diff line number Diff line change
@@ -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 <https://github.com/it-projects-llc/website-addons/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/it-projects-llc/website-addons/issues/new?body=module:%20website_event_require_login_itpp%0Aversion:%2014.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
-------

* 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 <https://github.com/it-projects-llc/website-addons/tree/14.0/website_event_require_login_itpp>`_ project on GitHub.

You are welcome to contribute.
1 change: 1 addition & 0 deletions website_event_require_login_itpp/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import controllers
16 changes: 16 additions & 0 deletions website_event_require_login_itpp/__manifest__.py
Original file line number Diff line number Diff line change
@@ -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": "[email protected]",
"website": "https://github.com/it-projects-llc/website-addons",
"license": "LGPL-3",
"depends": ["website_event"],
"data": ["views/website_event_sale_templates.xml"],
"qweb": [],
"demo": [],
}
1 change: 1 addition & 0 deletions website_event_require_login_itpp/controllers/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import main
Empty file.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions website_event_require_login_itpp/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[build-system]
requires = ["whool"]
build-backend = "whool.buildapi"
4 changes: 4 additions & 0 deletions website_event_require_login_itpp/readme/CONTRIBUTORS.md
Original file line number Diff line number Diff line change
@@ -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)
4 changes: 4 additions & 0 deletions website_event_require_login_itpp/readme/DESCRIPTION.md
Original file line number Diff line number Diff line change
@@ -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
11 changes: 11 additions & 0 deletions website_event_require_login_itpp/readme/USAGE.md
Original file line number Diff line number Diff line change
@@ -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
Loading
Loading