summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorqsm-odoo <qsm@odoo.com>2019-12-18 00:31:17 +0100
committerqsm-odoo <qsm@odoo.com>2019-12-18 00:32:06 +0100
commitc4132e4e77ede5e9766e9b9be8d074d3fedc2e31 (patch)
treef80b8b334aee5b81d85ced5f7c3e864170d52f55
parent750fb057d2792363963ec46dde3f321236ffb156 (diff)
parent7c590695d3f935efa43839c03d267af73ec7b1f7 (diff)
[REF] website: move s_picture snippet to dedicated file
-rw-r--r--addons/website/__manifest__.py1
-rw-r--r--addons/website/views/snippets/s_picture.xml25
-rw-r--r--addons/website/views/snippets/snippets.xml (renamed from temp)21
3 files changed, 26 insertions, 21 deletions
diff --git a/addons/website/__manifest__.py b/addons/website/__manifest__.py
index dc785fc6b7b..4ec1a921575 100644
--- a/addons/website/__manifest__.py
+++ b/addons/website/__manifest__.py
@@ -35,6 +35,7 @@
'views/snippets/s_text_block.xml',
'views/snippets/s_features.xml',
'views/snippets/s_three_columns.xml',
+ 'views/snippets/s_picture.xml',
'views/website_views.xml',
'views/website_visitor_views.xml',
'views/res_config_settings_views.xml',
diff --git a/addons/website/views/snippets/s_picture.xml b/addons/website/views/snippets/s_picture.xml
new file mode 100644
index 00000000000..39109e5cbcd
--- /dev/null
+++ b/addons/website/views/snippets/s_picture.xml
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="utf-8"?>
+<odoo>
+
+<template id="s_picture" name="Picture">
+ <section class="s_picture bg-200 pt48 pb24">
+ <div class="container">
+ <div class="row s_nb_column_fixed">
+ <div class="col-lg-12 s_title pt16 pb16">
+ <h2 class="s_title_thin" style="text-align: center;"><font style="font-size: 62px;">A punchy Headline</font></h2>
+ </div>
+ <div class="col-lg-12 pt16 pb16">
+ <p style="text-align: center;">Choose a vibrant image and write an inspiring paragraph about it.<br/> It does not have to be long, but it should reinforce your image.</p>
+ </div>
+ <div class="col-lg-8 offset-lg-2 pb24">
+ <figure class="figure">
+ <img src="/web/image/website.s_picture_default_image" class="figure-img img-fluid rounded img-thumbnail padding-large" alt="Odoo • A picture with a caption"/>
+ <figcaption class="figure-caption py-3 text-center"><i class="fa fa-1x fa-picture-o mr-2"/>Add a caption to enhance the meaning of this image.</figcaption>
+ </figure>
+ </div>
+ </div>
+ </div>
+ </section>
+</template>
+
+</odoo>
diff --git a/temp b/addons/website/views/snippets/snippets.xml
index e9dda640e4d..698984df4a5 100644
--- a/temp
+++ b/addons/website/views/snippets/snippets.xml
@@ -1,27 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
-<template id="s_picture" name="Picture">
- <section class="s_picture bg-200 pt48 pb24">
- <div class="container">
- <div class="row s_nb_column_fixed">
- <div class="col-lg-12 s_title pt16 pb16">
- <h2 class="s_title_thin" style="text-align: center;"><font style="font-size: 62px;">A punchy Headline</font></h2>
- </div>
- <div class="col-lg-12 pt16 pb16">
- <p style="text-align: center;">Choose a vibrant image and write an inspiring paragraph about it.<br/> It does not have to be long, but it should reinforce your image.</p>
- </div>
- <div class="col-lg-8 offset-lg-2 pb24">
- <figure class="figure">
- <img src="/web/image/website.s_picture_default_image" class="figure-img img-fluid rounded img-thumbnail padding-large" alt="Odoo • A picture with a caption"/>
- <figcaption class="figure-caption py-3 text-center"><i class="fa fa-1x fa-picture-o mr-2"/>Add a caption to enhance the meaning of this image.</figcaption>
- </figure>
- </div>
- </div>
- </div>
- </section>
-</template>
-
<template id="s_carousel" name="Carousel">
<section class="s_carousel_wrapper">
<div id="myCarousel" class="s_carousel s_carousel_default carousel slide" data-interval="10000">