@ -0,0 +1,51 @@ |
|||||
|
.. image:: https://img.shields.io/badge/license-AGPL--3-blue.svg |
||||
|
:target: https://www.gnu.org/licenses/agpl-3.0-standalone.html |
||||
|
:alt: License: AGPL-3 |
||||
|
|
||||
|
Website Event Calendar View |
||||
|
=========================== |
||||
|
This module allow to view the events in calendar and user can easily |
||||
|
navigate to event from calendar. |
||||
|
|
||||
|
Installation |
||||
|
============ |
||||
|
- www.odoo.com/documentation/18.0/setup/install.html |
||||
|
- Install our custom addon |
||||
|
|
||||
|
License |
||||
|
------- |
||||
|
GNU AFFERO GENERAL PUBLIC LICENSE v3.0 (AGPL-3) |
||||
|
(https://www.gnu.org/licenses/agpl-3.0-standalone.html) |
||||
|
|
||||
|
Company |
||||
|
------- |
||||
|
* `Cybrosys Techno Solutions <https://cybrosys.com/>`__ |
||||
|
|
||||
|
Credits |
||||
|
------- |
||||
|
* Developers : (V16) Renu M, |
||||
|
(V17) Busthana Shirin, |
||||
|
(V18) Busthana Shirin |
||||
|
* Contact: odoo@cybrosys.com |
||||
|
|
||||
|
Contacts |
||||
|
-------- |
||||
|
* Mail Contact : odoo@cybrosys.com |
||||
|
* Website : https://cybrosys.com |
||||
|
|
||||
|
Bug Tracker |
||||
|
----------- |
||||
|
Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. |
||||
|
|
||||
|
Maintainer |
||||
|
========== |
||||
|
.. image:: https://cybrosys.com/images/logo.png |
||||
|
:target: https://cybrosys.com |
||||
|
|
||||
|
This module is maintained by Cybrosys Technologies. |
||||
|
|
||||
|
For support and more information, please visit https://www.cybrosys.com |
||||
|
|
||||
|
Further information |
||||
|
=================== |
||||
|
HTML Description: `<static/description/index.html>`__ |
@ -0,0 +1,22 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
################################################################################ |
||||
|
# |
||||
|
# Cybrosys Technologies Pvt. Ltd. |
||||
|
# |
||||
|
# Copyright (C) 2025-TODAY Cybrosys Technologies(<https://www.cybrosys.com>). |
||||
|
# Author: Cybrosys Techno Solutions (Contact : odoo@cybrosys.com) |
||||
|
# |
||||
|
# You can modify it under the terms of the GNU AFFERO |
||||
|
# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. |
||||
|
# |
||||
|
# 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 (AGPL v3) for more details. |
||||
|
# |
||||
|
# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE |
||||
|
# (AGPL v3) along with this program. |
||||
|
# If not, see <http://www.gnu.org/licenses/>. |
||||
|
################################################################################ |
||||
|
from . import models |
||||
|
from . import controllers |
@ -0,0 +1,49 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
################################################################################ |
||||
|
# |
||||
|
# Cybrosys Technologies Pvt. Ltd. |
||||
|
# |
||||
|
# Copyright (C) 2025-TODAY Cybrosys Technologies(<https://www.cybrosys.com>). |
||||
|
# Author: Cybrosys Techno Solutions (Contact : odoo@cybrosys.com) |
||||
|
# |
||||
|
# You can modify it under the terms of the GNU AFFERO |
||||
|
# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. |
||||
|
# |
||||
|
# 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 (AGPL v3) for more details. |
||||
|
# |
||||
|
# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE |
||||
|
# (AGPL v3) along with this program. |
||||
|
# If not, see <http://www.gnu.org/licenses/>. |
||||
|
################################################################################ |
||||
|
{ |
||||
|
'name': 'Website Event Calendar View', |
||||
|
'version': '18.0.1.0.0', |
||||
|
'category': 'Website', |
||||
|
'summary': 'Website Calendar View for Event in Odoo 17', |
||||
|
'description': 'This module helps you make calender view of events in ' |
||||
|
'website.Hence we can easily navigate to the event ' |
||||
|
'through the calendar', |
||||
|
'author': 'Cybrosys Techno Solutions', |
||||
|
'company': 'Cybrosys Techno Solutions', |
||||
|
'maintainer': 'Cybrosys Techno Solutions', |
||||
|
'website': 'https://www.cybrosys.com', |
||||
|
'depends': ['web','website_event'], |
||||
|
'data': [ |
||||
|
'views/event_templates.xml', |
||||
|
], |
||||
|
'assets': { |
||||
|
'web.assets_frontend': [ |
||||
|
'web_events_calendar_view/static/src/css/calender.css', |
||||
|
'web_events_calendar_view/static/src/js/CalendarView.js', |
||||
|
'web_events_calendar_view/static/src/xml/templates.xml', |
||||
|
], |
||||
|
}, |
||||
|
'images': ['static/description/banner.jpg'], |
||||
|
'license': 'AGPL-3', |
||||
|
'installable': True, |
||||
|
'auto_install': False, |
||||
|
'application': False, |
||||
|
} |
@ -0,0 +1,21 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
################################################################################ |
||||
|
# |
||||
|
# Cybrosys Technologies Pvt. Ltd. |
||||
|
# |
||||
|
# Copyright (C) 2025-TODAY Cybrosys Technologies(<https://www.cybrosys.com>). |
||||
|
# Author: Cybrosys Techno Solutions (Contact : odoo@cybrosys.com) |
||||
|
# |
||||
|
# You can modify it under the terms of the GNU AFFERO |
||||
|
# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. |
||||
|
# |
||||
|
# 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 (AGPL v3) for more details. |
||||
|
# |
||||
|
# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE |
||||
|
# (AGPL v3) along with this program. |
||||
|
# If not, see <http://www.gnu.org/licenses/>. |
||||
|
################################################################################ |
||||
|
from . import web_events_calendar_view |
@ -0,0 +1,111 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
################################################################################ |
||||
|
# |
||||
|
# Cybrosys Technologies Pvt. Ltd. |
||||
|
# |
||||
|
# Copyright (C) 2025-TODAY Cybrosys Technologies(<https://www.cybrosys.com>). |
||||
|
# Author: Cybrosys Techno Solutions (Contact : odoo@cybrosys.com) |
||||
|
# |
||||
|
# You can modify it under the terms of the GNU AFFERO |
||||
|
# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. |
||||
|
# |
||||
|
# 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 (AGPL v3) for more details. |
||||
|
# |
||||
|
# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE |
||||
|
# (AGPL v3) along with this program. |
||||
|
# If not, see <http://www.gnu.org/licenses/>. |
||||
|
################################################################################ |
||||
|
from datetime import date, timedelta |
||||
|
from odoo import http |
||||
|
from odoo.fields import Date |
||||
|
from odoo.http import request |
||||
|
|
||||
|
|
||||
|
class EventCalendar(http.Controller): |
||||
|
@http.route("/web_events_calendar_view/days_with_events", |
||||
|
auth="public", type="json", website=True) |
||||
|
def days_with_events(self, start, end): |
||||
|
"""Day with any events. |
||||
|
|
||||
|
start: |
||||
|
Search events from that date. |
||||
|
|
||||
|
end: |
||||
|
Search events until that date. |
||||
|
""" |
||||
|
events = request.env["event.event"].search([ |
||||
|
"|", |
||||
|
("date_begin", "<=", end), |
||||
|
("date_end", ">=", start), |
||||
|
]) |
||||
|
days = set() |
||||
|
one_day = timedelta(days=1) |
||||
|
start = Date.from_string(start) |
||||
|
end = Date.from_string(end) |
||||
|
for event in events: |
||||
|
now = max(Date.from_string(event.date_begin), start) |
||||
|
event_end = min(Date.from_string(event.date_end), end) |
||||
|
while now <= event_end: |
||||
|
days.add(now) |
||||
|
now += one_day |
||||
|
return [Date.to_string(day) for day in days] |
||||
|
|
||||
|
@http.route("/web_events_calendar_view/events_for_day", |
||||
|
auth="public", type="json", website=True) |
||||
|
def events_for_day(self, day=None, limit=None): |
||||
|
"""Day wise list of events. |
||||
|
|
||||
|
day: |
||||
|
Date in a string. If ``None``, we'll search for upcoming events |
||||
|
from today up to specified limit. |
||||
|
|
||||
|
limit: |
||||
|
How many results to return. |
||||
|
""" |
||||
|
ref = day or Date.to_string(date.today()) |
||||
|
domain = [ |
||||
|
("date_end", ">=", ref), |
||||
|
] |
||||
|
if day: |
||||
|
domain.append(("date_begin", "<=", ref)) |
||||
|
return request.env["event.event"].search_read( |
||||
|
domain=domain, |
||||
|
limit=limit, |
||||
|
fields=[ |
||||
|
"date_begin_pred_located", |
||||
|
"name", |
||||
|
"event_type_id", |
||||
|
"website_published", |
||||
|
"website_url", |
||||
|
], |
||||
|
) |
||||
|
|
||||
|
@http.route('/web_events_calendar_view/events', auth='public', type='json', website=True) |
||||
|
def get_events(self): |
||||
|
# Fetch events from the calendar.event model |
||||
|
ref = Date.to_string(date.today()) |
||||
|
events = request.env['event.event'].sudo().search([("date_begin", ">=", ref)]) |
||||
|
|
||||
|
# Create a list of event dictionaries |
||||
|
event_data = [] |
||||
|
for event in events: |
||||
|
event_dict = { |
||||
|
'title': event.name, |
||||
|
'start': event.date_begin.strftime('%Y-%m-%d'), |
||||
|
'display': 'background' |
||||
|
|
||||
|
} |
||||
|
if event.date_end: # Check if the event has an end date |
||||
|
event_dict['end'] = event.date_end.strftime( |
||||
|
'%Y-%m-%d') # Format the end datetime as 'YYYY-MM-DD' |
||||
|
event_data.append(event_dict) |
||||
|
return event_data |
||||
|
|
||||
|
@http.route(['/calendar_events'], type='http', auth="public", |
||||
|
website=True) |
||||
|
def calendar_events(self): |
||||
|
return request.render( |
||||
|
"web_events_calendar_view.global_events_calendar") |
@ -0,0 +1,7 @@ |
|||||
|
## Module <web_events_calendar_view> |
||||
|
|
||||
|
#### 15.01.2025 |
||||
|
#### Version 18.0.1.0.0 |
||||
|
#### ADD |
||||
|
|
||||
|
- Initial commit for Website Event Calendar View |
@ -0,0 +1,21 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
################################################################################ |
||||
|
# |
||||
|
# Cybrosys Technologies Pvt. Ltd. |
||||
|
# |
||||
|
# Copyright (C) 2025-TODAY Cybrosys Technologies(<https://www.cybrosys.com>). |
||||
|
# Author: Cybrosys Techno Solutions (Contact : odoo@cybrosys.com) |
||||
|
# |
||||
|
# You can modify it under the terms of the GNU AFFERO |
||||
|
# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. |
||||
|
# |
||||
|
# 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 (AGPL v3) for more details. |
||||
|
# |
||||
|
# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE |
||||
|
# (AGPL v3) along with this program. |
||||
|
# If not, see <http://www.gnu.org/licenses/>. |
||||
|
################################################################################ |
||||
|
from . import event |
@ -0,0 +1,41 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
################################################################################ |
||||
|
# |
||||
|
# Cybrosys Technologies Pvt. Ltd. |
||||
|
# |
||||
|
# Copyright (C) 2025-TODAY Cybrosys Technologies(<https://www.cybrosys.com>). |
||||
|
# Author: Cybrosys Techno Solutions (Contact : odoo@cybrosys.com) |
||||
|
# |
||||
|
# You can modify it under the terms of the GNU AFFERO |
||||
|
# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. |
||||
|
# |
||||
|
# 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 (AGPL v3) for more details. |
||||
|
# |
||||
|
# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE |
||||
|
# (AGPL v3) along with this program. |
||||
|
# If not, see <http://www.gnu.org/licenses/>. |
||||
|
################################################################################ |
||||
|
from odoo import api, fields, models |
||||
|
from odoo.tools import format_datetime |
||||
|
|
||||
|
|
||||
|
class EventEvent(models.Model): |
||||
|
_inherit = 'event.event' |
||||
|
"""events class""" |
||||
|
|
||||
|
date_begin_pred_located = fields.Char( |
||||
|
compute='_compute_date_begin_pred_located', |
||||
|
store=True, |
||||
|
) |
||||
|
|
||||
|
@api.depends('date_begin', 'date_tz') |
||||
|
def _compute_date_begin_pred_located(self): |
||||
|
for record in self: |
||||
|
record.date_begin_pred_located = format_datetime( |
||||
|
self.env, |
||||
|
record.date_begin, |
||||
|
tz=record.date_tz, |
||||
|
dt_format='medium') |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 210 KiB |
After Width: | Height: | Size: 209 KiB |
After Width: | Height: | Size: 109 KiB |
After Width: | Height: | Size: 495 B |
After Width: | Height: | Size: 1.0 KiB |
After Width: | Height: | Size: 624 B |
After Width: | Height: | Size: 136 KiB |
After Width: | Height: | Size: 214 KiB |
After Width: | Height: | Size: 36 KiB |
After Width: | Height: | Size: 3.6 KiB |
After Width: | Height: | Size: 310 B |
After Width: | Height: | Size: 929 B |
After Width: | Height: | Size: 1.3 KiB |
After Width: | Height: | Size: 3.3 KiB |
After Width: | Height: | Size: 1.4 KiB |
After Width: | Height: | Size: 17 KiB |
After Width: | Height: | Size: 542 B |
After Width: | Height: | Size: 576 B |
After Width: | Height: | Size: 733 B |
After Width: | Height: | Size: 4.3 KiB |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 4.0 KiB |
After Width: | Height: | Size: 1.7 KiB |
After Width: | Height: | Size: 738 KiB |
After Width: | Height: | Size: 2.2 KiB |
After Width: | Height: | Size: 911 B |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 600 B |
After Width: | Height: | Size: 673 B |
After Width: | Height: | Size: 2.0 KiB |
After Width: | Height: | Size: 462 B |
After Width: | Height: | Size: 2.1 KiB |
After Width: | Height: | Size: 926 B |
After Width: | Height: | Size: 9.0 KiB |
After Width: | Height: | Size: 23 KiB |
After Width: | Height: | Size: 7.0 KiB |
After Width: | Height: | Size: 878 B |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 653 B |
After Width: | Height: | Size: 800 B |
After Width: | Height: | Size: 905 B |
After Width: | Height: | Size: 189 KiB |
After Width: | Height: | Size: 4.3 KiB |
After Width: | Height: | Size: 839 B |
After Width: | Height: | Size: 1.7 KiB |
After Width: | Height: | Size: 5.9 KiB |
After Width: | Height: | Size: 1.6 KiB |
After Width: | Height: | Size: 34 KiB |
After Width: | Height: | Size: 26 KiB |
After Width: | Height: | Size: 3.8 KiB |
After Width: | Height: | Size: 23 KiB |
After Width: | Height: | Size: 1.9 KiB |
After Width: | Height: | Size: 2.3 KiB |
After Width: | Height: | Size: 427 B |
After Width: | Height: | Size: 627 B |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 988 B |
After Width: | Height: | Size: 3.7 KiB |
After Width: | Height: | Size: 5.0 KiB |
After Width: | Height: | Size: 875 B |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 912 KiB |
After Width: | Height: | Size: 1.3 MiB |
After Width: | Height: | Size: 46 KiB |
After Width: | Height: | Size: 44 KiB |
After Width: | Height: | Size: 46 KiB |
After Width: | Height: | Size: 85 KiB |
After Width: | Height: | Size: 113 KiB |
After Width: | Height: | Size: 113 KiB |
After Width: | Height: | Size: 96 KiB |
After Width: | Height: | Size: 113 KiB |
After Width: | Height: | Size: 135 KiB |
After Width: | Height: | Size: 137 KiB |
After Width: | Height: | Size: 8.4 KiB |
@ -0,0 +1,957 @@ |
|||||
|
<!DOCTYPE html> |
||||
|
<html lang="en"> |
||||
|
<head> |
||||
|
<meta charset="UTF-8"/> |
||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0"/> |
||||
|
<title>Website Event Calendar View</title> |
||||
|
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" |
||||
|
rel="stylesheet"/> |
||||
|
<link rel="preconnect" href="https://fonts.googleapis.com"> |
||||
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> |
||||
|
<link href="https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap" |
||||
|
rel="stylesheet"> |
||||
|
<link rel="stylesheet" |
||||
|
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.6.0/css/all.min.css"/> |
||||
|
<link rel="stylesheet" |
||||
|
href="https://cdnjs.cloudflare.com/ajax/libs/OwlCarousel2/2.3.4/assets/owl.carousel.min.css"/> |
||||
|
<style> |
||||
|
:root { |
||||
|
--primary-color: #7f54b3; |
||||
|
--bg-white: #fff; |
||||
|
--text-color: #121212; |
||||
|
--text-color-light: #64728f; |
||||
|
} |
||||
|
|
||||
|
body { |
||||
|
font-family: "Montserrat", sans-serif; |
||||
|
} |
||||
|
|
||||
|
.nav-tabs .nav-item.show .nav-link, .nav-tabs .nav-link.active { |
||||
|
color: #121212; |
||||
|
font-family: Montserrat; |
||||
|
font-size: 16px !important; |
||||
|
font-weight: 500 !important; |
||||
|
border-radius: 30px; |
||||
|
line-height: normal; |
||||
|
text-transform: capitalize; |
||||
|
background-color: #F5F5F5; |
||||
|
border: none; |
||||
|
margin-bottom: 0; |
||||
|
padding: 12px 24px; |
||||
|
} |
||||
|
|
||||
|
.nav-tabs .nav-link:focus, .nav-tabs .nav-link:hover { |
||||
|
border-color: transparent; |
||||
|
isolation: isolate; |
||||
|
} |
||||
|
|
||||
|
.nav-tabs .nav-link:focus-visible { |
||||
|
border-color: transparent; |
||||
|
box-shadow: none; |
||||
|
} |
||||
|
|
||||
|
/* owl-carosel */ |
||||
|
.owl-carousel .owl-nav { |
||||
|
position: absolute; |
||||
|
top: 42%; |
||||
|
width: 100%; |
||||
|
display: flex; |
||||
|
justify-content: space-between; |
||||
|
transform: translateY(-42%); |
||||
|
} |
||||
|
|
||||
|
.owl-carousel .owl-nav button.owl-prev { |
||||
|
position: absolute; |
||||
|
right: -36px; |
||||
|
font-size: 28px; |
||||
|
background-color: #e4e4e4; |
||||
|
border-radius: 20px; |
||||
|
width: 40px; |
||||
|
height: 40px; |
||||
|
display: flex; |
||||
|
justify-content: center; |
||||
|
align-items: center; |
||||
|
} |
||||
|
|
||||
|
.owl-carousel .owl-nav button.owl-next { |
||||
|
position: absolute; |
||||
|
left: -36px; |
||||
|
font-size: 28px; |
||||
|
background-color: #e4e4e4; |
||||
|
border-radius: 20px; |
||||
|
width: 40px; |
||||
|
height: 40px; |
||||
|
display: flex; |
||||
|
justify-content: center; |
||||
|
align-items: center; |
||||
|
|
||||
|
} |
||||
|
|
||||
|
</style> |
||||
|
</head> |
||||
|
<body> |
||||
|
<!-- overview --> |
||||
|
<div class="container"> |
||||
|
<div class="my-5"> |
||||
|
<!-- button tab --> |
||||
|
<!-- --> |
||||
|
<!-- version support --> |
||||
|
<div class="my-3 d-flex align-items-center justify-content-end"> |
||||
|
<div class="text-center" |
||||
|
style="background-color:#017E84 !important;font-size: 0.8rem !important; color:#fff !important; font-weight:500 !important; padding:4px !important; margin:0 3px !important; border-radius:50px !important; min-width: 120px !important;"> |
||||
|
Community |
||||
|
</div> |
||||
|
<div class="text-center" |
||||
|
style="background-color:#875A7B !important; color:#fff !important;font-size: 0.8rem !important; font-weight:500 !important; padding:4px !important; margin:0 3px !important; border-radius:50px !important;min-width: 120px !important;"> |
||||
|
Enterprise |
||||
|
</div> |
||||
|
<div class="text-center" |
||||
|
style="background-color:#7C7BAD !important; color:#fff !important;font-size: 0.8rem !important; font-weight:500 !important; padding:4px !important; margin:0 3px !important; border-radius:50px !important; min-width: 120px !important;"> |
||||
|
Odoo.sh |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="tab-content" id="myTabContent"> |
||||
|
<!-- description --> |
||||
|
<div class="tab-pane fade show active" id="home" role="tabpanel" |
||||
|
aria-labelledby="home-tab"> |
||||
|
<div class="position-relative" |
||||
|
style="border-radius: 16px; background: #f8f8f8; padding: 20px 0;"> |
||||
|
<div class="row " style=" |
||||
|
padding: 2rem 0rem 0 !important; |
||||
|
"> |
||||
|
<div class="col-lg-8 mx-auto gap-4 d-flex flex-column align-items-center"> |
||||
|
<p class="my-1 text-center text-uppercase" |
||||
|
style=" |
||||
|
letter-spacing: 4px !important; |
||||
|
color: #7f54b3; |
||||
|
font-weight: bold; |
||||
|
text-align: center; |
||||
|
font-size: 14px; |
||||
|
font-weight: 600; |
||||
|
line-height: 15.96px; |
||||
|
text-transform: uppercase; |
||||
|
"> |
||||
|
Navigate Events through Website Calendar. </p> |
||||
|
<h1 class="text-center text-uppercase my-0" |
||||
|
style=" |
||||
|
color: #121212; |
||||
|
font-size: 46px; |
||||
|
font-weight: 700; |
||||
|
line-height: normal; |
||||
|
">Website Event Calendar View |
||||
|
</h1> |
||||
|
</div> |
||||
|
<div class="col-lg-12 d-flex justify-content-center align-items-center" |
||||
|
style="margin: 3rem 0;"> |
||||
|
<img src="./assets/icons/brand-pair.svg" |
||||
|
width="100%" |
||||
|
height="auto" |
||||
|
style="width: 50%" |
||||
|
class="img-responsive"/> |
||||
|
</div> |
||||
|
<div class="col-md-12 text-center"> |
||||
|
<a href="mailto:odoo@cybrosys.com" |
||||
|
target="_blank" |
||||
|
style="background-color: transparent;border-radius: 35px; |
||||
|
font-family: Montserrat; |
||||
|
display: inline-block; |
||||
|
padding: 7px 33px; |
||||
|
border: 1px solid #7f54b3; |
||||
|
color: #7f54b3; |
||||
|
text-decoration: none; |
||||
|
" |
||||
|
class="mx-1 mb-2 deep-1 deep_hover"> |
||||
|
<img class="img" |
||||
|
style="width: 24px" |
||||
|
src="./assets/icons/mail.svg"/> |
||||
|
<span class="pl-2" |
||||
|
style=" font-size: 16px; vertical-align: middle" |
||||
|
>Email Us</span |
||||
|
> |
||||
|
</a> |
||||
|
<a href="skype:cybroopenerp?chat" |
||||
|
target="_blank" |
||||
|
style=" |
||||
|
background-color: #7f289b; |
||||
|
font-family: Montserrat; |
||||
|
display: inline-block; |
||||
|
padding: 7px 33px; |
||||
|
border: 1px solid #7f289b; |
||||
|
border-radius: 35px; |
||||
|
text-decoration: none; |
||||
|
" |
||||
|
class="mx-1 mb-2 deep-1 deep_hover"> |
||||
|
<img |
||||
|
class="img" |
||||
|
style="width: 24px" |
||||
|
src="./assets/icons/skype-fill.svg" |
||||
|
/> |
||||
|
<span |
||||
|
class="pl-2" |
||||
|
style="color: #fff; font-size: 16px; vertical-align: middle" |
||||
|
>Skype Us</span |
||||
|
> |
||||
|
</a> |
||||
|
</div> |
||||
|
<div class="d-flex justify-content-center mt-2"> |
||||
|
<img src="./assets/screenshots/hero.gif" |
||||
|
class="w-100" |
||||
|
style="z-index: 3; height: auto;"> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="position-absolute bottom-0" |
||||
|
style="z-index: 1; width: 100%;"> |
||||
|
<img src="./assets/icons/banner-bg.svg" |
||||
|
class="img-fluid w-100"> |
||||
|
</div> |
||||
|
<div class="position-absolute bottom-0 end-0" |
||||
|
style=" z-index: 2;"> |
||||
|
<img src="./assets/icons/patter.svg"> |
||||
|
</div> |
||||
|
</div> |
||||
|
<!-- <section class="oe_container pb-5">--> |
||||
|
<!-- <div class="mt64 mb64">--> |
||||
|
<!-- <div class="col-sm-12 py-4">--> |
||||
|
|
||||
|
<!-- <div class="alert alert-primary mt-4"--> |
||||
|
<!-- style="color: #000;background-color: #f8f8f8;border: 1px solid #dcdcdc;border-radius: 16px;">--> |
||||
|
<!-- <hr style="color: #888;">--> |
||||
|
<!-- This module uses some external python dependencies :--> |
||||
|
<!-- dropbox, nextcloud , nextcloud-api-wrapper , boto3 and paramiko. Before--> |
||||
|
<!-- installing the module install the python--> |
||||
|
<!-- package--> |
||||
|
<!-- first. The required python packages can be installed using the--> |
||||
|
<!-- following commands.--> |
||||
|
<!-- <br>--> |
||||
|
<!-- <code class="d-block mt-2"--> |
||||
|
<!-- style="background-color:#4e4e4e;color: #fff; border-radius: 5px; padding: 6px 8px;">pip--> |
||||
|
<!-- install dropbox</code>--> |
||||
|
<!-- <code class="d-block mt-2"--> |
||||
|
<!-- style="background-color:#4e4e4e;color: #fff;padding: 6px 8px; border-radius: 5px;">pip--> |
||||
|
<!-- install nextcloud</code>--> |
||||
|
<!-- <code class="d-block mt-2"--> |
||||
|
<!-- style="background-color:#4e4e4e;color: #fff;padding: 6px 8px; border-radius: 5px;">pip--> |
||||
|
<!-- install nextcloud-api-wrapper</code>--> |
||||
|
<!-- <code class="d-block mt-2"--> |
||||
|
<!-- style="background-color:#4e4e4e;color: #fff;padding: 6px 8px; border-radius: 5px;">pip--> |
||||
|
<!-- install boto3</code>--> |
||||
|
<!-- <code class="d-block mt-2"--> |
||||
|
<!-- style="background-color:#4e4e4e;color: #fff;padding: 6px 8px; border-radius: 5px;">pip--> |
||||
|
<!-- install paramiko</code>--> |
||||
|
<!-- </div>--> |
||||
|
<!-- </div>--> |
||||
|
<!-- </div>--> |
||||
|
<!-- </section>--> |
||||
|
<!-- key-highlight --> |
||||
|
<div class="" style="border-radius: 16px; |
||||
|
padding: 60px 40px; |
||||
|
border: 1px solid #EBEEF2; |
||||
|
background: #F5F5F7; |
||||
|
box-shadow: 0px 5px 20px -11px rgba(0, 0, 0, 0.25); "> |
||||
|
<div class="row"> |
||||
|
<div class="col-lg-12 d-flex flex-column justify-content-center align-items-center"> |
||||
|
<h2 style=" color: #121212; |
||||
|
text-align: center; |
||||
|
font-size: 40px; |
||||
|
font-weight: 700; |
||||
|
text-transform: uppercase; padding-bottom: 50px;">Key |
||||
|
Highlights</h2> |
||||
|
</div> |
||||
|
<div class="col-lg-4"> |
||||
|
<div class="mb-4 d-flex flex-column justify-content-center gap-3" |
||||
|
style="border-radius: 12px; border: 1px solid #B6BCCD; |
||||
|
background: #FFF;padding:32px "> |
||||
|
<div class="d-flex justify-content-center align-items-center" |
||||
|
style="background-color:#7847D9 !important; border-radius:8px !important; height:42px; width:42px"> |
||||
|
<img src="./assets/icons/feature-icon.svg" |
||||
|
class="img-responsive" height="26px" |
||||
|
width="26px"> |
||||
|
</div> |
||||
|
|
||||
|
<p style="color: #1A202C;font-weight: 600; |
||||
|
font-size: 1.2rem; margin-bottom: 2px;"> |
||||
|
Enterprise and Community compatible.</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col-lg-4"> |
||||
|
<div class="mb-4 d-flex flex-column justify-content-center gap-3" |
||||
|
style="border-radius: 12px; |
||||
|
border: 1px solid #B6BCCD; |
||||
|
background: #FFF;padding:32px "> |
||||
|
<div class="d-flex justify-content-center align-items-center" |
||||
|
style="background-color:#7847D9 !important; border-radius:8px !important; height:42px; width:42px"> |
||||
|
<img src="./assets/icons/feature-icon.svg" |
||||
|
class="img-responsive" height="26px" |
||||
|
width="26px"> |
||||
|
</div> |
||||
|
<p style="color: #1A202C;font-weight: 600; |
||||
|
font-size: 1.2rem; margin-bottom: 2px;"> |
||||
|
Able to recognise the event between a |
||||
|
certain |
||||
|
date on the calendar.</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col-lg-4"> |
||||
|
<div class="mb-4 d-flex flex-column justify-content-center gap-3" |
||||
|
style="border-radius: 12px; |
||||
|
border: 1px solid #B6BCCD; |
||||
|
background: #FFF;padding:32px "> |
||||
|
<div class="d-flex justify-content-center align-items-center" |
||||
|
style="background-color:#7847D9 !important; border-radius:8px !important; height:42px; width:42px"> |
||||
|
<img src="./assets/icons/feature-icon.svg" |
||||
|
class="img-responsive" height="26px" |
||||
|
width="26px"> |
||||
|
</div> |
||||
|
<p style="color: #1A202C;font-weight: 600; |
||||
|
font-size: 1.2rem; margin-bottom: 2px;"> |
||||
|
Easily discern the events which are |
||||
|
unpublished.</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col-lg-4"> |
||||
|
<div class="mb-4 d-flex flex-column justify-content-center gap-3" |
||||
|
style="border-radius: 12px; |
||||
|
border: 1px solid #B6BCCD; |
||||
|
background: #FFF;padding:32px "> |
||||
|
<div class="d-flex justify-content-center align-items-center" |
||||
|
style="background-color:#7847D9 !important; border-radius:8px !important; height:42px; width:42px"> |
||||
|
<img src="./assets/icons/feature-icon.svg" |
||||
|
class="img-responsive" height="26px" |
||||
|
width="26px"> |
||||
|
</div> |
||||
|
<p style="color: #1A202C;font-weight: 600; |
||||
|
font-size: 1.2rem; margin-bottom: 2px;"> |
||||
|
Can easily navigate to the event through |
||||
|
calendar list.</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<!--code --> |
||||
|
<div class="my-5"> |
||||
|
<div class="position-relative" |
||||
|
style=" padding: 5rem 4rem 5rem 4rem; background-color: #0A1425; border-radius: 12px;"> |
||||
|
<div class="d-flex flex-column gap-4"> |
||||
|
<span class="wrapper-subtitle" |
||||
|
style="font-size: 40px; font-weight: 700; color: #fff;line-height: 60px; text-transform: capitalize; width: 450px; font-family: Montserrat;">Website Event Calendar View</span> |
||||
|
<h3 class="wrapper-details" |
||||
|
style="font-size: 20px; font-weight: 400; color: #fff; line-height: 32px; "> |
||||
|
Are you ready to make your business more |
||||
|
organized? |
||||
|
<br> Improve now! |
||||
|
</h3> |
||||
|
<div class="d-flex gap-3"> |
||||
|
<a href="mailto:odoo@cybrosys.com" |
||||
|
class="shop-btn" style="cursor: pointer; border-radius: 16px; display: flex; justify-content: center; align-items: center; gap: 7px; |
||||
|
border: 1px solid #ffffff33; |
||||
|
background-color: #ffffff14; |
||||
|
backdrop-filter: blur(10px); color: #fff; padding: 12px 16px 12px 16px; text-decoration: none;"> |
||||
|
<span style="border-radius: 12px; |
||||
|
background-color: #ffffff1a; |
||||
|
backdrop-filter: blur(6px);padding: 12px; "> |
||||
|
<img src="./assets/icons/banner-mail.svg"> |
||||
|
</span> |
||||
|
<span style="font-weight: 500;font-family: Montserrat;">odoo@cybrosys.com</span> |
||||
|
</a> |
||||
|
<a href="tel:+91 9074270811" class="shop-btn" |
||||
|
style="cursor: pointer; border-radius: 16px; display: flex; justify-content: center; align-items: center; gap: 7px; |
||||
|
border: 1px solid #ffffff33; |
||||
|
background-color: #ffffff14; |
||||
|
backdrop-filter: blur(10px); color: #fff; padding: 12px 22px 12px 18px; text-decoration: none;"> |
||||
|
<span style="border-radius: 12px; |
||||
|
background-color: #ffffff1a; |
||||
|
backdrop-filter: blur(6px);padding: 12px;"> |
||||
|
<img src="./assets/icons/banner-call.svg"> |
||||
|
</span> |
||||
|
<span style="font-weight: 500;font-family: Montserrat;">+91 9074270811</span> |
||||
|
</a> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="position-absolute bottom-0 end-0"> |
||||
|
<img src="./assets/icons/banner-pattern.svg" |
||||
|
style="width: 540px;"> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<!-- end-code --> |
||||
|
<!-- --> |
||||
|
<!-- screenshot and other --> |
||||
|
|
||||
|
<div class="mb-4 bg-white" |
||||
|
style=" border: 1px solid #EBEEF2; border-radius: 6px; box-shadow: 0px 8px 20px -4px rgba(0, 0, 0, 0.10); border: 1px solid #EBEEF2;"> |
||||
|
<div> |
||||
|
<ul class="nav nav-tabs justify-content-center bg-white py-2" |
||||
|
id="myTab" role="tablist" |
||||
|
style="border-radius: 6px 6px 0 0;"> |
||||
|
<li class="nav-item"> |
||||
|
<a aria-controls="overview" |
||||
|
aria-bs-selected="true" |
||||
|
class="nav-link active" data-bs-toggle="tab" |
||||
|
href="#overview" id="overview-tab" role="tab" |
||||
|
style="color:#121212; font-weight:500; font-size:16px"> |
||||
|
Screenshots</a> |
||||
|
</li> |
||||
|
<li class="nav-item"> |
||||
|
<a aria-controls="feature" |
||||
|
aria-bs-selected="false" |
||||
|
class="nav-link py-2" data-bs-toggle="tab" |
||||
|
href="#feature" id="feature-tab" role="tab" |
||||
|
style="color:#121212; font-weight:500; font-size:16px">Features</a> |
||||
|
</li> |
||||
|
<li class="nav-item"> |
||||
|
<a aria-controls="releases" |
||||
|
aria-bs-selected="false" class="nav-link" |
||||
|
data-bs-toggle="tab" href="#releases" |
||||
|
id="releases-tab" role="tab" |
||||
|
style="color:#121212; font-weight:500; font-size:16px">Releases</a> |
||||
|
</li> |
||||
|
</ul> |
||||
|
</div> |
||||
|
<div class="tab-content p-md-5 p-2 py-3" id="myTabContent"> |
||||
|
<div aria-labelledby="overview-tab" |
||||
|
class="tab-pane fade show active" id="overview" |
||||
|
role="tabpanel"> |
||||
|
<div class="position-relative mb-4" |
||||
|
style="border-radius:10px"> |
||||
|
<img alt="acc_bg" |
||||
|
class="w-100 h-100 position-absolute img-fluid left_0" |
||||
|
loading="lazy" |
||||
|
src="//apps.odoocdn.com/apps/assets/17.0/ks_dashboard_ninja/ai-img/o3.png?007008f" |
||||
|
style=""> |
||||
|
</div> |
||||
|
<!-- screenshots section--> |
||||
|
<div class="position-relative mb-4" |
||||
|
style="border-radius:10px; background-color:#f4f4f4"> |
||||
|
<div class="p-md-5 p-3 position-relative"> |
||||
|
<div class="row"> |
||||
|
<div class="col-md-12 mb-4"> |
||||
|
<h3 |
||||
|
style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;"> |
||||
|
Event Calendar menu in Website |
||||
|
</h3> |
||||
|
<p |
||||
|
style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;"> |
||||
|
User can view all events from |
||||
|
this menu |
||||
|
Events Calendar.</p> |
||||
|
</div> |
||||
|
<div class="col-md-12 text-center"> |
||||
|
<div class="d-inline-block p-3 shadow-sm" |
||||
|
style="background-color:#fff; border-radius:10px"> |
||||
|
<img alt="" class="img-fluid" |
||||
|
loading="lazy" |
||||
|
src="./assets/screenshots/calendar1.png" |
||||
|
style="min-height: 1px;"> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="position-relative mb-4" |
||||
|
style="border-radius:10px; background-color:#f4f4f4"> |
||||
|
<div class="p-md-5 p-3 position-relative"> |
||||
|
<div class="row"> |
||||
|
<div class="col-md-12 mb-4"> |
||||
|
<h3 |
||||
|
style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;"> |
||||
|
Date wise Events. |
||||
|
</h3> |
||||
|
<p |
||||
|
style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;"> |
||||
|
User can easily track events by |
||||
|
date |
||||
|
wise.</p> |
||||
|
</div> |
||||
|
<div class="col-md-12 text-center"> |
||||
|
<div class="d-inline-block p-3 shadow-sm" |
||||
|
style="background-color:#fff; border-radius:10px"> |
||||
|
<img alt="" class="img-fluid" |
||||
|
loading="lazy" |
||||
|
src="./assets/screenshots/calendar2.png" |
||||
|
style="min-height: 1px;"> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="position-relative mb-4" |
||||
|
style="border-radius:10px; background-color:#f4f4f4"> |
||||
|
<div class="p-md-5 p-3 position-relative"> |
||||
|
<div class="row"> |
||||
|
|
||||
|
<div class="col-md-12 mb-4"> |
||||
|
<h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;"> |
||||
|
User can easily navigate to the |
||||
|
event from |
||||
|
the calendar on |
||||
|
one click. |
||||
|
</h3> |
||||
|
</div> |
||||
|
<div class="col-md-12 text-center"> |
||||
|
<div class="d-inline-block p-3 shadow-sm" |
||||
|
style="background-color:#fff; border-radius:10px"> |
||||
|
<img alt="" class="img-fluid" |
||||
|
loading="lazy" |
||||
|
src="./assets/screenshots/calendar3.png" |
||||
|
style="min-height: 1px;"> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="position-relative mb-4" |
||||
|
style="border-radius:10px; background-color:#f4f4f4"> |
||||
|
<div class="p-md-5 p-3 position-relative"> |
||||
|
<div class="row"> |
||||
|
<div class="col-md-12 mb-4"> |
||||
|
<h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;"> |
||||
|
Unpublished Events. |
||||
|
</h3> |
||||
|
<p |
||||
|
style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;"> |
||||
|
User can easily identify the |
||||
|
unpublished |
||||
|
events.</p> |
||||
|
</div> |
||||
|
<div class="col-md-12 text-center"> |
||||
|
<div class="d-inline-block p-3 shadow-sm" |
||||
|
style="background-color:#fff; border-radius:10px"> |
||||
|
<img alt="" class="img-fluid" |
||||
|
loading="lazy" |
||||
|
src="./assets/screenshots/calendar4.png" |
||||
|
style="min-height: 1px;"> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div aria-labelledby="feature-tab" |
||||
|
class="tab-pane fade show py-1" id="feature" |
||||
|
role="tabpanel"> |
||||
|
<div class="row py-4"> |
||||
|
<!-- Features Section --> |
||||
|
<div class="col-md-6 col-sm-12 p-3"> |
||||
|
<div class="d-flex flex-column align-items-start h-100" |
||||
|
style="padding:30px; border-radius:12px; background-color:#faf8ff"> |
||||
|
<div class="d-flex align-items-center justify-content-center"> |
||||
|
<div class="d-flex align-items-center justify-content-center " |
||||
|
style="width:36px; height:36px; border-radius:50%; background-color:#7847D9 ; margin-right:10px"> |
||||
|
<i class="fa fa-star " |
||||
|
style="color:#fff; font-size:14px"></i> |
||||
|
</div> |
||||
|
<p style="color:#1A202C; font-weight:600; font-size:1.2rem; margin-bottom:2px"> |
||||
|
Enterprise and Community |
||||
|
compatible.</p> |
||||
|
</div> |
||||
|
|
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col-md-6 col-sm-12 p-3"> |
||||
|
<div class="d-flex flex-column align-items-start h-100" |
||||
|
style="padding:30px; border-radius:12px; background-color:#faf8ff"> |
||||
|
<div class="d-flex align-items-center justify-content-center"> |
||||
|
<div class="d-flex align-items-center justify-content-center " |
||||
|
style="width:36px; height:36px; border-radius:50%; background-color:#7847D9 ; margin-right:10px"> |
||||
|
<i class="fa fa-star " |
||||
|
style="color:#fff; font-size:14px"></i> |
||||
|
</div> |
||||
|
<p style="color:#1A202C; font-weight:600; font-size:1.2rem; margin-bottom:2px"> |
||||
|
Able to recognise the event |
||||
|
between a certain date on the |
||||
|
calendar.</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col-md-6 col-sm-12 p-3"> |
||||
|
<div class="d-flex flex-column align-items-start h-100" |
||||
|
style="padding:30px; border-radius:12px; background-color:#faf8ff"> |
||||
|
<div class="d-flex align-items-center justify-content-center"> |
||||
|
<div class="d-flex align-items-center justify-content-center " |
||||
|
style="width:36px; height:36px; border-radius:50%; background-color:#7847D9 ; margin-right:10px"> |
||||
|
<i class="fa fa-star " |
||||
|
style="color:#fff; font-size:14px"></i> |
||||
|
</div> |
||||
|
<p style="color:#1A202C; font-weight:600; font-size:1.2rem; margin-bottom:2px"> |
||||
|
Easily discern the events which |
||||
|
are unpublished.</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col-md-6 col-sm-12 p-3"> |
||||
|
<div class="d-flex flex-column align-items-start h-100" |
||||
|
style="padding:30px; border-radius:12px; background-color:#faf8ff"> |
||||
|
<div class="d-flex align-items-center justify-content-center"> |
||||
|
<div class="d-flex align-items-center justify-content-center " |
||||
|
style="width:36px; height:36px; border-radius:50%; background-color:#7847D9 ; margin-right:10px"> |
||||
|
<i class="fa fa-star " |
||||
|
style="color:#fff; font-size:14px"></i> |
||||
|
</div> |
||||
|
<p style="color:#1A202C; font-weight:600; font-size:1.2rem; margin-bottom:2px"> |
||||
|
Can easily navigate to the event |
||||
|
through calendar list.</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div aria-labelledby="releases-tab" |
||||
|
class="tab-pane fade show" id="releases" |
||||
|
role="tabpanel"> |
||||
|
<!-- Release Notes --> |
||||
|
<div class="row pt-5 m-0"> |
||||
|
<div class="col-md-3"> |
||||
|
<h4 style="font-size:16px; font-weight:600; color:#514F4F; margin:0; line-height:26px;"> |
||||
|
Latest Release 18.0.1.0.0 |
||||
|
</h4> |
||||
|
<span style="font-size:14px; color:#7A7979; display:block; margin-bottom:20px;"> |
||||
|
01st January, 2025 |
||||
|
</span> |
||||
|
</div> |
||||
|
<div class="col-md-8"> |
||||
|
<div style="padding:0 0 40px"> |
||||
|
<div style="margin:0 0 10px"> |
||||
|
<div style="display:inline-block; padding:0px 8px; color:#514F4F; background-color:#FFD8D8; border-radius:20px"> |
||||
|
Add |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="d-flex m-0" |
||||
|
style="color:#7A7979;"> |
||||
|
<ul class="pl-3 mb-0"> |
||||
|
<li> |
||||
|
Initial Commit |
||||
|
</li> |
||||
|
|
||||
|
</ul> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div style="padding:0 0 0; border-bottom:1px solid #E3E3E3"> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<!-- --> |
||||
|
<!-- related post --> |
||||
|
<!-- --> |
||||
|
<section class="oe_container mt32"> |
||||
|
<h2 style="color: #091E42;font-family: "Montserrat";text-align: center;margin: 25px auto;text-transform: uppercase;" |
||||
|
class="oe_slogan"> |
||||
|
<b>Related Products</b> |
||||
|
</h2> |
||||
|
<div id="demo" class="row carousel slide mt64 mb32" |
||||
|
data-bs-ride="carousel"> |
||||
|
<!-- The slideshow --> |
||||
|
<div class="carousel-inner"> |
||||
|
<div class="carousel-item active"> |
||||
|
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" |
||||
|
style="float: left; padding: 10px;"> |
||||
|
<a href="https://apps.odoo.com/apps/modules/17.0/base_accounting_kit" |
||||
|
target="_blank" |
||||
|
style="color: #000; text-decoration: none;"> |
||||
|
<div style="border-radius: 6px; padding: 16px; border: 1px solid #cbcbcb;" |
||||
|
class="shadow-sm"> |
||||
|
<img class="img img-responsive center-block" |
||||
|
style=" max-width: 100%;" |
||||
|
src="./assets/modules/1.gif"/> |
||||
|
<h4 class="mt0 text-truncate" |
||||
|
style="text-align:center;width:100% margin-bottom: 8px; font-weight: 600; padding-top: 16px; text-decoration:none;font-size: 18px; padding-bottom: 8px; margin-bottom: 0px"> |
||||
|
Odoo 17 Full Accounting Kit</h4> |
||||
|
</div> |
||||
|
</a> |
||||
|
</div> |
||||
|
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" |
||||
|
style="float: left; padding: 10px;"> |
||||
|
<a href="https://apps.odoo.com/apps/modules/17.0/ohrms_core" |
||||
|
target="_blank" |
||||
|
style="color: #000; text-decoration: none;"> |
||||
|
<div style="border-radius: 6px; padding: 16px; border: 1px solid #cbcbcb;" |
||||
|
class="shadow-sm"> |
||||
|
<img class="img img-responsive center-block" |
||||
|
style=" max-width: 100%;" |
||||
|
src="./assets/modules/2.gif"/> |
||||
|
<h4 class="mt0 text-truncate" |
||||
|
style="text-align:center;width:100% margin-bottom: 8px; font-weight: 600; padding-top: 16px; text-decoration:none;font-size: 18px; padding-bottom: 8px; margin-bottom: 0px"> |
||||
|
Open HRMS Core</h4> |
||||
|
</div> |
||||
|
</a> |
||||
|
</div> |
||||
|
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" |
||||
|
style="float: left; padding: 10px;"> |
||||
|
<a href="https://apps.odoo.com/apps/modules/17.0/invoice_format_editor" |
||||
|
target="_blank" |
||||
|
style="color: #000; text-decoration: none;"> |
||||
|
<div style="border-radius: 6px;padding: 16px; border: 1px solid #cbcbcb;" |
||||
|
class="shadow-sm"> |
||||
|
<img class="img img-responsive center-block" |
||||
|
style=" max-width: 100%;" |
||||
|
src="./assets/modules/3.png"/> |
||||
|
<h4 class="mt0 text-truncate" |
||||
|
style="text-align:center;width:100% margin-bottom: 8px; font-weight: 600; padding-top: 16px; text-decoration:none;font-size: 18px; padding-bottom: 8px; margin-bottom: 0px"> |
||||
|
Odoo17 Invoice Format |
||||
|
Editor </h4> |
||||
|
</div> |
||||
|
</a> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="carousel-item"> |
||||
|
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" |
||||
|
style="float: left; padding: 10px;"> |
||||
|
<a href="https://apps.odoo.com/apps/modules/17.0/login_user_detail" |
||||
|
target="_blank" |
||||
|
style="color: #000; text-decoration: none;"> |
||||
|
<div style="border-radius: 6px; padding: 16px; border: 1px solid #cbcbcb;" |
||||
|
class="shadow-sm"> |
||||
|
<img class="img img-responsive center-block" |
||||
|
style=" max-width: 100%;" |
||||
|
src="./assets/modules/4.png"/> |
||||
|
<h4 class="mt0 text-truncate" |
||||
|
style="text-align:center;width:100% margin-bottom: 8px; font-weight: 600; padding-top: 16px; text-decoration:none;font-size: 18px; padding-bottom: 8px; margin-bottom: 0px"> |
||||
|
User Log Details</h4> |
||||
|
</div> |
||||
|
</a> |
||||
|
</div> |
||||
|
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" |
||||
|
style="float: left; padding: 10px;"> |
||||
|
<a href="https://apps.odoo.com/apps/modules/17.0/product_barcode" |
||||
|
target="_blank" |
||||
|
style="color: #000; text-decoration: none;"> |
||||
|
<div style="border-radius: 6px; padding: 16px; border: 1px solid #cbcbcb;" |
||||
|
class="shadow-sm"> |
||||
|
<img class="img img-responsive center-block" |
||||
|
style=" max-width: 100%;" |
||||
|
src="./assets/modules/5.png"/> |
||||
|
<h4 class="mt0 text-truncate" |
||||
|
style="text-align:center;width:100% margin-bottom: 8px; font-weight: 600; padding-top: 16px; text-decoration:none;font-size: 18px; padding-bottom: 8px; margin-bottom: 0px"> |
||||
|
Odoo17 Product Barcode |
||||
|
Generator </h4> |
||||
|
</div> |
||||
|
</a> |
||||
|
</div> |
||||
|
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" |
||||
|
style="float: left; padding: 10px;"> |
||||
|
<a href="https://apps.odoo.com/apps/modules/17.0/whatsapp_redirect" |
||||
|
target="_blank" |
||||
|
style="color: #000; text-decoration: none;"> |
||||
|
<div style="border-radius: 6px; padding: 16px; border: 1px solid #cbcbcb;" |
||||
|
class="shadow-sm"> |
||||
|
<img class="img img-responsive center-block" |
||||
|
style=" max-width: 100%;" |
||||
|
src="./assets/modules/6.jpg"/> |
||||
|
<h4 class="mt0 text-truncate" |
||||
|
style="text-align:center;width:100% margin-bottom: 8px; font-weight: 600; padding-top: 16px; text-decoration:none;font-size: 18px; padding-bottom: 8px; margin-bottom: 0px"> |
||||
|
Send Whatsapp Message |
||||
|
Odoo17</h4> |
||||
|
</div> |
||||
|
</a> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<!-- Left and right controls --> |
||||
|
<a class="carousel-control-prev" href="#demo" |
||||
|
data-bs-slide="prev" |
||||
|
style="margin-left: -30px;width: 35px;color: #000;"> |
||||
|
<span class="carousel-control-prev-icon"> |
||||
|
<i class="fa fa-chevron-left" style="font-size:24px"></i> |
||||
|
</span> |
||||
|
</a> |
||||
|
<a class="carousel-control-next" href="#demo" |
||||
|
data-bs-slide="next" |
||||
|
style="margin-right: -30px;width: 35px;color: #000;"> |
||||
|
<span class="carousel-control-next-icon"> |
||||
|
<i class="fa fa-chevron-right" style="font-size:24px"></i> |
||||
|
</span> |
||||
|
</a> |
||||
|
</div> |
||||
|
</section> |
||||
|
<!-- service-section --> |
||||
|
|
||||
|
<section id="services" class="mt-5" style="border-radius: 16px; |
||||
|
border: 1px solid #EBEEF2; |
||||
|
background: var(--Neutral-N0, #FFF); |
||||
|
padding: 60px 40px; |
||||
|
box-shadow: 0px 5px 20px -11px rgba(0, 0, 0, 0.25);"> |
||||
|
<div class="text-center mt-4"><h3 class="mb-0" style="color: #000; |
||||
|
text-align: center; |
||||
|
font-family: Montserrat; |
||||
|
font-size: 40px; |
||||
|
font-style: normal; |
||||
|
font-weight: 700; |
||||
|
line-height: normal; |
||||
|
text-transform: uppercase; |
||||
|
padding-bottom: 50px;"> |
||||
|
Our Services</h3></div> |
||||
|
<div class="row mt-3"> |
||||
|
<div class="col-lg-3 col-sm-12 mb-3"> |
||||
|
<a href="#" style="text-decoration:none"> |
||||
|
<div class="btn-lg btn-block p-4 mb-2 d-flex flex-column justify-content-center align-items-center" |
||||
|
style="font-size:25px; font-weight:bold;background-color:#FFE2E5; margin:auto; gap: 16px; border-radius: 8px;"> |
||||
|
<div class="d-flex justify-content-center align-items-center" |
||||
|
style="background-color:#FA5A7D; border-radius:50%; height:56px; width:56px"> |
||||
|
<img src="./assets/icons/gear.svg" |
||||
|
class="img-responsive" |
||||
|
height="28px" width="28px"> |
||||
|
</div> |
||||
|
<span style="font-size: 18px; |
||||
|
color: var(--text-color); |
||||
|
font-weight: 600;"> Odoo Customization</span> |
||||
|
</div> |
||||
|
</a> |
||||
|
</div> |
||||
|
<div class="col-lg-3 col-sm-12 mb-3"> |
||||
|
<a href="#" style="text-decoration:none"> |
||||
|
<div class="btn-lg btn-block p-4 mb-2 d-flex flex-column justify-content-center align-items-center" |
||||
|
style="font-size:25px; font-weight:bold;background-color:#FFF4DE; margin:auto; gap: 16px; border-radius: 8px;"> |
||||
|
<div class="d-flex justify-content-center align-items-center" |
||||
|
style="background-color:#FF947A; border-radius:50%; height:56px; width:56px"> |
||||
|
<img src="./assets/icons/wrench-icon.svg" |
||||
|
class="img-responsive" |
||||
|
height="28px" width="28px"> |
||||
|
</div> |
||||
|
<span style="font-size: 18px; |
||||
|
color: var(--text-color); |
||||
|
font-weight: 600;"> Odoo Implementation</span> |
||||
|
</div> |
||||
|
</a> |
||||
|
</div> |
||||
|
<div class="col-lg-3 col-sm-12 mb-3"> |
||||
|
<a href="#" style="text-decoration:none"> |
||||
|
<div class="btn-lg btn-block p-4 mb-2 d-flex flex-column justify-content-center align-items-center" |
||||
|
style="font-size:25px; font-weight:bold;background-color:#DCFCE7; margin:auto; gap: 16px; border-radius: 8px;"> |
||||
|
<div class="d-flex justify-content-center align-items-center" |
||||
|
style="background-color:#3CD856; border-radius:50%; height:56px; width:56px"> |
||||
|
<img src="./assets/icons/life-ring-icon.svg" |
||||
|
class="img-responsive" |
||||
|
height="28px" width="28px"> |
||||
|
</div> |
||||
|
<span style="font-size: 18px; |
||||
|
color: var(--text-color); |
||||
|
font-weight: 600;">Odoo Support</span> |
||||
|
</div> |
||||
|
</a> |
||||
|
</div> |
||||
|
<div class="col-lg-3 col-sm-12 mb-3"> |
||||
|
<a href="#" style="text-decoration:none"> |
||||
|
<div class="btn-lg btn-block p-4 mb-2 d-flex flex-column justify-content-center align-items-center" |
||||
|
style="font-size:25px; font-weight:bold;background-color:#F3E8FF; margin:auto; gap: 16px; border-radius: 8px;"> |
||||
|
<div class="d-flex justify-content-center align-items-center" |
||||
|
style="background-color:#BF83FF; border-radius:50%; height:56px; width:56px"> |
||||
|
<img src="./assets/icons/arrows-repeat.svg" |
||||
|
class="img-responsive" |
||||
|
height="28px" width="28px"> |
||||
|
</div> |
||||
|
<span style="font-size: 18px; |
||||
|
color: var(--text-color); |
||||
|
font-weight: 600;">Odoo Migration</span> |
||||
|
</div> |
||||
|
</a> |
||||
|
</div> |
||||
|
<div class="col-lg-3 col-sm-12 mb-3"> |
||||
|
<a href="#" style="text-decoration:none"> |
||||
|
<div class="btn-lg btn-block p-4 mb-2 d-flex flex-column justify-content-center align-items-center" |
||||
|
style="font-size:25px; font-weight:bold;background-color:#F1F9FF; margin:auto; gap: 16px; border-radius: 8px;"> |
||||
|
<div class="d-flex justify-content-center align-items-center" |
||||
|
style="background-color:#01649C; border-radius:50%; height:56px; width:56px"> |
||||
|
<img src="./assets/icons/puzzle-piece-icon.svg" |
||||
|
class="img-responsive" |
||||
|
height="28px" width="28px"> |
||||
|
</div> |
||||
|
<span style="font-size: 18px; |
||||
|
color: var(--text-color); |
||||
|
font-weight: 600;">Odoo integration</span> |
||||
|
</div> |
||||
|
</a> |
||||
|
</div> |
||||
|
<div class="col-lg-3 col-sm-12 mb-3"> |
||||
|
<a href="#" style="text-decoration:none"> |
||||
|
<div class="btn-lg btn-block p-4 mb-2 d-flex flex-column justify-content-center align-items-center" |
||||
|
style="font-size:25px; font-weight:bold;background-color:#EDF8ED; margin:auto; gap: 16px; border-radius: 8px;"> |
||||
|
|
||||
|
<div class="d-flex justify-content-center align-items-center" |
||||
|
style="background-color:#69CC70; border-radius:50%; height:56px; width:56px"> |
||||
|
<img src="./assets/icons/odoo-consultancy.svg" |
||||
|
class="img-responsive" |
||||
|
height="28px" width="28px"> |
||||
|
</div> |
||||
|
<span style="font-size: 18px; |
||||
|
color: var(--text-color); |
||||
|
font-weight: 600;">Odoo Consultancy</span> |
||||
|
</div> |
||||
|
</a> |
||||
|
</div> |
||||
|
<div class="col-lg-3 col-sm-12 mb-3"> |
||||
|
<a href="#" style="text-decoration:none"> |
||||
|
<div class="btn-lg btn-block p-4 mb-2 d-flex flex-column justify-content-center align-items-center" |
||||
|
style="font-size:25px; font-weight:bold;background-color:#F1F6FF; margin:auto; gap: 16px; border-radius: 8px;"> |
||||
|
|
||||
|
<div class="d-flex justify-content-center align-items-center" |
||||
|
style="background-color:#2E4556; border-radius:50%; height:56px; width:56px"> |
||||
|
<img src="./assets/icons/odoo-licencing.svg" |
||||
|
class="img-responsive" |
||||
|
height="28px" width="28px"> |
||||
|
</div> |
||||
|
<span style="font-size: 18px; |
||||
|
color: var(--text-color); |
||||
|
font-weight: 600;">Odoo Licensing</span> |
||||
|
</div> |
||||
|
</a> |
||||
|
</div> |
||||
|
<div class="col-lg-3 col-sm-12 mb-3"> |
||||
|
<a href="#" style="text-decoration:none"> |
||||
|
<div class="btn-lg btn-block p-4 mb-2 d-flex flex-column justify-content-center align-items-center" |
||||
|
style="font-size:25px; font-weight:bold;background-color:#FAF6EA; margin:auto; gap: 16px; border-radius: 8px;"> |
||||
|
|
||||
|
<div class="d-flex justify-content-center align-items-center" |
||||
|
style="background-color:#FCD12C; border-radius:50%; height:56px; width:56px"> |
||||
|
<img src="./assets/icons/hire-odoo.svg" |
||||
|
class="img-responsive" |
||||
|
height="28px" width="28px"> |
||||
|
</div> |
||||
|
<span style="font-size: 18px; |
||||
|
color: var(--text-color); |
||||
|
font-weight: 600;">Hire Odoo Developer</span> |
||||
|
</div> |
||||
|
</a> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<!-- licence --> |
||||
|
<div class="tab-pane fade" id="profile" role="tabpanel" |
||||
|
aria-labelledby="profile-tab"> |
||||
|
<div class="px-5"> |
||||
|
.... |
||||
|
</div> |
||||
|
</div> |
||||
|
<!-- --> |
||||
|
</div> |
||||
|
</section> |
||||
|
<!-- --> |
||||
|
</div> |
||||
|
</div> |
||||
|
</body> |
||||
|
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.bundle.min.js"></script> |
||||
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.7.1/jquery.min.js" |
||||
|
integrity="sha512-v2CJ7UaYy4JwqLDIrZUI/4hqeoQieOmAZNXBeQyjo21dadnwR+8ZaIJVT8EE2iyI61OV8e6M8PP2/4hpQINQ/g==" |
||||
|
crossorigin="anonymous" referrerpolicy="no-referrer"></script> |
||||
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/OwlCarousel2/2.3.4/owl.carousel.min.js"></script> |
||||
|
<script> |
||||
|
$('.owl-carousel').owlCarousel({ |
||||
|
rtl: true, |
||||
|
loop: true, |
||||
|
margin: 10, |
||||
|
nav: true, |
||||
|
responsive: { |
||||
|
0: { |
||||
|
items: 1 |
||||
|
}, |
||||
|
600: { |
||||
|
items: 3 |
||||
|
}, |
||||
|
1000: { |
||||
|
items: 3 |
||||
|
} |
||||
|
} |
||||
|
}) |
||||
|
</script> |
||||
|
</html> |
@ -0,0 +1,63 @@ |
|||||
|
h3{ |
||||
|
font-size:3rem; |
||||
|
font-weight:bold; |
||||
|
color:#c68307; |
||||
|
} |
||||
|
|
||||
|
.s_event_calendar { |
||||
|
width: 100%; /* You can also set a fixed width like '1000px' if you prefer */ |
||||
|
max-width: 100%; /* Ensure it doesn't overflow the screen */ |
||||
|
} |
||||
|
|
||||
|
.fc-day.fc-day-today { |
||||
|
background-color: #f0f8ff; /* Light blue for today's column */ |
||||
|
} |
||||
|
|
||||
|
.fc-event { |
||||
|
background-color: #ff6347; /* Custom event background color */ |
||||
|
color: white; /* Text color */ |
||||
|
} |
||||
|
|
||||
|
/* If you want to apply specific styles to events in a specific range or with specific classes */ |
||||
|
.fc-event.start-to-end { |
||||
|
background-color: #8a2be2; |
||||
|
} |
||||
|
|
||||
|
.s_event_calendar { |
||||
|
margin-right: initial; |
||||
|
} |
||||
|
|
||||
|
.s_event_calendar_list .row { |
||||
|
display: flex; |
||||
|
justify-content: center; /* Align items horizontally in the center */ |
||||
|
align-items: center; /* Align items vertically in the center */ |
||||
|
} |
||||
|
|
||||
|
/* Ensure the calendar itself is centered */ |
||||
|
.s_event_calendar_list .col-md-6, |
||||
|
.s_event_calendar_list .col-lg-5 { |
||||
|
display: flex; |
||||
|
justify-content: center; |
||||
|
align-items: center; |
||||
|
} |
||||
|
.fc .fc-daygrid-day.fc-day-today{ |
||||
|
background-color: #efc085 !important; |
||||
|
} |
||||
|
|
||||
|
.s_event_calendar_list { |
||||
|
overflow: hidden; |
||||
|
max-width: 100%; |
||||
|
max-height: 100%; |
||||
|
} |
||||
|
|
||||
|
.fc-scroller { |
||||
|
overflow: hidden !important; |
||||
|
} |
||||
|
|
||||
|
.fc-daygrid-body { |
||||
|
overflow: hidden !important; |
||||
|
} |
||||
|
|
||||
|
.s_event_calendar { |
||||
|
height: 31rem; |
||||
|
} |
@ -0,0 +1,204 @@ |
|||||
|
/** @odoo-module **/ |
||||
|
import { patch } from "@web/core/utils/patch"; |
||||
|
import { Component, useState , useRef, useEffect } from "@odoo/owl"; |
||||
|
import { animations } from "@website/js/content/snippets.animation"; |
||||
|
const { DateTime } = luxon; |
||||
|
import publicWidget from "@web/legacy/js/public/public_widget"; |
||||
|
import { renderToFragment } from "@web/core/utils/render"; |
||||
|
import { useService } from "@web/core/utils/hooks"; |
||||
|
import { rpc } from "@web/core/network/rpc"; |
||||
|
|
||||
|
import { DateTimePicker } from "@web/core/datetime/datetime_picker"; |
||||
|
|
||||
|
|
||||
|
const DATE_FORMAT = "yyyy-MM-dd"; |
||||
|
const DATETIME_FORMAT = "yyyy-MM-dd HH:mm:ss"; |
||||
|
|
||||
|
publicWidget.registry.CustomCalendar = publicWidget.Widget.extend({ |
||||
|
selector: '.s_event_calendar_list', |
||||
|
|
||||
|
setup() { |
||||
|
const rpc = useService("rpc"); |
||||
|
}, |
||||
|
|
||||
|
init: function () { |
||||
|
const referenceMoment = DateTime.local().setLocale("en"); |
||||
|
this.selected_date = null |
||||
|
|
||||
|
this.datepickerOptions = { |
||||
|
inline: true, |
||||
|
minDate: referenceMoment.minus({ years: 100 }), |
||||
|
maxDate: referenceMoment.plus({ years: 100 }), |
||||
|
icons: { |
||||
|
previous: "fa fa-chevron-left", |
||||
|
next: "fa fa-chevron-right", |
||||
|
}, |
||||
|
format: DATE_FORMAT, |
||||
|
useCurrent: false, |
||||
|
locale: referenceMoment.loc.locale, |
||||
|
}; |
||||
|
|
||||
|
return this._super.apply(this, arguments); |
||||
|
}, |
||||
|
|
||||
|
start: function (editableMode) { |
||||
|
this._super.apply(this, arguments); |
||||
|
|
||||
|
if (editableMode) { |
||||
|
return; |
||||
|
} |
||||
|
this.selectedDates = { |
||||
|
min: null, |
||||
|
max: null, |
||||
|
matches: [], |
||||
|
}; |
||||
|
|
||||
|
this.defaultAmount = Number(this.$(".js_amount").html()) || 4; |
||||
|
// Get initial events to render the list
|
||||
|
this.loadEvents(null, this.defaultAmount) |
||||
|
.then($.proxy(this, "renderList")); |
||||
|
// Preload dates and render the calendar
|
||||
|
const referenceMoment = DateTime.local().setLocale("en"); |
||||
|
this.preloadDates(referenceMoment) |
||||
|
.then($.proxy(this, "renderCalendar")); |
||||
|
}, |
||||
|
|
||||
|
preloadDates: function (when) { |
||||
|
const referenceMoment = DateTime.local().setLocale("en"); |
||||
|
const margin = { months: 4 }; |
||||
|
|
||||
|
// Don't preload if we have up to 4 months of margin
|
||||
|
if ( |
||||
|
this.selectedDates.min && this.selectedDates.max && |
||||
|
this.selectedDates.min <= when - margin && |
||||
|
this.selectedDates.max >= when + margin |
||||
|
) { |
||||
|
return $.Deferred().resolve(); |
||||
|
} |
||||
|
// Default values
|
||||
|
margin.months += 2; |
||||
|
const start = referenceMoment.minus(margin); |
||||
|
const end = referenceMoment.plus(margin); |
||||
|
// If we already preloaded, preload 6 more months
|
||||
|
if (this.selectedDates.min) { |
||||
|
start.subtract(6, "months"); |
||||
|
} |
||||
|
if (this.selectedDates.max) { |
||||
|
end.add(6, "months"); |
||||
|
} |
||||
|
// Do the preloading
|
||||
|
return this.loadDates(start, end); |
||||
|
}, |
||||
|
|
||||
|
loadDates: function (start, end) { |
||||
|
const startdate = start.toISO(); |
||||
|
|
||||
|
return rpc( |
||||
|
"/web_events_calendar_view/days_with_events", |
||||
|
{ |
||||
|
start: start.toISO(), |
||||
|
end: end.toISO(), |
||||
|
} |
||||
|
).then($.proxy(this, "updateDatesCache", start, end)); |
||||
|
}, |
||||
|
|
||||
|
updateDatesCache: function (start, end, dates) { |
||||
|
if (!this.selectedDates.min || this.selectedDates.min > start) { |
||||
|
this.selectedDates.min = start; |
||||
|
} |
||||
|
if (!this.selectedDates.max || this.selectedDates.max < end) { |
||||
|
this.selectedDates.max = end; |
||||
|
} |
||||
|
this.selectedDates.matches = [...new Set([...this.selectedDates.matches, ...dates])]; |
||||
|
|
||||
|
}, |
||||
|
|
||||
|
renderCalendar: function () { |
||||
|
const enabledDates = this.selectedDates.matches.map((ndate) => { |
||||
|
return new Date(ndate); // Convert string date to JavaScript Date object
|
||||
|
}); |
||||
|
this._load_fullcalendar(); |
||||
|
}, |
||||
|
|
||||
|
_load_fullcalendar: function () { |
||||
|
// Dynamically load FullCalendar CSS
|
||||
|
var link = document.createElement('link'); |
||||
|
link.rel = 'stylesheet'; |
||||
|
link.type = 'text/css'; |
||||
|
link.href = 'https://cdn.jsdelivr.net/npm/fullcalendar@5.10.0/main.min.css'; |
||||
|
document.head.appendChild(link); |
||||
|
|
||||
|
// Dynamically load FullCalendar JS
|
||||
|
var script = document.createElement('script'); |
||||
|
script.type = 'text/javascript'; |
||||
|
script.src = 'https://cdn.jsdelivr.net/npm/fullcalendar@5.10.0/main.min.js'; |
||||
|
script.onload = this._initialize_calendar.bind(this); // Initialize the calendar once the script is loaded
|
||||
|
document.body.appendChild(script); |
||||
|
}, |
||||
|
|
||||
|
async _initialize_calendar() { |
||||
|
var calendarElement = document.querySelector('.s_event_calendar') |
||||
|
if (!calendarElement) { |
||||
|
return; |
||||
|
} |
||||
|
|
||||
|
var events = await rpc( |
||||
|
"/web_events_calendar_view/events", |
||||
|
{} |
||||
|
); |
||||
|
|
||||
|
// Initialize FullCalendar
|
||||
|
new FullCalendar.Calendar(calendarElement, { |
||||
|
initialView: 'dayGridMonth', |
||||
|
events: events, |
||||
|
|
||||
|
// This will trigger when a date is clicked
|
||||
|
dateClick: (info) => { |
||||
|
this.handleDateClick(info); // 'this' now refers to the CalendarHandler instance
|
||||
|
} |
||||
|
}).render(); |
||||
|
}, |
||||
|
|
||||
|
// Handle date click event
|
||||
|
handleDateClick(info) { |
||||
|
let clickedDate = info.dateStr; // Date in 'YYYY-MM-DD' format
|
||||
|
this.selected_date = clickedDate; |
||||
|
|
||||
|
let previousSelectedDate = document.querySelector('.fc-selected'); |
||||
|
if (previousSelectedDate) { |
||||
|
previousSelectedDate.classList.remove('fc-selected'); |
||||
|
previousSelectedDate.style.backgroundColor = ''; // Reset background color
|
||||
|
} |
||||
|
|
||||
|
// Add background color to the clicked date
|
||||
|
let clickedDateElement = info.dayEl; // Get the actual DOM element of the clicked day
|
||||
|
clickedDateElement.classList.add('fc-selected'); |
||||
|
clickedDateElement.style.backgroundColor = '#1b918b'; |
||||
|
|
||||
|
// Get the default amount
|
||||
|
this.defaultAmount = Number(document.querySelector(".js_amount").innerHTML) || 4; |
||||
|
|
||||
|
// Call loadEvents and then render the list
|
||||
|
this.loadEvents(this.selected_date, this.defaultAmount) |
||||
|
.then(this.renderList); |
||||
|
}, |
||||
|
|
||||
|
renderList: function (events) { |
||||
|
document.querySelector('.s_event_list').innerHTML = ''; |
||||
|
|
||||
|
document.querySelector('.s_event_list').append(renderToFragment( |
||||
|
'web_events_calendar_view.list', |
||||
|
{ |
||||
|
events: events |
||||
|
} |
||||
|
)); |
||||
|
}, |
||||
|
|
||||
|
loadEvents: function (day, limit) { |
||||
|
return rpc( |
||||
|
"/web_events_calendar_view/events_for_day", |
||||
|
{day: day, limit: limit} |
||||
|
); |
||||
|
}, |
||||
|
|
||||
|
}); |
@ -0,0 +1,25 @@ |
|||||
|
<?xml version="1.0" encoding="UTF-8" ?> |
||||
|
<templates xml:space="preserve"> |
||||
|
<t t-name="web_events_calendar_view.list"> |
||||
|
<t t-foreach="events" t-as="event" t-key="event.name"> |
||||
|
<div class="row"> |
||||
|
<div class="col-12 event_details"> |
||||
|
<span class="date"> |
||||
|
<t t-esc="event.date_begin_pred_located"/> |
||||
|
</span> |
||||
|
</div> |
||||
|
<div class="col-12 event_title"> |
||||
|
<a t-att-href="event.website_url" target="_top"> |
||||
|
<h4 class="mt0"> |
||||
|
<t t-esc="event.name"/> |
||||
|
<t t-if="!event.website_published"> |
||||
|
<span class="badge bg-danger">Unpublished |
||||
|
</span> |
||||
|
</t> |
||||
|
</h4> |
||||
|
</a> |
||||
|
</div> |
||||
|
</div> |
||||
|
</t> |
||||
|
</t> |
||||
|
</templates> |
@ -0,0 +1,66 @@ |
|||||
|
<?xml version="1.0" encoding="utf-8"?> |
||||
|
<odoo> |
||||
|
<!-- Event view templates--> |
||||
|
<template id="loading" name="Loading"> |
||||
|
<div> |
||||
|
<i class="fa fa-spinner fa-spin"/> |
||||
|
Loading... |
||||
|
</div> |
||||
|
</template> |
||||
|
|
||||
|
<template id="s_event_calendar" name="Events Calendar"> |
||||
|
<div class="o_not_editable css_non_editable_mode_hidden alert alert-info"> |
||||
|
<p>Calendar visible only when you save</p> |
||||
|
</div> |
||||
|
<div t-ignore="true" |
||||
|
class="s_event_calendar o_not_editable css_editable_mode_hidden"> |
||||
|
<t t-call="web_events_calendar_view.loading"/> |
||||
|
</div> |
||||
|
</template> |
||||
|
|
||||
|
<template id="s_event_list" name="Events List"> |
||||
|
<div class="o_not_editable css_non_editable_mode_hidden alert alert-info"> |
||||
|
<p>Event list visible only when you save.</p> |
||||
|
<p>It will display up to the closest <b class="js_amount">4</b> events. |
||||
|
</p> |
||||
|
</div> |
||||
|
<div t-ignore="true" |
||||
|
data-date-format="LLL" |
||||
|
class="s_event_list o_not_editable css_editable_mode_hidden"> |
||||
|
<t t-call="web_events_calendar_view.loading"/> |
||||
|
</div> |
||||
|
</template> |
||||
|
|
||||
|
<template id="s_event_calendar_list" name="Events Calendar"> |
||||
|
<section class="oe_snippet_body s_event_calendar_list"> |
||||
|
<div class="container"> |
||||
|
<div class="row"> |
||||
|
<div class="col-md-12 mt32 text-center"> |
||||
|
<h3>Events Calendar</h3> |
||||
|
</div> |
||||
|
<div class="col-md-6 col-lg-5 mt16 mb16"> |
||||
|
<t t-call="web_events_calendar_view.s_event_calendar"/> |
||||
|
</div> |
||||
|
<div class="col-md-6 col-lg-7 mt16 mb16 event_list_column"> |
||||
|
<t t-call="web_events_calendar_view.s_event_list"/> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</section> |
||||
|
</template> |
||||
|
<template id="global_events_calendar" name="Events Calendar"> |
||||
|
<t t-call="website.layout"> |
||||
|
<div id="calendar_wrap" class="oe_structure oe_empty"> |
||||
|
<t t-call="web_events_calendar_view.s_event_calendar_list"/> |
||||
|
</div> |
||||
|
<div class="oe_structure"/> |
||||
|
</t> |
||||
|
</template> |
||||
|
|
||||
|
<record id="website_menu_events_Calendar" model="website.menu"> |
||||
|
<field name="name">Events Calendar</field> |
||||
|
<field name="url">/calendar_events</field> |
||||
|
<field name="parent_id" ref="website.main_menu"/> |
||||
|
<field name="sequence" type="int">20</field> |
||||
|
</record> |
||||
|
</odoo> |