Browse Source

May 16 : [ADD] Initial Commit 'theme_the_chef'

pull/254/head
AjmalCybro 2 years ago
parent
commit
e2d5ca409b
  1. 46
      theme_the_chef/README.rst
  2. 23
      theme_the_chef/__init__.py
  3. 71
      theme_the_chef/__manifest__.py
  4. 22
      theme_the_chef/controllers/__init__.py
  5. 45
      theme_the_chef/controllers/main.py
  6. 15
      theme_the_chef/data/website_bookings_data.xml
  7. 6
      theme_the_chef/doc/RELEASE_NOTES.md
  8. 23
      theme_the_chef/models/__init__.py
  9. 34
      theme_the_chef/models/theme_chef.py
  10. 50
      theme_the_chef/models/website_bookings.py
  11. 2
      theme_the_chef/security/ir.model.access.csv
  12. BIN
      theme_the_chef/static/description/banner.png
  13. BIN
      theme_the_chef/static/description/icon.png
  14. BIN
      theme_the_chef/static/description/images/1.jpg
  15. BIN
      theme_the_chef/static/description/images/2.jpg
  16. BIN
      theme_the_chef/static/description/images/3.jpg
  17. BIN
      theme_the_chef/static/description/images/4.jpg
  18. BIN
      theme_the_chef/static/description/images/5.jpg
  19. BIN
      theme_the_chef/static/description/images/6.jpg
  20. BIN
      theme_the_chef/static/description/images/Cybrosys.png
  21. BIN
      theme_the_chef/static/description/images/cybro-logo-oca-no-text.png
  22. BIN
      theme_the_chef/static/description/images/cybro-logo-oca.png
  23. BIN
      theme_the_chef/static/description/images/demo-1.jpg
  24. BIN
      theme_the_chef/static/description/images/demo-2.jpg
  25. BIN
      theme_the_chef/static/description/images/demo-3.jpg
  26. BIN
      theme_the_chef/static/description/images/hero.png
  27. BIN
      theme_the_chef/static/description/images/laptop-screenshots.jpg
  28. BIN
      theme_the_chef/static/description/images/phone-screenshots.jpg
  29. 264
      theme_the_chef/static/description/index.html
  30. BIN
      theme_the_chef/static/description/theme_screenshot.png
  31. 7
      theme_the_chef/static/src/css/animate.min.css
  32. 6
      theme_the_chef/static/src/css/owl.carousel.min.css
  33. 6
      theme_the_chef/static/src/css/owl.theme.default.min.css
  34. 1574
      theme_the_chef/static/src/css/style.css
  35. BIN
      theme_the_chef/static/src/img/about/abt1.jpg
  36. BIN
      theme_the_chef/static/src/img/about/abt2.jpg
  37. BIN
      theme_the_chef/static/src/img/about/abt3.jpg
  38. BIN
      theme_the_chef/static/src/img/about/hero-2.jpg
  39. BIN
      theme_the_chef/static/src/img/banner/hero-1.jpg
  40. BIN
      theme_the_chef/static/src/img/banner/hero-2.jpg
  41. BIN
      theme_the_chef/static/src/img/banner/hero-3.jpg
  42. BIN
      theme_the_chef/static/src/img/dishes/cake.jpg
  43. BIN
      theme_the_chef/static/src/img/dishes/steak.jpg
  44. BIN
      theme_the_chef/static/src/img/flag/1.jpg
  45. BIN
      theme_the_chef/static/src/img/flag/2.jpg
  46. BIN
      theme_the_chef/static/src/img/flag/3.jpg
  47. BIN
      theme_the_chef/static/src/img/menu/breakfast-1.jpg
  48. BIN
      theme_the_chef/static/src/img/menu/breakfast-2.jpg
  49. BIN
      theme_the_chef/static/src/img/menu/breakfast-3.jpg
  50. BIN
      theme_the_chef/static/src/img/reservation/reservation-bg.jpg
  51. BIN
      theme_the_chef/static/src/img/snippets/about.jpg
  52. BIN
      theme_the_chef/static/src/img/snippets/banner.jpg
  53. BIN
      theme_the_chef/static/src/img/snippets/branches.jpg
  54. BIN
      theme_the_chef/static/src/img/snippets/happy.jpg
  55. BIN
      theme_the_chef/static/src/img/snippets/menu.jpg
  56. BIN
      theme_the_chef/static/src/img/snippets/reservation.jpg
  57. BIN
      theme_the_chef/static/src/img/snippets/special.jpg
  58. BIN
      theme_the_chef/static/src/img/snippets/special_left.jpg
  59. BIN
      theme_the_chef/static/src/img/snippets/team.jpg
  60. BIN
      theme_the_chef/static/src/img/team/chef-1.jpg
  61. BIN
      theme_the_chef/static/src/img/team/chef-2.jpg
  62. BIN
      theme_the_chef/static/src/img/team/chef-3.jpg
  63. BIN
      theme_the_chef/static/src/img/testimonial/testi-bg.jpg
  64. 81
      theme_the_chef/static/src/js/custom.js
  65. 23
      theme_the_chef/static/src/js/date_selection.js
  66. 3448
      theme_the_chef/static/src/js/owl.carousel.js
  67. 30
      theme_the_chef/views/layout.xml
  68. 76
      theme_the_chef/views/snippets/about.xml
  69. 57
      theme_the_chef/views/snippets/banner.xml
  70. 93
      theme_the_chef/views/snippets/branches.xml
  71. 100
      theme_the_chef/views/snippets/happy.xml
  72. 247
      theme_the_chef/views/snippets/menu.xml
  73. 110
      theme_the_chef/views/snippets/reservation.xml
  74. 52
      theme_the_chef/views/snippets/special.xml
  75. 75
      theme_the_chef/views/snippets/special_left.xml
  76. 104
      theme_the_chef/views/snippets/team.xml
  77. 112
      theme_the_chef/views/templates.xml
  78. 70
      theme_the_chef/views/website_bookings.xml
  79. 19
      theme_the_chef/views/website_bookings_submit.xml
  80. 30
      theme_the_chef/views/website_snippet.xml

46
theme_the_chef/README.rst

@ -0,0 +1,46 @@
.. image:: https://img.shields.io/badge/licence-LGPL--3-blue.svg
:target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html
:alt: License: LGPL-3
Theme The Chef
==============
* Design Web Pages with theme the chef
Installation
============
- www.odoo.com/documentation/15.0/setup/install.html
- Install our custom addon
License
-------
General Public License, Version 3 (LGPL v3).
(https://www.odoo.com/documentation/user/13.0/legal/licenses/licenses.html)
Company
-------
* 'Cybrosys Techno Solutions <https://cybrosys.com/>`__
Credits
-------
* Developer:
Rahna Kabeer @ cybrosys
Contacts
--------
* Mail Contact : odoo@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>`__

23
theme_the_chef/__init__.py

@ -0,0 +1,23 @@
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Cybrosys Techno Solutions(<https://www.cybrosys.com>)
#
# You can modify it under the terms of the GNU LESSER
# GENERAL PUBLIC LICENSE (LGPL 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 LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details.
#
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE
# (LGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
#############################################################################
from . import controllers
from . import models

71
theme_the_chef/__manifest__.py

@ -0,0 +1,71 @@
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Cybrosys Techno Solutions(<https://www.cybrosys.com>)
#
# You can modify it under the terms of the GNU LESSER
# GENERAL PUBLIC LICENSE (LGPL 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 LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details.
#
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE
# (LGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
#############################################################################
{
'name': 'Theme The Chef',
'description': 'Theme The Chef is a popular attractive and unique front'
' end theme for your restaurant website.',
'summary': 'Theme The Chef',
'category': 'Theme/Creative',
'version': '15.0.1.0.0',
'author': 'Cybrosys Techno Solutions',
'company': 'Cybrosys Techno Solutions',
'maintainer': 'Cybrosys Techno Solutions',
'website': "https://www.cybrosys.com",
'depends': ['website_sale_wishlist'],
'data': [
'security/ir.model.access.csv',
'data/website_bookings_data.xml',
'views/website_snippet.xml',
'views/layout.xml',
'views/templates.xml',
'views/website_bookings.xml',
'views/website_bookings_submit.xml',
'views/snippets/about.xml',
'views/snippets/banner.xml',
'views/snippets/branches.xml',
'views/snippets/happy.xml',
'views/snippets/menu.xml',
'views/snippets/reservation.xml',
'views/snippets/special.xml',
'views/snippets/special_left.xml',
'views/snippets/team.xml',
],
'images': [
'static/description/banner.png',
'static/description/theme_screenshot.png',
],
'assets': {
'web.assets_frontend': [
'theme_the_chef/static/src/css/style.css',
'theme_the_chef/static/src/css/animate.min.css',
'theme_the_chef/static/src/css/owl.carousel.min.css',
'theme_the_chef/static/src/css/owl.theme.default.min.css',
'theme_the_chef/static/src/js/custom.js',
'theme_the_chef/static/src/js/owl.caromodusel.js',
'theme_the_chef/static/src/js/date_selection.js'
],
},
'license': 'LGPL-3',
'installable': True,
'application': False,
'auto_install': False,
}

22
theme_the_chef/controllers/__init__.py

@ -0,0 +1,22 @@
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Cybrosys Techno Solutions(<https://www.cybrosys.com>)
#
# You can modify it under the terms of the GNU LESSER
# GENERAL PUBLIC LICENSE (LGPL 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 LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details.
#
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE
# (LGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
#############################################################################
from . import main

45
theme_the_chef/controllers/main.py

@ -0,0 +1,45 @@
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Cybrosys Techno Solutions(<https://www.cybrosys.com>)
#
# You can modify it under the terms of the GNU LESSER
# GENERAL PUBLIC LICENSE (LGPL 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 LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details.
#
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE
# (LGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
#############################################################################
"""theme chef bookings"""
from odoo import http
from odoo.http import request
class Bookings(http.Controller):
"""Getting the booking details and stored on the backend"""
@http.route('/book_now', type='http', auth="public", website=True)
def book_now(self, **post):
"""To create the records to the model"""
time_string = post.get('time')
time = time_string.split(':')
book_time = f"{time[0]}.{time[1]}"
request.env['website.bookings'].sudo().create({
'name': post.get('name'),
'email': post.get('email'),
'phone': post.get('phone'),
'date': post.get('date'),
'time': book_time,
'persons': post.get('persons'),
'notes': post.get('notes')
})
return request.render("theme_the_chef.website_bookings_form_success")

15
theme_the_chef/data/website_bookings_data.xml

@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<data>
<!-- Booking Sequence-->
<record id="website_bookings_sequence" model="ir.sequence">
<field name="name">Website Bookings</field>
<field name="code">website.bookings</field>
<field name="prefix">BK</field>
<field name="padding">4</field>
<field eval="1" name="number_next"/>
<field eval="1" name="number_increment"/>
<field eval="False" name="company_id"/>
</record>
</data>
</odoo>

6
theme_the_chef/doc/RELEASE_NOTES.md

@ -0,0 +1,6 @@
## Module <theme_the_chef>
#### 30.03.2023
#### Version 15.0.1.0.0
#### ADD
- Initial commit for Theme The Chef

23
theme_the_chef/models/__init__.py

@ -0,0 +1,23 @@
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Cybrosys Techno Solutions(<https://www.cybrosys.com>)
#
# You can modify it under the terms of the GNU LESSER
# GENERAL PUBLIC LICENSE (LGPL 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 LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details.
#
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE
# (LGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
#############################################################################
from . import website_bookings
from . import theme_chef

34
theme_the_chef/models/theme_chef.py

@ -0,0 +1,34 @@
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Cybrosys Techno Solutions(<https://www.cybrosys.com>)
#
# You can modify it under the terms of the GNU LESSER
# GENERAL PUBLIC LICENSE (LGPL 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 LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details.
#
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE
# (LGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
#############################################################################
"""theme chef header"""
from odoo import models
class ThemeChef(models.AbstractModel):
"""Inherit the model theme.utils for adding new header file"""
_inherit = 'theme.utils'
def _theme_chef_post_copy(self):
"""For viewing default header"""
self.enable_view('theme_the_chef.template_header_default_inherited')
self.disable_view('website.template_header_default')

50
theme_the_chef/models/website_bookings.py

@ -0,0 +1,50 @@
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Cybrosys Techno Solutions(<https://www.cybrosys.com>)
#
# You can modify it under the terms of the GNU LESSER
# GENERAL PUBLIC LICENSE (LGPL 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 LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details.
#
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE
# (LGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
#############################################################################
"""Website Booking Orders"""
from odoo import api, fields, models
class WebsiteBookings(models.Model):
"""Model for storing the bookings details from the website"""
_name = 'website.bookings'
_description = 'Website Bookings'
booking = fields.Char(string='Booking Id', copy=False,
readonly=True, default='New',
help="Sequence for the booking orders")
name = fields.Char(string='Name', help="Name of the reserved person")
email = fields.Char(string='Email', help="Email of the reserved person")
phone = fields.Char(string='Phone',
help="Contact number of the reserved person")
date = fields.Date(string='Date', help="Reservation date")
time = fields.Float(string="Time", help="Reservation time")
persons = fields.Integer(string='Person',
help="Number of persons for the reservation")
notes = fields.Text(string='Notes', help="Add the extra information")
@api.model
def create(self, vals):
"""Function for generating sequence for the records"""
if vals.get('booking', 'New') == 'New':
vals['booking'] = self.env['ir.sequence'].next_by_code(
'website.bookings') or 'New'
return super().create(vals)

2
theme_the_chef/security/ir.model.access.csv

@ -0,0 +1,2 @@
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
access_website_bookings,access_website_bookings,theme_the_chef.model_website_bookings,base.group_user,1,1,1,1
1 id name model_id:id group_id:id perm_read perm_write perm_create perm_unlink
2 access_website_bookings access_website_bookings theme_the_chef.model_website_bookings base.group_user 1 1 1 1

BIN
theme_the_chef/static/description/banner.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 264 KiB

BIN
theme_the_chef/static/description/icon.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

BIN
theme_the_chef/static/description/images/1.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 480 KiB

BIN
theme_the_chef/static/description/images/2.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 290 KiB

BIN
theme_the_chef/static/description/images/3.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 551 KiB

BIN
theme_the_chef/static/description/images/4.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 308 KiB

BIN
theme_the_chef/static/description/images/5.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 360 KiB

BIN
theme_the_chef/static/description/images/6.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 240 KiB

BIN
theme_the_chef/static/description/images/Cybrosys.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 51 KiB

BIN
theme_the_chef/static/description/images/cybro-logo-oca-no-text.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

BIN
theme_the_chef/static/description/images/cybro-logo-oca.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

BIN
theme_the_chef/static/description/images/demo-1.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 390 KiB

BIN
theme_the_chef/static/description/images/demo-2.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 299 KiB

BIN
theme_the_chef/static/description/images/demo-3.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 322 KiB

BIN
theme_the_chef/static/description/images/hero.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 458 KiB

BIN
theme_the_chef/static/description/images/laptop-screenshots.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 581 KiB

BIN
theme_the_chef/static/description/images/phone-screenshots.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 737 KiB

264
theme_the_chef/static/description/index.html

@ -0,0 +1,264 @@
<!-- Hero Section -->
<div class="container pt-4 mt-4 rounded" style="background-color: #f0f2f4; font-family: Montserrat, 'sans-serif';">
<div class="row">
<div class="col-lg-12 mb-4">
<img src="images/Cybrosys.png" alt="Cybrosys Logo" style="width: 120px; height: auto;">
<hr style="border-color: #e1e5e9;" />
</div>
</div>
<div class="row">
<div class="col-lg-12 text-center">
<img src="images/hero.png" width=60% height="auto" class="mb-4" alt="Theme Screenshot">
</div>
<div class="col-lg-12 text-center">
<h1 class="mt-4">Theme The Chef</h1>
<p class="lead mb-4" style="max-width: 700px; margin: 0 auto;">
Theme The Chef is a popular attractive and unique front end theme for your restaurant website. Many
custom designed snippets facilitates to add better user experience. Just drag & drop the building
blocks you need to easily build your layout. All layouts are made of sections, that you can easily
combine to fit your specific project.It has simple and more attractive snippets.
</p>
</div>
</div>
<!-- End of Hero Section -->
<!-- Alternate Section -->
<div class="row p-4">
<div class="col-lg-6 px-4" style="margin-top: 100px;">
<h2>Desktop View</h2>
<p class="lead">
It is easy to customize and use. Just drag and drop the building blocks to make attractive webpages.
</p>
</div>
<div class="col-lg-6 px-4">
<img style="border-radius: 0.5em;" src="images/laptop-screenshots.jpg" width="90%" height="auto"
class="mb-4 shadow-sm" alt="Theme Screenshot">
</div>
</div>
<div class="row p-4">
<div class="col-lg-6 px-4">
<img style="border-radius: 0.5em;" src="images/phone-screenshots.jpg" width="90%" height="auto"
class="mb-4 shadow-sm" alt="Theme Screenshot">
</div>
<div class="col-lg-6 px-4" style="margin-top: 100px;">
<h2>Mobile View</h2>
<p class="lead">
User friendly and modern looking theme makes your page more Stylish And Beautiful.
</p>
</div>
</div>
<!-- End of Alternate Section -->
<!-- Two Columns Section -->
<div class="row p-4">
<!-- Column 1 -->
<div class="col-lg-6">
<div class="row">
<div class="col-lg-12">
<img style="border-radius: 0.5em;" src="images/1.jpg" width="100%" height="auto"
class="mb-4 shadow-sm" alt="Theme Screenshot">
</div>
<div class="col-lg-12 mt-4">
<h2 class="text-center">Main Banner with Slider</h2>
<p class="lead text-center">
It is easy to customize and use. Just drag and drop the building blocks to make attractive
webpages.
</p>
</div>
</div>
</div>
<!-- End of Column 1 -->
<!-- Column 2 -->
<div class="col-lg-6">
<div class="row">
<div class="col-lg-12">
<img style="border-radius: 0.5em;" src="images/2.jpg" width="100%" height="auto"
class="mb-4 shadow-sm" alt="Theme Screenshot">
</div>
<div class="col-lg-12 mt-4">
<h2 class="text-center">Reservation Form</h2>
<p class="lead text-center">
It is easy to customize and use. Just drag and drop the building blocks to make attractive
webpages.We can make reservations and store each details in database.
</p>
</div>
</div>
</div>
<!-- End of Column 2 -->
</div>
<!-- End of Two Columns Section -->
<!-- One Column Section -->
<div class="row p-4">
<div class="col-lg-6">
<img style="border-radius: 0.5em;" src="images/3.jpg" width="90%" height="auto" class="mb-4 shadow-sm"
alt="Theme Screenshot">
</div>
<div class="col-lg-6" style="padding-top: 100px;">
<h2>Overview</h2>
<p class="lead">
It is easy to customize and use. Just drag and drop the building blocks to make attractive webpages.
</p>
</div>
</div>
<!-- End of Two Columns Section -->
<!-- Two Columns Section -->
<div class="row p-4">
<!-- Column 1 -->
<div class="col-lg-4">
<div class="row">
<div class="col-lg-12">
<img style="border-radius: 0.5em;" src="images/4.jpg" width="100%" height="auto"
class="mb-4 shadow-sm" alt="Theme Screenshot">
</div>
<div class="col-lg-12 mt-4">
<h2 class="text-center">Testimonial Snippet</h2>
<p class="lead text-center">
It is easy to customize and use. Just drag and drop the building blocks to make attractive
webpages.
</p>
</div>
</div>
</div>
<!-- End of Column 1 -->
<!-- Column 2 -->
<div class="col-lg-4">
<div class="row">
<div class="col-lg-12">
<img style="border-radius: 0.5em;" src="images/5.jpg" width="100%" height="auto"
class="mb-4 shadow-sm" alt="Theme Screenshot">
</div>
<div class="col-lg-12 mt-4">
<h2 class="text-center">Main Dishes Snippet</h2>
<p class="lead text-center">
It is easy to customize and use. Just drag and drop the building blocks to make attractive
webpages.
</p>
</div>
</div>
</div>
<!-- End of Column 2 -->
<!-- Column 4 -->
<div class="col-lg-4">
<div class="row">
<div class="col-lg-12">
<img style="border-radius: 0.5em;" src="images/6.jpg" width="100%" height="auto"
class="mb-4 shadow-sm" alt="Theme Screenshot">
</div>
<div class="col-lg-12 mt-4">
<h2 class="text-center">Menu Snippet</h2>
<p class="lead text-center">
It is easy to customize and use. Just drag and drop the building blocks to make attractive
webpages.
</p>
</div>
</div>
</div>
<!-- End of Column 4 -->
</div>
<!-- End of Two Columns Section -->
<!-- Demo Pages -->
<section class="oe_container">
<div class="row" style="margin: 60px auto -30px;">
<div class="col-lg-12 text-center">
<h4 class="mt-4">Demo Sections</h4>
<hr style="border-width: 3px; border-color: #0984e3; width: 100px;">
</div>
</div>
<div class="row" style="margin: 40px auto; border-radius: 15px; padding: 38px;">
<div class="col-sm-6 col-md-4 px-2">
<div class="bg-white shadow overflow-hidden mb32"
style="border-radius: 15px; width: 300px; padding-bottom: 0; margin-right: 30px;">
<img src="./images/demo-1.jpg" width="300px" height="auto">
<h6 class="text-center my-3">Hero Slider &amp; Blogs</h6>
<hr style="border-width: 5px; border-color: #0984e3; width: 150px; margin-bottom: 0;">
</div>
</div>
<div class="col-sm-6 col-md-4 px-2">
<div class="bg-white shadow overflow-hidden mb32"
style="border-radius: 15px; width: 300px; padding-bottom: 0;">
<img src="./images/demo-2.jpg" width="300px" height="auto">
<h6 class="text-center my-3">Menu &amp; Testimonial</h6>
<hr style="border-width: 5px; border-color: #05c46b; width: 150px; margin-bottom: 0;">
</div>
</div>
<div class="col-sm-6 col-md-4 px-2">
<div class="bg-white shadow overflow-hidden mb32"
style="border-radius: 15px; width: 300px; padding-bottom: 0;">
<img src="./images/demo-3.jpg" width="300px" height="auto">
<h6 class="text-center my-3">Reservation Form &amp; Footer</h6>
<hr style="border-width: 5px; border-color: #f44f52; width: 150px; margin-bottom: 0;">
</div>
</div>
</div>
</section>
<!-- End of Demo Pages -->
<!-- Footer -->
<div class="row" style="margin-top: 4rem;">
<div class="col-lg-12 text-center">
<h2>Get Help</h2>
<hr style=" border: 2px solid #b22126; margin-top: 2px;" width="40px">
<p class="text-center" style="max-width: 650px; margin: 0 auto;">If you have anything to share with us
based
on
your use of this module, please let us know. We are ready to offer our support.</p>
</div>
</div>
<div class="row">
<div class="col px-4 pt-3 pb-2 shadow-sm"
style="background-color: #fff; max-width: 450px; border-radius: 0.5em; margin: 1em auto;">
<div class="row">
<div class="col-lg-8">
<h6><a href="mailto:odoo@cybrosys.com" target="_blank"
style="color: #050505; text-decoration: none;"><i
class="fa fa-envelope mr-2"></i>odoo@cybrosys.com</a></h6>
</div>
<div class="col-lg-4 d-flex justify-content-end" style="position: relative;">
<h6><a href="mailto:odoo@cybrosys.com" target="_blank"
style="color: #050505; text-decoration: none;"><i class="fa fa-chevron-right"></i></a>
</h6>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col px-4 pt-3 pb-2 shadow-sm"
style="background-color: #fff; max-width: 450px; border-radius: 0.5em; margin: 1em auto;">
<div class="row">
<div class="col-lg-8">
<h6><a href="https://www.cybrosys.com" target="_blank"
style="color: #050505; text-decoration: none;"><i
class="fa fa-globe mr-2"></i>www.cybrosys.com</a></h6>
</div>
<div class="col-lg-4 d-flex justify-content-end" style="position: relative;">
<h6><a href="https://www.cybrosys.com" target="_blank"
style="color: #050505; text-decoration: none;"><i class="fa fa-chevron-right"></i></a>
</h6>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-lg-12 mt-4 mb-2 text-center">
<p style="font-weight: bold">A Quality Theme From</p>
</div>
<div class="col-lg-12 text-center">
<img src="images/cybro-logo-oca.png" width="80px" height="auto">
</div>
</div>
<!-- End of Footer -->
</div>

BIN
theme_the_chef/static/description/theme_screenshot.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 830 KiB

7
theme_the_chef/static/src/css/animate.min.css

File diff suppressed because one or more lines are too long

6
theme_the_chef/static/src/css/owl.carousel.min.css

@ -0,0 +1,6 @@
/**
* Owl Carousel v2.3.4
* Copyright 2013-2018 David Deutsch
* Licensed under: SEE LICENSE IN https://github.com/OwlCarousel2/OwlCarousel2/blob/master/LICENSE
*/
.owl-carousel,.owl-carousel .owl-item{-webkit-tap-highlight-color:transparent;position:relative}.owl-carousel{display:none;width:100%;z-index:1}.owl-carousel .owl-stage{position:relative;-ms-touch-action:pan-Y;touch-action:manipulation;-moz-backface-visibility:hidden}.owl-carousel .owl-stage:after{content:".";display:block;clear:both;visibility:hidden;line-height:0;height:0}.owl-carousel .owl-stage-outer{position:relative;overflow:hidden;-webkit-transform:translate3d(0,0,0)}.owl-carousel .owl-item,.owl-carousel .owl-wrapper{-webkit-backface-visibility:hidden;-moz-backface-visibility:hidden;-ms-backface-visibility:hidden;-webkit-transform:translate3d(0,0,0);-moz-transform:translate3d(0,0,0);-ms-transform:translate3d(0,0,0)}.owl-carousel .owl-item{min-height:1px;float:left;-webkit-backface-visibility:hidden;-webkit-touch-callout:none}.owl-carousel .owl-item img{display:block;width:100%}.owl-carousel .owl-dots.disabled,.owl-carousel .owl-nav.disabled{display:none}.no-js .owl-carousel,.owl-carousel.owl-loaded{display:block}.owl-carousel .owl-dot,.owl-carousel .owl-nav .owl-next,.owl-carousel .owl-nav .owl-prev{cursor:pointer;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.owl-carousel .owl-nav button.owl-next,.owl-carousel .owl-nav button.owl-prev,.owl-carousel button.owl-dot{background:0 0;color:inherit;border:none;padding:0!important;font:inherit}.owl-carousel.owl-loading{opacity:0;display:block}.owl-carousel.owl-hidden{opacity:0}.owl-carousel.owl-refresh .owl-item{visibility:hidden}.owl-carousel.owl-drag .owl-item{-ms-touch-action:pan-y;touch-action:pan-y;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.owl-carousel.owl-grab{cursor:move;cursor:grab}.owl-carousel.owl-rtl{direction:rtl}.owl-carousel.owl-rtl .owl-item{float:right}.owl-carousel .animated{animation-duration:1s;animation-fill-mode:both}.owl-carousel .owl-animated-in{z-index:0}.owl-carousel .owl-animated-out{z-index:1}.owl-carousel .fadeOut{animation-name:fadeOut}@keyframes fadeOut{0%{opacity:1}100%{opacity:0}}.owl-height{transition:height .5s ease-in-out}.owl-carousel .owl-item .owl-lazy{opacity:0;transition:opacity .4s ease}.owl-carousel .owl-item .owl-lazy:not([src]),.owl-carousel .owl-item .owl-lazy[src^=""]{max-height:0}.owl-carousel .owl-item img.owl-lazy{transform-style:preserve-3d}.owl-carousel .owl-video-wrapper{position:relative;height:100%;background:#000}.owl-carousel .owl-video-play-icon{position:absolute;height:80px;width:80px;left:50%;top:50%;margin-left:-40px;margin-top:-40px;background:url(owl.video.play.png) no-repeat;cursor:pointer;z-index:1;-webkit-backface-visibility:hidden;transition:transform .1s ease}.owl-carousel .owl-video-play-icon:hover{-ms-transform:scale(1.3,1.3);transform:scale(1.3,1.3)}.owl-carousel .owl-video-playing .owl-video-play-icon,.owl-carousel .owl-video-playing .owl-video-tn{display:none}.owl-carousel .owl-video-tn{opacity:0;height:100%;background-position:center center;background-repeat:no-repeat;background-size:contain;transition:opacity .4s ease}.owl-carousel .owl-video-frame{position:relative;z-index:1;height:100%;width:100%}

6
theme_the_chef/static/src/css/owl.theme.default.min.css

@ -0,0 +1,6 @@
/**
* Owl Carousel v2.3.4
* Copyright 2013-2018 David Deutsch
* Licensed under: SEE LICENSE IN https://github.com/OwlCarousel2/OwlCarousel2/blob/master/LICENSE
*/
.owl-theme .owl-dots,.owl-theme .owl-nav{text-align:center;-webkit-tap-highlight-color:transparent}.owl-theme .owl-nav{margin-top:10px}.owl-theme .owl-nav [class*=owl-]{color:#FFF;font-size:14px;margin:5px;padding:4px 7px;background:#D6D6D6;display:inline-block;cursor:pointer;border-radius:3px}.owl-theme .owl-nav [class*=owl-]:hover{background:#869791;color:#FFF;text-decoration:none}.owl-theme .owl-nav .disabled{opacity:.5;cursor:default}.owl-theme .owl-nav.disabled+.owl-dots{margin-top:10px}.owl-theme .owl-dots .owl-dot{display:inline-block;zoom:1}.owl-theme .owl-dots .owl-dot span{width:10px;height:10px;margin:5px 7px;background:#D6D6D6;display:block;-webkit-backface-visibility:visible;transition:opacity .2s ease;border-radius:30px}.owl-theme .owl-dots .owl-dot.active span,.owl-theme .owl-dots .owl-dot:hover span{background:#869791}

1574
theme_the_chef/static/src/css/style.css

File diff suppressed because it is too large

BIN
theme_the_chef/static/src/img/about/abt1.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 80 KiB

BIN
theme_the_chef/static/src/img/about/abt2.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 49 KiB

BIN
theme_the_chef/static/src/img/about/abt3.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

BIN
theme_the_chef/static/src/img/about/hero-2.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 487 KiB

BIN
theme_the_chef/static/src/img/banner/hero-1.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 294 KiB

BIN
theme_the_chef/static/src/img/banner/hero-2.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 416 KiB

BIN
theme_the_chef/static/src/img/banner/hero-3.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 282 KiB

BIN
theme_the_chef/static/src/img/dishes/cake.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 MiB

BIN
theme_the_chef/static/src/img/dishes/steak.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 MiB

BIN
theme_the_chef/static/src/img/flag/1.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 94 KiB

BIN
theme_the_chef/static/src/img/flag/2.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

BIN
theme_the_chef/static/src/img/flag/3.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 65 KiB

BIN
theme_the_chef/static/src/img/menu/breakfast-1.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 73 KiB

BIN
theme_the_chef/static/src/img/menu/breakfast-2.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 56 KiB

BIN
theme_the_chef/static/src/img/menu/breakfast-3.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 71 KiB

BIN
theme_the_chef/static/src/img/reservation/reservation-bg.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 308 KiB

BIN
theme_the_chef/static/src/img/snippets/about.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.5 KiB

BIN
theme_the_chef/static/src/img/snippets/banner.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.2 KiB

BIN
theme_the_chef/static/src/img/snippets/branches.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.4 KiB

BIN
theme_the_chef/static/src/img/snippets/happy.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.6 KiB

BIN
theme_the_chef/static/src/img/snippets/menu.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.5 KiB

BIN
theme_the_chef/static/src/img/snippets/reservation.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.0 KiB

BIN
theme_the_chef/static/src/img/snippets/special.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.2 KiB

BIN
theme_the_chef/static/src/img/snippets/special_left.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.0 KiB

BIN
theme_the_chef/static/src/img/snippets/team.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.5 KiB

BIN
theme_the_chef/static/src/img/team/chef-1.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 245 KiB

BIN
theme_the_chef/static/src/img/team/chef-2.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 232 KiB

BIN
theme_the_chef/static/src/img/team/chef-3.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 178 KiB

BIN
theme_the_chef/static/src/img/testimonial/testi-bg.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 362 KiB

81
theme_the_chef/static/src/js/custom.js

@ -0,0 +1,81 @@
odoo.define('theme_the_chef.custom', function(require) {
"use strict"
// Function of Slider
var PublicWidget = require('web.public.widget');
var Slider = PublicWidget.Widget.extend({
selector: '.banner',
start: function() {
var self = this;
self.onSlider();
},
onSlider: function() {
var self = this;
this.$("#slider").owlCarousel({
items: 1,
loop: true,
margin: 30,
stagePadding: 30,
smartSpeed: 450,
autoplay: true,
autoPlaySpeed: 1000,
autoPlayTimeout: 1000,
autoplayHoverPause: true,
dots: false,
nav: true,
navText: ['<i class="fa fa-angle-left"></i>', '<i class="fa fa-angle-right"></i>']
});
function counter() {
var buttons = self.$el.find('.owl-dots button');
buttons.each(function(index, item) {
$(item).find('span').text(index + 1);
});
}
this.$("#slider2").owlCarousel({
items: 1,
loop: true,
smartSpeed: 450,
autoplay: true,
autoPlaySpeed: 1000,
autoPlayTimeout: 1000,
autoplayHoverPause: true,
onInitialized: counter,
dots: true,
});
function counter() {
var buttons = self.$el.find('.owl-dots button');
buttons.each(function(index, item) {
$(item).find('span').index + 1;
});
}
var inputEle = document.getElementById('timeInput');
function onTimeChange() {
var timeSplit = inputEle.value.split(':'),
hours,
minutes,
meridian;
hours = timeSplit[0];
minutes = timeSplit[1];
if (hours > 12) {
meridian = 'PM';
hours -= 12;
} else if (hours < 12) {
meridian = 'AM';
if (hours == 0) {
hours = 12;
}
} else {
meridian = 'PM';
}
alert(hours + ':' + minutes + ' ' + meridian);
}
}
});
PublicWidget.registry.banner = Slider;
return Slider;
});

23
theme_the_chef/static/src/js/date_selection.js

@ -0,0 +1,23 @@
odoo.define('theme_the_chef.date_selection', function (require) {
"use strict"
// Date Selection
var PublicWidget = require('web.public.widget');
var rpc = require('web.rpc');
var DateSelection = PublicWidget.Widget.extend({
selector: '.booking',
start: function() {
var self = this;
this._onClick();
},
_onClick: function () {
var self = this;
if(self.$el.find('#date-picker').length){
this.$el.find('#date-picker')[0].min = new Date().toISOString().split("T")[0];
}
},
});
PublicWidget.registry.booking = DateSelection;
return DateSelection;
});

3448
theme_the_chef/static/src/js/owl.carousel.js

File diff suppressed because it is too large

30
theme_the_chef/views/layout.xml

@ -0,0 +1,30 @@
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<template id="custom_message" inherit_id="website.layout" name="Custom head">
<!-- Add an element after the top menu -->
<xpath expr="//div[@id='wrapwrap']/main" position="after">
<html lang="en">
<head>
<meta charset="UTF-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<title>The Chef</title>
<!-- bootstrap css` -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.5.3/dist/css/bootstrap.min.css"
integrity="sha384-TX8t27EcRE3e/ihU7zmQxVncDAy5uIKz4rEkgIXeMed4M0jlfIDPvg6uqKI2xXr2" crossorigin="anonymous"/>
<!-- google icon css` -->
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet"/>
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.7.0/css/all.css"
integrity="sha384-lZN37f5QGtY3VHgisS14W3ExzMWZxybE1SJSEsQp9S+oqd12jhcu+A56Ebc1zFSJ" crossorigin="anonymous"/>
<!-- google font css -->
<link href="https://fonts.googleapis.com/css2?family=Josefin+Sans:wght@100;200;300;400;500;600;700&amp;display=swap" rel="stylesheet"/>
<link href="https://fonts.googleapis.com/css2?family=Josefin+Sans:wght@100;200;300;400;500;600;700&amp;family=Satisfy&amp;display=swap" rel="stylesheet"/>
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@600&amp;display=swap" rel="stylesheet"/>
</head>
<body>
<section class="main_body">
</section>
</body>
</html>
</xpath>
</template>
</odoo>

76
theme_the_chef/views/snippets/about.xml

@ -0,0 +1,76 @@
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<template id="about" name="About">
<section class="main_body">
<!-- Section about starts here -->
<section class="about pt-5">
<div class="container">
<div class="row">
<!-- Section about starts here -->
<div class="col-lg-5 col-md-6 col-12">
<div class="about_img">
<img src="/theme_the_chef/static/src/img/about/hero-2.jpg"/>
</div>
</div>
<div class="col-lg-7 col-md-6 col-12">
<div class="about_details">
<div class="wrapper">
<p class="red">About</p>
<h3>
Welcome to The Chef
</h3>
<p class="para">Lorem ipsum dolor sit amet,
consectetur adipiscing elit, sed do
eiusmod tempor
incididunt ut labore et dolore magna
aliqua. Ut enim ad minim veniam, quis
nostrud exercitation
ullamco laboris nisi ut aliquip ex ea
commodo consequat. Duis aute irure dolor
in reprehenderit in
voluptate velit esse cillum dolore eu
fugiat nulla pariatur. Excepteur sint
occaecat cupidatat non
proident,
sunt in culpa qui officia deserunt
mollit anim id est laborum.
</p>
<h4>
Special Recipe
</h4>
<div class="recipe">
<div class="s_c">
<a href="#" class="abt_img">
<img src="/theme_the_chef/static/src/img/about/abt1.jpg"/>
</a>
<a href="#">
<p>Australian Organic Beef</p>
</a>
</div>
<div class="s_c">
<a href="#" class="abt_img">
<img src="/theme_the_chef/static/src/img/about/abt2.jpg"/>
</a>
<a href="#">
<p>Australian Organic Beef</p>
</a>
</div>
<div class="s_c">
<a href="#" class="abt_img">
<img src="/theme_the_chef/static/src/img/about/abt3.jpg"/>
</a>
<a href="#">
<p>Australian Organic Beef</p>
</a>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- Section about ends here -->
</section>
</template>
</odoo>

57
theme_the_chef/views/snippets/banner.xml

@ -0,0 +1,57 @@
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<template id="banner" name="Banner">
<section class="main_body">
<!-- Banner section starts here -->
<section class="banner" style="padding-top: 20px;">
<div class="container">
<div class="banner_contents">
<div class="row">
<div class="col-lg-6 col-12">
<div class="banner_left">
<h1>We Serve
<br/> Delicious Foods!</h1>
<a href="#" class="btn draw-border">Explore Menu</a>
<a href="#" class="btn btn-video">
<i class="fa fa-play"/>
Play video</a>
<div class="service">
<div class="s_c">
<span class="fa fa-truck"/>
<p>Fast Delivery</p>
</div>
<div class="s_c">
<span class="fa fa-leaf"/>
<p>Fresh Food</p>
</div>
<div class="s_c">
<span class="fa fa-headphones"/>
<p>24/7 Support</p>
</div>
</div>
</div>
</div>
<div class="col-lg-6 col-12">
<div class="banner_right">
<div class="owl-carousel" id="slider">
<div>
<div class="right_bg">
<img src="/theme_the_chef/static/src/img/banner/hero-1.jpg"/>
</div>
</div>
<div> <img src="/theme_the_chef/static/src/img/banner/hero-2.jpg"/></div>
<div> <img src="/theme_the_chef/static/src/img/banner/hero-3.jpg"/></div>
</div>
<div class="slider-counter">
</div>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- Banner section starts here -->
</section>
</template>
</odoo>

93
theme_the_chef/views/snippets/branches.xml

@ -0,0 +1,93 @@
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<template id="branches" name="Branches">
<section class="main_body">
<!-- location -->
<section class="location">
<div class="container">
<div class="wrapper">
<div class="section_heading">
<br/>
<h3>
Our Branches
</h3>
</div>
<div class="location_content">
<div class="row">
<div class="col-lg-4 col-md-4 col-sm-12 pb-5 pb-md-0 pb-lg-0 ">
<div class="wrapper">
<div class="flag">
<img src="/theme_the_chef/static/src/img/flag/1.jpg"/>
</div>
<div class="address">
<h5>HQ - San Mateo, CA</h5>
<ul>
<li>2950 S. Delaware Street,
Suite 201
</li>
<li>San Mateo CA 94403</li>
<li>Reception/General enquiries:
+1 650 513 0514
</li>
<li>Availability: (Mon-Fri) 9AM
to 5PM PST
</li>
</ul>
</div>
</div>
</div>
<div class="col-lg-4 col-md-4 col-sm-12 pb-5 pb-md-0 pb-lg-0">
<div class="wrapper">
<div class="flag">
<img src="/theme_the_chef/static/src/img/flag/2.jpg"/>
</div>
<div class="address">
<h5>UAE Dubai</h5>
<ul>
<li>2950 S. Delaware Street,
Suite 201
</li>
<li>San Mateo CA 94403</li>
<li>Reception/General enquiries:
+1 650 513 0514
</li>
<li>Availability: (Mon-Fri) 9AM
to 5PM PST
</li>
</ul>
</div>
</div>
</div>
<div class="col-lg-4 col-md-4 col-sm-12 pb-5 pb-md-0 pb-lg-0">
<div class="wrapper">
<div class="flag">
<img src="/theme_the_chef/static/src/img/flag/3.jpg"/>
</div>
<div class="address">
<h5>Chennai, India</h5>
<ul>
<li>2950 S. Delaware Street,
Suite 201
</li>
<li>San Mateo CA 94403</li>
<li>Reception/General enquiries:
+1 650 513 0514
</li>
<li>Availability: (Mon-Fri) 9AM
to 5PM PST
</li>
</ul>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
</section>
</template>
</odoo>

100
theme_the_chef/views/snippets/happy.xml

@ -0,0 +1,100 @@
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<template id="happy" name="Happy">
<section class="main_body">
<!-- Section testimonial starts here -->
<section class="happy">
<div class="container-fluid p-0">
<div class="happy_img">
<div class="test_slider">
<div class="section_heading">
<p>Testimony</p>
<h3>
Happy Customer
</h3>
</div>
<div class="owl-carousel" id="slider2">
<div>
<div class="test_content">
<i class="fa fa-quote-left"/>
<p>
Lorem ipsum dolor sit amet,
consectetur adipisicing elit. animi
doloribus voluptates
<br/>
ea vero alias perferendis quas animi
doloribus voluptates.consectetur
adipisicing elit.
</p>
<div class="name">
<p>
Jhon Doe
</p>
<div class="position">
CEO of
<span class="nn">
Cybrosys
</span>
</div>
</div>
</div>
</div>
<div>
<div class="test_content">
<i class="fa fa-quote-left"/>
<p>
Lorem ipsum dolor sit amet,
consectetur adipisicing elit. animi
doloribus voluptates
<br/>
ea vero alias perferendis quas animi
doloribus voluptates.consectetur
adipisicing elit.
</p>
<div class="name">
<p>
Jhon Doe
</p>
<div class="position">
CEO of
<span class="nn">
Cybrosys
</span>
</div>
</div>
</div>
</div>
<div>
<div class="test_content">
<i class="fa fa-quote-left"/>
<p>
Lorem ipsum dolor sit amet,
consectetur adipisicing elit. animi
doloribus voluptates
<br/>
ea vero alias perferendis quas animi
doloribus voluptates.consectetur
adipisicing elit.
</p>
<div class="name">
<p>
Jhon Doe
</p>
<div class="position">
CEO of
<span class="nn">
Cybrosys
</span>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- Section testimonial ends here -->
</section>
</template>
</odoo>

247
theme_the_chef/views/snippets/menu.xml

@ -0,0 +1,247 @@
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<template id="menu" name="Menu">
<section class="main_body">
<!-- Section menu starts here -->
<section class="menu pt-5">
<div class="container">
<div class="section_heading">
<p class="sub">Specialities</p>
<h3>
Our Menus
</h3>
</div>
<div class="menu_iems">
<div class="row">
<div class="col-lg-4 col-md-6 col-12 pb-md-5 pb-sm-5">
<h4>
Breakfast
</h4>
<div class="col-lg-12 col-sm-12 col-12">
<div class="wrapper">
<div class="items d-flex">
<div class="item_img">
<img src="/theme_the_chef/static/src/img/menu/breakfast-1.jpg" alt=""/>
</div>
<div class="wrapper2">
<ul class="item_info">
<li>
Egg Sandwich
</li>
<li>
$30
</li>
</ul>
<p>
Meat Ball, Mie
</p>
</div>
</div>
</div>
</div>
<div class="col-lg-12 col-sm-12 col-12">
<div class="wrapper">
<div class="items d-flex">
<div class="item_img">
<img src="/theme_the_chef/static/src/img/menu/breakfast-2.jpg" alt=""/>
</div>
<div class="wrapper2">
<ul class="item_info">
<li>
Egg Sandwich
</li>
<li>
$30
</li>
</ul>
<p>
Meat Ball, Mie
</p>
</div>
</div>
</div>
</div>
<div class="col-lg-12 col-sm-12 col-12">
<div class="wrapper">
<div class="items d-flex">
<div class="item_img">
<img src="/theme_the_chef/static/src/img/menu/breakfast-3.jpg" alt=""/>
</div>
<div class="wrapper2">
<ul class="item_info">
<li>
Egg Sandwich
</li>
<li>
$30
</li>
</ul>
<p>
Meat Ball, Mie
</p>
</div>
</div>
</div>
</div>
</div>
<div class="col-lg-4 col-md-6 col-12 pb-md-5 pb-sm-5">
<h4>
Breakfast
</h4>
<div class="col-lg-12 col-sm-12 col-12">
<div class="wrapper">
<div class="items d-flex">
<div class="item_img">
<img src="/theme_the_chef/static/src/img/menu/breakfast-1.jpg" alt=""/>
</div>
<div class="wrapper2">
<ul class="item_info">
<li>
Egg Sandwich
</li>
<li>
$30
</li>
</ul>
<p>
Meat Ball, Mie
</p>
</div>
</div>
</div>
</div>
<div class="col-lg-12 col-sm-12 col-12">
<div class="wrapper">
<div class="items d-flex">
<div class="item_img">
<img src="/theme_the_chef/static/src/img/menu/breakfast-2.jpg" alt=""/>
</div>
<div class="wrapper2">
<ul class="item_info">
<li>
Egg Sandwich
</li>
<li>
$30
</li>
</ul>
<p>
Meat Ball, Mie
</p>
</div>
</div>
</div>
</div>
<div class="col-lg-12 col-sm-12 col-12">
<div class="wrapper">
<div class="items d-flex">
<div class="item_img">
<img src="/theme_the_chef/static/src/img/menu/breakfast-3.jpg" alt=""/>
</div>
<div class="wrapper2">
<ul class="item_info">
<li>
Egg Sandwich
</li>
<li>
$30
</li>
</ul>
<p>
Meat Ball, Mie
</p>
</div>
</div>
</div>
</div>
</div>
<div class="col-lg-4 col-md-6 col-12 ">
<h4>
Breakfast
</h4>
<div class="col-lg-12 col-sm-12 col-12">
<div class="wrapper">
<div class="items d-flex">
<div class="item_img">
<img src="/theme_the_chef/static/src/img/menu/breakfast-1.jpg" alt=""/>
</div>
<div class="wrapper2">
<ul class="item_info">
<li>
Egg Sandwich
</li>
<li>
$30
</li>
</ul>
<p>
Meat Ball, Mie
</p>
</div>
</div>
</div>
</div>
<div class="col-lg-12 col-sm-12 col-12">
<div class="wrapper">
<div class="items d-flex">
<div class="item_img">
<img src="/theme_the_chef/static/src/img/menu/breakfast-2.jpg" alt=""/>
</div>
<div class="wrapper2">
<ul class="item_info">
<li>
Egg Sandwich
</li>
<li>
$30
</li>
</ul>
<p>
Meat Ball, Mie
</p>
</div>
</div>
</div>
</div>
<div class="col-lg-12 col-sm-12 col-12">
<div class="wrapper">
<div class="items d-flex">
<div class="item_img">
<img src="/theme_the_chef/static/src/img/menu/breakfast-3.jpg" alt=""/>
</div>
<div class="wrapper2">
<ul class="item_info">
<li>
Egg Sandwich
</li>
<li>
$30
</li>
</ul>
<p>
Meat Ball, Mie
</p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- Section menu ends here -->
</section>
</template>
</odoo>

110
theme_the_chef/views/snippets/reservation.xml

@ -0,0 +1,110 @@
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<template id="reservation" name="Reservation">
<section class="main_body">
<!-- Section booking starts here -->
<section class="booking pt-5">
<div class="container-fluid">
<div class="booking_bg">
<div class="row">
<div class="col-lg-4 offset-lg-2 col-md-6 offset-md-3 col-sm-10 offset-sm-1 col-10 offset-1">
<div class="booking_form">
<div class="section_heading">
<p class="sub">Specialities</p>
<h3>
Booking
</h3>
</div>
<form action="/book_now"
class="o_mark_required reservation"
data-mark="*">
<div class="row">
<div class="col-12">
<div class="form-group">
<input type="text"
name="name"
class="form-control"
id="usr"
placeholder="Name"
required="1"/>
</div>
</div>
<div class="col-12">
<div class="form-group">
<input type="email"
name="email"
class="form-control"
id="usr"
placeholder="Email"/>
</div>
</div>
<div class="col-12">
<div class="form-group">
<input type="number"
name="phone"
class="form-control"
id="usr"
placeholder="Phone"
required="1"/>
</div>
</div>
<div class="col-lg-6 col-md-6 col-12">
<div id="datepicker"
class="input-group date form-group"
data-date-format="mm-dd-yyyy">
<input type="date"
name="date"
class="form-control"
id="date-picker"
required="1"/>
</div>
</div>
<div class="col-lg-6 col-md-6 col-12">
<div class="input-group time form-group">
<input type="time"
name="time"
class="form-control"
id="timeInput"
required="1"/>
</div>
</div>
<div class="col-12">
<div class="form-group">
<select name="persons"
id="persons_drop_down"
class="form-control">
<option value="">
Persons
</option>
<option value="1">1
</option>
<option value="2">2
</option>
<option value="3">3
</option>
</select>
</div>
</div>
<div class="col-12">
<div class="form-group">
<textarea name="notes" id=""
cols="" rows="10"
style="width: 100%;"/>
</div>
</div>
<button type="submit"
class="btn btn-booking">Book
Now
</button>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</section>
</section>
</template>
</odoo>

52
theme_the_chef/views/snippets/special.xml

@ -0,0 +1,52 @@
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<template id="special" name="Special">
<section class="main_body">
<!-- Section dishes starts here -->
<section class="dishes pt-5">
<div class="container">
<div class="section_heading">
<p class="sub">Specialities</p>
<h3>
Special Dishes
</h3>
</div>
<div class="dishes_details">
<div class="row">
<div class="col-lg-5 col-md-6">
<div class="dishes_left">
<h2>
01.
</h2>
<div class="dish_info">
<h3>
Beef<br/>
<span>
Steak Sauce
</span>
</h3>
<p>
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Cupiditate, ea vero alias perferendis
quas animi doloribus voluptates. Atque explicabo ea nesciunt provident libero qui eum, corporis esse
quos excepturi soluta?
</p>
<div class="price">
$10.00
</div>
<a href="#" class="btn btn-order"> Order now</a>
</div>
</div>
</div>
<div class="col-lg-6 offset-lg-1 col-md-6 offset-md-0">
<div class="dish_img">
<img src="/theme_the_chef/static/src/img/dishes/steak.jpg"/>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- Section dishes starts here -->
</section>
</template>
</odoo>

75
theme_the_chef/views/snippets/special_left.xml

@ -0,0 +1,75 @@
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<template id="special_left" name="Special Left">
<section class="main_body">
<!-- Section dishes starts here -->
<section class="dishes pt-5" id="dishes_left">
<div class="container">
<div class="dishes_details">
<div class="row mt-5">
<div class="col-lg-6 col-md-6 d-none d-lg-block d-md-block">
<div class="dish_img">
<img src="/theme_the_chef/static/src/img/dishes/cake.jpg"/>
</div>
</div>
<div class="col-lg-5 offset-lg-1 offset-md-0 col-md-6 d-none d-lg-block d-md-block">
<div class="dishes_left">
<h2>
01.
</h2>
<div class="dish_info">
<h3>
Beef<br/>
<span>
Steak Sauce
</span>
</h3>
<p>
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Cupiditate, ea vero alias perferendis
quas animi doloribus voluptates. Atque explicabo ea nesciunt provident libero qui eum, corporis esse
quos excepturi soluta?
</p>
<div class="price">
$10.00
</div>
<a href="#" class="btn btn-order">Order now</a>
</div>
</div>
</div>
<div class="col-lg-5 offset-lg-1 offset-md-0 col-md-6 d-lg-none d-block d-md-none">
<div class="dishes_left">
<h2>
01.
</h2>
<div class="dish_info">
<h3>
Beef<br/>
<span>
Steak Sauce
</span>
</h3>
<p>
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Cupiditate, ea vero alias perferendis
quas animi doloribus voluptates. Atque explicabo ea nesciunt provident libero qui eum, corporis esse
quos excepturi soluta?
</p>
<div class="price">
$10.00
</div>
<a href="#" class="btn btn-order">Order now</a>
</div>
</div>
</div>
<div class="col-lg-6 col-md-6 d-lg-none d-block d-md-none">
<div class="dish_img">
<img src="/theme_the_chef/static/src/img/dishes/steak.jpg"/>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- Section dishes starts here -->
</section>
</template>
</odoo>

104
theme_the_chef/views/snippets/team.xml

@ -0,0 +1,104 @@
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<template id="team" name="Team">
<section class="main_body">
<!-- Section team starts here -->
<section class="team pt-5">
<div class="container">
<div class="wrapper">
<div class="section_heading">
<p class="sub">Specialities</p>
<h3>
Our Team
</h3>
</div>
<div class="row">
<div class="col-lg-4 col-md-4 col-12">
<div class="team_wrapper">
<div class="team_img"
style="background-image:url(/theme_the_chef/static/src/img/team/chef-1.jpg)">
<div class="details">
<div class="name">
Carl Jhon
</div>
<p>CEO</p>
<div class="footer_icon">
<a href="#">
<span class="fa fa-pinterest"/>
</a>
<a href="#">
<span class="fa fa-linkedin"/>
</a>
<a href="#">
<span class="fa fa-facebook"/>
</a>
<a href="#">
<span class="fa fa-twitter"/>
</a>
</div>
</div>
</div>
</div>
</div>
<div class="col-lg-4 col-md-4 col-12">
<div class="team_wrapper">
<div class="team_img"
style="background-image:url(/theme_the_chef/static/src/img/team/chef-2.jpg)">
<div class="details">
<div class="name">
Carl Jhon
</div>
<p>CEO</p>
<div class="footer_icon">
<a href="#">
<span class="fa fa-pinterest"/>
</a>
<a href="#">
<span class="fa fa-linkedin"/>
</a>
<a href="#">
<span class="fa fa-facebook"/>
</a>
<a href="#">
<span class="fa fa-twitter"/>
</a>
</div>
</div>
</div>
</div>
</div>
<div class="col-lg-4 col-md-4 col-12">
<div class="team_wrapper">
<div class="team_img"
style="background-image:url(/theme_the_chef/static/src/img/team/chef-3.jpg)">
<div class="details">
<div class="name">
Carl Jhon
</div>
<p>CEO</p>
<div class="footer_icon">
<a href="#">
<span class="fa fa-pinterest"/>
</a>
<a href="#">
<span class="fa fa-linkedin"/>
</a>
<a href="#">
<span class="fa fa-facebook"/>
</a>
<a href="#">
<span class="fa fa-twitter"/>
</a>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- Section team ends here -->
</section>
</template>
</odoo>

112
theme_the_chef/views/templates.xml

@ -0,0 +1,112 @@
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<data>
<!-- Template for user icon-->
<template id="template_header_default_inherited" inherit_id="portal.user_dropdown">
<xpath expr="//span" position="replace">
<span t-if="_user_name" t-attf-class="fa fa-1x fa-fw fa-user-circle-o #{_icon_class}"/>
</xpath>
</template>
<!-- Template for footer-->
<template id="footer_default_sample" inherit_id="website.layout" name="Footer Sample">
<xpath expr="//div[@id='footer']" position="replace">
<section class="main_body">
<!-- Section footer starts here -->
<footer class="footer">
<div class="container-fluid">
<div class="footer_content">
<div class="row">
<div class="col-lg-3 offset-lg-1 col-md-4 col-sm-12 pb-5 pb-md-0 pb-lg-0 ">
<div class="wrapper">
<div class="brand">
<a class="navbar-brand" href="index.html">The Chef</a>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit.
Et obcaecati quisquam id sit omnis
explicabo voluptate aut placeat, soluta,
nisi ea magni facere, itaque incidunt modi? Magni,
et voluptatum dolorem.
</p>
<div class="footer_icon">
<a href="#">
<span class="fa fa-pinterest"/>
</a>
<a href="#">
<span class="fa fa-linkedin"/>
</a>
<a href="#">
<span class="fa fa-facebook"/>
</a>
<a href="#">
<span class="fa fa-twitter"/>
</a>
</div>
</div>
</div>
</div>
<div class="col-lg-3 col-md-4 col-sm-12 pb-5 pb-md-0 pb-lg-0">
<div class="wrapper">
<h4>Open Hours</h4>
<ul class="list-unstyled open-hours">
<li class="d-flex justify-content-between">
<span>Monday</span>
<span>9:00 - 24:00</span>
</li>
<li class="d-flex justify-content-between">
<span>Tuesday</span>
<span>9:00 - 24:00</span>
</li>
<li class="d-flex justify-content-between">
<span>Wednesday</span>
<span>9:00 - 24:00</span>
</li>
<li class="d-flex justify-content-between">
<span>Thursday</span>
<span>9:00 - 24:00</span>
</li>
<li class="d-flex justify-content-between">
<span>Friday</span>
<span>9:00 - 02:00</span>
</li>
<li class="d-flex justify-content-between">
<span>Saturday</span>
<span>9:00 - 02:00</span>
</li>
<li class="d-flex justify-content-between">
<span>Sunday</span>
<span>Closed</span>
</li>
</ul>
</div>
</div>
<div class="col-lg-3 offset-lg-1 col-md-4 col-sm-12 pb-5 pb-md-0 pb-lg-0">
<div class="wrapper">
<h4>Open Hours</h4>
<p>
Lorem ipsum dolor sit amet, consectetur adipisicing elit.
</p>
<div class="">
<div class="form-group">
<input type="text" class="form-control" id="usr"
placeholder="Enter Email"/>
</div>
</div>
<a href="#" class="btn btn-submit">Submit</a>
</div>
</div>
</div>
<div class="footer_bottom">
<p>Copy right © <a href="#">Cybrosys.com</a> All rights reserved
</p>
</div>
</div>
</div>
</footer>
</section>
</xpath>
</template>
</data>
</odoo>

70
theme_the_chef/views/website_bookings.xml

@ -0,0 +1,70 @@
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<data>
<!-- tree view-->
<record id="website_bookings_view_tree" model="ir.ui.view">
<field name="name">website.bookings.view.tree</field>
<field name="model">website.bookings</field>
<field name="arch" type="xml">
<tree>
<field name="booking"/>
<field name="name"/>
<field name="date"/>
</tree>
</field>
</record>
<!-- form view-->
<record id="website_bookings_view_form" model="ir.ui.view">
<field name="name">website.bookings.view.form</field>
<field name="model">website.bookings</field>
<field name="arch" type="xml">
<form>
<sheet>
<h1>
<field name="booking"/>
</h1>
<group>
<group>
<field name="name"/>
<field name="email"/>
<field name="phone"/>
</group>
<group>
<group>
<field name="date"/>
</group>
<group>
<field name="time" widget="float_time"/>
</group>
<group>
<field name="persons"/>
<field name="notes"/>
</group>
</group>
</group>
</sheet>
</form>
</field>
</record>
<!-- action-->
<record id="website_bookings_action" model="ir.actions.act_window">
<field name="name">Website Bookings</field>
<field name="res_model">website.bookings</field>
<field name="view_mode">tree,form</field>
<field name="help" type="html">
<p>
Odoo's website management allows you to manage the pipeline
of your bookings efficiently. You can
track progress, discuss on jobs etc.
</p>
</field>
</record>
<!-- menus and submenus-->
<menuitem name="Bookings" sequence="1" id="website_bookings_menu_action"
parent="website_sale.menu_orders"
action="website_bookings_action"/>
</data>
</odoo>

19
theme_the_chef/views/website_bookings_submit.xml

@ -0,0 +1,19 @@
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<!-- success message for booking-->
<template id="website_bookings_form_success"
name="Booking Submitted Successfully">
<t t-call="website.layout">
<div id="wrap">
<br/>
<div class="container">
<div class="col-md-12">
<div class="alert alert-success">
Booking Done successfully.
</div>
</div>
</div>
</div>
</t>
</template>
</odoo>

30
theme_the_chef/views/website_snippet.xml

@ -0,0 +1,30 @@
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<!-- Inherit website snippets-->
<template id="website_snippet" inherit_id="website.snippets"
name="Website Snippet">
<xpath expr="//div[@id='snippet_structure']/div[hasclass('o_panel_body')]"
position="inside">
<t t-snippet="theme_the_chef.about"
t-thumbnail="/theme_the_chef/static/src/img/snippets/about.jpg"/>
<t t-snippet="theme_the_chef.banner"
t-thumbnail="/theme_the_chef/static/src/img/snippets/banner.jpg"/>
<t t-snippet="theme_the_chef.branches"
t-thumbnail="/theme_the_chef/static/src/img/snippets/branches.jpg"/>
<t t-snippet="theme_the_chef.happy"
t-thumbnail="/theme_the_chef/static/src/img/snippets/happy.jpg"/>
<t t-snippet="theme_the_chef.menu"
t-thumbnail="/theme_the_chef/static/src/img/snippets/menu.jpg"/>
<t t-snippet="theme_the_chef.reservation"
t-thumbnail="/theme_the_chef/static/src/img/snippets/reservation.jpg"/>
<t t-snippet="theme_the_chef.special"
t-thumbnail="/theme_the_chef/static/src/img/snippets/special.jpg"/>
<t t-snippet="theme_the_chef.special_left"
t-thumbnail="/theme_the_chef/static/src/img/snippets/special_left.jpg"/>
<t t-snippet="theme_the_chef.team"
t-thumbnail="/theme_the_chef/static/src/img/snippets/team.jpg"/>
</xpath>
</template>
</odoo>
Loading…
Cancel
Save