summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorqsm-odoo <qsm@odoo.com>2019-12-18 02:38:41 +0100
committerqsm-odoo <qsm@odoo.com>2019-12-18 02:40:33 +0100
commit76aeea48910bb202065cd5eaf0b6daf7a7a5d9bb (patch)
treeb5666664d1092cc50775eecefeb186458263b87b
parentf710979b617171e49f2ce58bd99a760cf98ce090 (diff)
parent2ee438896d83c9c47ccc73ecec69b18c4888de73 (diff)
[REF] website: move s_company_team snippet to dedicated files
-rw-r--r--addons/website/__manifest__.py1
-rw-r--r--addons/website/static/src/scss/website.scss (renamed from temp_scss)9
-rw-r--r--addons/website/static/src/snippets/s_company_team/000.scss8
-rw-r--r--addons/website/views/snippets/s_company_team.xml80
-rw-r--r--addons/website/views/snippets/snippets.xml (renamed from temp_xml)70
5 files changed, 89 insertions, 79 deletions
diff --git a/addons/website/__manifest__.py b/addons/website/__manifest__.py
index 9dc42a5537b..2687bb7471c 100644
--- a/addons/website/__manifest__.py
+++ b/addons/website/__manifest__.py
@@ -47,6 +47,7 @@
'views/snippets/s_image_gallery.xml',
'views/snippets/s_countdown.xml',
'views/snippets/s_comparisons.xml',
+ 'views/snippets/s_company_team.xml',
'views/website_views.xml',
'views/website_visitor_views.xml',
'views/res_config_settings_views.xml',
diff --git a/temp_scss b/addons/website/static/src/scss/website.scss
index f973c7adbfc..b5301ee3b72 100644
--- a/temp_scss
+++ b/addons/website/static/src/scss/website.scss
@@ -680,15 +680,6 @@ table.table_desc tr td {
}
}
-// Company Team
-.s_company_team {
- @include media-breakpoint-down(md) {
- img {
- max-width: 50%;
- }
- }
-}
-
// Parallax
.parallax {
position: relative;
diff --git a/addons/website/static/src/snippets/s_company_team/000.scss b/addons/website/static/src/snippets/s_company_team/000.scss
new file mode 100644
index 00000000000..7947b831094
--- /dev/null
+++ b/addons/website/static/src/snippets/s_company_team/000.scss
@@ -0,0 +1,8 @@
+
+.s_company_team {
+ @include media-breakpoint-down(md) {
+ img {
+ max-width: 50%;
+ }
+ }
+}
diff --git a/addons/website/views/snippets/s_company_team.xml b/addons/website/views/snippets/s_company_team.xml
new file mode 100644
index 00000000000..b7b57c15fd3
--- /dev/null
+++ b/addons/website/views/snippets/s_company_team.xml
@@ -0,0 +1,80 @@
+<?xml version="1.0" encoding="utf-8"?>
+<odoo>
+
+<template id="s_company_team" name="Company Team">
+ <section class="s_company_team">
+ <div class="container">
+ <h1 style="text-align: center;">Meet the Executive Team</h1>
+ <div class="row s_nb_column_fixed">
+ <div class="col-lg-6 pt16 pb16">
+ <div class="row s_col_no_resize s_col_no_bgcolor">
+ <div class="col-lg-4 ">
+ <img alt="Company team" src="/web/image/website.s_company_team_image_1" class="img-fluid rounded-circle d-block mx-auto shadow"/>
+ </div>
+ <div class="col-lg-8">
+ <h4>Tony Fred, CEO</h4>
+ <p class="text-muted">
+ Founder and chief visionary, Tony is the driving force behind Company. He loves
+ to keep his hands full by participating in the development of the software,
+ marketing and the Customer Experience strategies.
+ </p>
+ </div>
+ </div>
+ </div>
+ <div class="col-lg-6 pt16 pb16">
+ <div class="row s_col_no_resize s_col_no_bgcolor">
+ <div class="col-lg-4">
+ <img alt="Company team" src="/web/image/website.s_company_team_image_2" class="img-fluid rounded-circle d-block mx-auto shadow"/>
+ </div>
+ <div class="col-lg-8">
+ <h4>Mich Stark, COO</h4>
+ <p class="text-muted">
+ Mich loves taking on challenges. With his multi-year experience as Commercial
+ Director in the software industry, Mich has helped Company to get where it
+ is today. Mich is among the best minds.
+ </p>
+ </div>
+ </div>
+ </div>
+ <div class="col-lg-6 pt16 pb16">
+ <div class="row s_col_no_resize s_col_no_bgcolor">
+ <div class="col-lg-4">
+ <img alt="Company team" src="/web/image/website.s_company_team_image_3" class="img-fluid rounded-circle d-block mx-auto shadow"/>
+ </div>
+ <div class="col-lg-8">
+ <h4>Aline Turner, CTO</h4>
+ <p class="text-muted">
+ Aline is one of the iconic person in life who can say she loves what she does.
+ She mentors 100+ in-house developers and looks after the community of over
+ thousands developers.
+ </p>
+ </div>
+ </div>
+ </div>
+ <div class="col-lg-6 pt16 pb16">
+ <div class="row s_col_no_resize s_col_no_bgcolor">
+ <div class="col-lg-4">
+ <img alt="Company team" src="/web/image/website.s_company_team_image_4" class="img-fluid rounded-circle d-block mx-auto shadow"/>
+ </div>
+ <div class="col-lg-8">
+ <h4>Iris Joe, CFO</h4>
+ <p class="text-muted">
+ Iris, with her international experience, helps us easily understand the numbers and
+ improves them. She is determined to drive success and delivers her professional
+ acumen to bring Company at the next level.
+ </p>
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+ </section>
+</template>
+
+<template id="assets_snippet_s_company_team_css_000" inherit_id="website.assets_frontend">
+ <xpath expr="//link[last()]" position="after">
+ <link rel="stylesheet" type="text/scss" href="/website/static/src/snippets/s_company_team/000.scss"/>
+ </xpath>
+</template>
+
+</odoo>
diff --git a/temp_xml b/addons/website/views/snippets/snippets.xml
index e3a90fff679..0ea69fc4bfe 100644
--- a/temp_xml
+++ b/addons/website/views/snippets/snippets.xml
@@ -1,76 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
-<template id="s_company_team" name="Company Team">
- <section class="s_company_team">
- <div class="container">
- <h1 style="text-align: center;">Meet the Executive Team</h1>
- <div class="row s_nb_column_fixed">
- <div class="col-lg-6 pt16 pb16">
- <div class="row s_col_no_resize s_col_no_bgcolor">
- <div class="col-lg-4 ">
- <img alt="Company team" src="/web/image/website.s_company_team_image_1" class="img-fluid rounded-circle d-block mx-auto shadow"/>
- </div>
- <div class="col-lg-8">
- <h4>Tony Fred, CEO</h4>
- <p class="text-muted">
- Founder and chief visionary, Tony is the driving force behind Company. He loves
- to keep his hands full by participating in the development of the software,
- marketing and the Customer Experience strategies.
- </p>
- </div>
- </div>
- </div>
- <div class="col-lg-6 pt16 pb16">
- <div class="row s_col_no_resize s_col_no_bgcolor">
- <div class="col-lg-4">
- <img alt="Company team" src="/web/image/website.s_company_team_image_2" class="img-fluid rounded-circle d-block mx-auto shadow"/>
- </div>
- <div class="col-lg-8">
- <h4>Mich Stark, COO</h4>
- <p class="text-muted">
- Mich loves taking on challenges. With his multi-year experience as Commercial
- Director in the software industry, Mich has helped Company to get where it
- is today. Mich is among the best minds.
- </p>
- </div>
- </div>
- </div>
- <div class="col-lg-6 pt16 pb16">
- <div class="row s_col_no_resize s_col_no_bgcolor">
- <div class="col-lg-4">
- <img alt="Company team" src="/web/image/website.s_company_team_image_3" class="img-fluid rounded-circle d-block mx-auto shadow"/>
- </div>
- <div class="col-lg-8">
- <h4>Aline Turner, CTO</h4>
- <p class="text-muted">
- Aline is one of the iconic person in life who can say she loves what she does.
- She mentors 100+ in-house developers and looks after the community of over
- thousands developers.
- </p>
- </div>
- </div>
- </div>
- <div class="col-lg-6 pt16 pb16">
- <div class="row s_col_no_resize s_col_no_bgcolor">
- <div class="col-lg-4">
- <img alt="Company team" src="/web/image/website.s_company_team_image_4" class="img-fluid rounded-circle d-block mx-auto shadow"/>
- </div>
- <div class="col-lg-8">
- <h4>Iris Joe, CFO</h4>
- <p class="text-muted">
- Iris, with her international experience, helps us easily understand the numbers and
- improves them. She is determined to drive success and delivers her professional
- acumen to bring Company at the next level.
- </p>
- </div>
- </div>
- </div>
- </div>
- </div>
- </section>
-</template>
-
<template id="s_call_to_action" name="Call to Action">
<section class="s_call_to_action bg-200 pt48 pb24">
<div class="container">