diff --git a/website_event_thin_list/README.rst b/website_event_thin_list/README.rst new file mode 100644 index 000000000..0e6ed5ef4 --- /dev/null +++ b/website_event_thin_list/README.rst @@ -0,0 +1,63 @@ +======================= +Website Event Thin List +======================= + +.. + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! source digest: sha256:29d38dd8927e3117061e627e2bce5ff2283ba769072e94141c635e13240c8b9d + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |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-AGPL--3-blue.png + :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html + :alt: License: AGPL-3 +.. |badge3| image:: https://img.shields.io/badge/github-NuoBiT%2Fodoo--addons-lightgray.png?logo=github + :target: https://github.com/NuoBiT/odoo-addons/tree/18.0/website_event_thin_list + :alt: NuoBiT/odoo-addons + +|badge1| |badge2| |badge3| + +This module adds a thin list layout option for website events + +**Table of contents** + +.. contents:: + :local: + +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 +------- + +* NuoBiT Solutions SL + +Contributors +------------ + +- `NuoBiT `__: + + - Bijaya Kumal bkumal@nuobit.com + - Deniz Gallo dgallo@nuobit.com + +Maintainers +----------- + +This module is part of the `NuoBiT/odoo-addons `_ project on GitHub. + +You are welcome to contribute. diff --git a/website_event_thin_list/__init__.py b/website_event_thin_list/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/website_event_thin_list/__manifest__.py b/website_event_thin_list/__manifest__.py new file mode 100644 index 000000000..b6ed0aaae --- /dev/null +++ b/website_event_thin_list/__manifest__.py @@ -0,0 +1,25 @@ +# Copyright 2025 NuoBiT Solutions SL - Bijaya Kumal +# Copyright 2026 NuoBiT Solutions SL - Deniz Gallo +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). + +{ + "name": "Website Event Thin List", + "version": "18.0.1.0.0", + "category": "Website/Website", + "summary": "Adds a thin list layout option for website events", + "author": "NuoBiT Solutions SL", + "website": "https://github.com/NuoBiT/odoo-addons", + "license": "AGPL-3", + "depends": [ + "website_event", + ], + "data": [ + "views/event_templates_list.xml", + "views/snippets.xml", + ], + "assets": { + "web.assets_frontend": [ + "website_event_thin_list/static/src/scss/event_template_list.scss", + ], + }, +} diff --git a/website_event_thin_list/pyproject.toml b/website_event_thin_list/pyproject.toml new file mode 100644 index 000000000..4231d0ccc --- /dev/null +++ b/website_event_thin_list/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["whool"] +build-backend = "whool.buildapi" diff --git a/website_event_thin_list/readme/CONTRIBUTORS.md b/website_event_thin_list/readme/CONTRIBUTORS.md new file mode 100644 index 000000000..23d6574f0 --- /dev/null +++ b/website_event_thin_list/readme/CONTRIBUTORS.md @@ -0,0 +1,3 @@ +- [NuoBiT](https://www.nuobit.com): + - Bijaya Kumal + - Deniz Gallo diff --git a/website_event_thin_list/readme/DESCRIPTION.md b/website_event_thin_list/readme/DESCRIPTION.md new file mode 100644 index 000000000..27e7c8d6d --- /dev/null +++ b/website_event_thin_list/readme/DESCRIPTION.md @@ -0,0 +1 @@ +This module adds a thin list layout option for website events diff --git a/website_event_thin_list/static/description/icon.png b/website_event_thin_list/static/description/icon.png new file mode 100644 index 000000000..1cd641e79 Binary files /dev/null and b/website_event_thin_list/static/description/icon.png differ diff --git a/website_event_thin_list/static/description/index.html b/website_event_thin_list/static/description/index.html new file mode 100644 index 000000000..222be55ff --- /dev/null +++ b/website_event_thin_list/static/description/index.html @@ -0,0 +1,420 @@ + + + + + +Website Event Thin List + + + +
+

Website Event Thin List

+ + +

Beta License: AGPL-3 NuoBiT/odoo-addons

+

This module adds a thin list layout option for website events

+

Table of contents

+ +
+

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

+
    +
  • NuoBiT Solutions SL
  • +
+
+
+

Contributors

+ +
+
+

Maintainers

+

This module is part of the NuoBiT/odoo-addons project on GitHub.

+

You are welcome to contribute.

+
+
+
+ + diff --git a/website_event_thin_list/static/src/scss/event_template_list.scss b/website_event_thin_list/static/src/scss/event_template_list.scss new file mode 100644 index 000000000..54a92c283 --- /dev/null +++ b/website_event_thin_list/static/src/scss/event_template_list.scss @@ -0,0 +1,98 @@ +// Copyright 2025 NuoBiT - Bijaya Kumal +// License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). + +.o_event_thinlist_card { + // On mobile: switch to vertical layout like Grid/List + @media (max-width: 575.98px) { + flex-direction: column !important; + align-items: stretch !important; + padding: 0 !important; + } +} + +// Image wrapper - responsive like Grid/List +.o_event_thinlist_imgwrap { + width: 160px; + height: 60px; + display: flex; + align-items: center; + justify-content: center; + + @media (max-width: 575.98px) { + width: 100%; + height: 200px; + margin-right: 0; + margin-bottom: 0; + border-radius: 0; + order: -1; // Put image first + } +} + +.o_event_thinlist_img { + width: 160px; + height: 60px; + object-fit: cover; + border-radius: 0.375rem; + + @media (max-width: 575.98px) { + width: 100%; + height: 200px; + border-radius: 0; + } +} + +// Content area - responsive +.o_event_thinlist_content { + @media (max-width: 575.98px) { + margin-right: 0 !important; + padding: 1.25rem; + text-align: left; + } +} + +.o_event_thinlist_title { + @media (max-width: 575.98px) { + font-size: 1.25rem; + margin-top: 0.5rem; + } +} + +.o_event_thinlist_datetime, +.o_event_thinlist_location { + @media (max-width: 575.98px) { + font-size: 1rem; + margin-bottom: 0.5rem; + } +} + +.o_event_thinlist_actions { + @media (max-width: 575.98px) { + padding: 0 1.25rem 1.25rem; + display: flex; + justify-content: space-between; + align-items: center; + } +} + +.o_event_thinlist_seats { + font-size: 1.2rem; + + @media (max-width: 575.98px) { + font-size: 1.1rem; + } +} + +.o_event_thinlist_available { + font-size: 0.85rem; + + @media (max-width: 575.98px) { + font-size: 0.8rem; + } +} + +.o_event_thinlist_button { + @media (max-width: 575.98px) { + font-size: 1rem; + padding: 0.5rem 1rem; + } +} diff --git a/website_event_thin_list/views/event_templates_list.xml b/website_event_thin_list/views/event_templates_list.xml new file mode 100644 index 000000000..2089083fb --- /dev/null +++ b/website_event_thin_list/views/event_templates_list.xml @@ -0,0 +1,148 @@ + + + + + +