[IMP] oe_structure, cleaning of wrap

bzr revid: fp@openerp.com-20130915172537-jbd04hmgqvzz71qb
This commit is contained in:
Fabien Pinckaers 2013-09-15 19:25:37 +02:00
parent 74285592a1
commit 364995c7f4
13 changed files with 143 additions and 96 deletions

View File

@ -140,13 +140,13 @@ footer {
}
/* ---- HACK FOR COVERING UP CK EDITOR BOGUS P INSERTION --- */
#wrap:empty, [data-oe-type=html]:empty {
.oe_structure:empty, [data-oe-type=html]:empty {
background-image: url("/website/static/src/img/drag_here.png");
background-repeat: no-repeat;
background-position: center top;
}
#wrap:empty:before, [data-oe-type=html]:empty:before {
.oe_structure:empty:before, [data-oe-type=html]:empty:before {
content: "Drag Building Blocks Here";
text-align: center;
display: block;

View File

@ -102,12 +102,12 @@ footer
/* ---- HACK FOR COVERING UP CK EDITOR BOGUS P INSERTION --- */
#wrap:empty, [data-oe-type=html]:empty
.oe_structure:empty, [data-oe-type=html]:empty
background-image: url('/website/static/src/img/drag_here.png')
background-repeat: no-repeat
background-position: center top
#wrap:empty:before, [data-oe-type=html]:empty:before
.oe_structure:empty:before, [data-oe-type=html]:empty:before
content: 'Drag Building Blocks Here'
text-align: center
display: block

View File

@ -24,14 +24,14 @@
<!-- Structure Snippets -->
<div t-name="website.snippets.carousel" data-snippet-id='carousel' data-category='structure' data-action='insert' data-selector-childs='#wrap, [data-oe-type=html]'>
<div t-name="website.snippets.carousel" data-snippet-id='carousel' data-category='structure' data-action='insert' data-selector-childs='.oe_structure, [data-oe-type=html]'>
<!-- editor bar to display inside the top edit bar -->
<li class='oe_snippet_options'>
<a href="#" class="button js_add">Add layer</a>
<a href="#" class="button js_add">Add Slide</a>
</li>
<li class='oe_snippet_options'>
<a href="#" class="button js_remove">Remove current layer</a>
<a href="#" class="button js_remove">Remove Slide</a>
</li>
<li class='oe_snippet_options'>
<a class="carousel-background">
@ -139,7 +139,7 @@
<div class='oe_snippet_thumbnail oe_label' style='background-image:radial-gradient(red,orange,yellow,green,blue);'>Surprise!</div>
</div>
<div t-name="website.snippets.title" data-snippet-id='title' data-category='structure' data-action='insert' data-selector-childs='#wrap, [data-oe-type=html]'>
<div t-name="website.snippets.title" data-snippet-id='title' data-category='structure' data-action='insert' data-selector-childs='.oe_structure, [data-oe-type=html]'>
<div class='oe_snippet_thumbnail oe_label'>Title</div>
<section class="oe_snippet_body container">
<div class="row">
@ -151,7 +151,7 @@
</section>
</div>
<div t-name="website.snippets.text-image" data-snippet-id='text-image' data-category='structure' data-action='insert' data-selector-childs='#wrap, [data-oe-type=html]'>
<div t-name="website.snippets.text-image" data-snippet-id='text-image' data-category='structure' data-action='insert' data-selector-childs='.oe_structure, [data-oe-type=html]'>
<div class='oe_snippet_thumbnail oe_label'>Text-Image</div>
<section class="oe_snippet_body dark">
<div class="container">
@ -178,7 +178,7 @@
</section>
</div>
<div t-name="website.snippets.image-text" data-snippet-id='image-text' data-category='structure' data-action='insert' data-selector-childs='#wrap, [data-oe-type=html]'>
<div t-name="website.snippets.image-text" data-snippet-id='image-text' data-category='structure' data-action='insert' data-selector-childs='.oe_structure, [data-oe-type=html]'>
<div class='oe_snippet_thumbnail oe_label'>Image-Text</div>
<section class="oe_snippet_body">
<div class="container">
@ -204,7 +204,7 @@
</section>
</div>
<div t-name="website.snippets.jumbotron" data-snippet-id='jumbotron' data-category='structure' data-action='insert' data-selector-childs='#wrap, [data-oe-type=html]'>
<div t-name="website.snippets.jumbotron" data-snippet-id='jumbotron' data-category='structure' data-action='insert' data-selector-childs='.oe_structure, [data-oe-type=html]'>
<div class='oe_snippet_thumbnail oe_label'>Jumbotron</div>
<section class="oe_snippet_body jumbotron mt16 mb16">
<div class="container">
@ -221,7 +221,7 @@
</section>
</div>
<div t-name="website.snippets.text-block" data-snippet-id='text-block' data-category='structure' data-action='insert' data-selector-childs='#wrap, [data-oe-type=html]'>
<div t-name="website.snippets.text-block" data-snippet-id='text-block' data-category='structure' data-action='insert' data-selector-childs='.oe_structure, [data-oe-type=html]'>
<div class='oe_snippet_thumbnail oe_label'>Text Block</div>
<section class="oe_snippet_body mt16 mb16">
<div class="container">
@ -250,7 +250,7 @@
</section>
</div>
<div t-name="website.snippets.big-picture" data-snippet-id='big-picture' data-category='structure' data-action='insert' data-selector-childs='#wrap, [data-oe-type=html]'>
<div t-name="website.snippets.big-picture" data-snippet-id='big-picture' data-category='structure' data-action='insert' data-selector-childs='.oe_structure, [data-oe-type=html]'>
<div class='oe_snippet_thumbnail oe_label'>Big Picture</div>
<section class="oe_snippet_body dark mt16 mb16">
<div class="container">
@ -281,7 +281,7 @@
</div>
<div t-name="website.snippets.three-columns" data-snippet-id='three-columns' data-category='structure' data-action='insert' data-selector-childs='#wrap, [data-oe-type=html]'>
<div t-name="website.snippets.three-columns" data-snippet-id='three-columns' data-category='structure' data-action='insert' data-selector-childs='.oe_structure, [data-oe-type=html]'>
<div class='oe_snippet_thumbnail oe_label'>Three Columns</div>
<section class="oe_snippet_body mt16 mb16">
<div class="container">
@ -333,7 +333,7 @@
</section>
</div>
<div t-name="website.snippets.image-gallery" data-snippet-id='image-gallery' data-category='structure' data-action='insert' data-selector-childs='#wrap, [data-oe-type=html]'>
<div t-name="website.snippets.image-gallery" data-snippet-id='image-gallery' data-category='structure' data-action='insert' data-selector-childs='.oe_structure, [data-oe-type=html]'>
<div class='oe_snippet_thumbnail oe_label'>Image Gallery</div>
<section class="oe_snippet_body">
<div class="container">

View File

@ -8,7 +8,7 @@
<template id="website.themes" name="Themes">
<t t-call="website.layout">
<div class="container" t-if="editable">
<div class="container" id="wrap" t-if="editable">
<div class="alert alert-success mt32" t-if="theme_changed">
<button type="button" class="close" data-dismiss="alert">&amp;times;</button>

View File

@ -97,7 +97,7 @@
</div>
</div>
</header>
<div t-raw="0" id="wrap"></div>
<t t-raw="0"/>
<footer>
<div class="container" id="footer_container">
<div class="row">
@ -160,16 +160,21 @@
</template>
<template id="homepage" page="True">
<t t-call="website.layout"></t>
<t t-call="website.layout">
<div id="wrap" class="oe_structure"></div>
</t>
</template>
<template id="default_page">
<t t-call="website.layout"></t>
<t t-call="website.layout">
<div id="wrap" class="oe_structure"></div>
</t>
</template>
<template id="404">
<t t-call="website.layout">
<div id="wrap">
<div class="container" t-if="editable and path">
<div class="well mt32">
<p>This page does not exists, but you can create it as you are administrator of this site.</p>
@ -179,26 +184,31 @@
<div class="text-center text-muted">Edit the content bellow this line to adapt the default "page not found" page.</div>
</div>
<hr />
<div class="container">
<h1 class="mt32">404: Page not found!</h1>
<p>
The page you were looking for could not be found; it is possible you have
typed the address incorrectly, but it has most probably been removed due
to the recent website reorganisation.
</p>
<p>Maybe you were looking for one of these popular pages ?</p>
<ul>
<li><a href="/">Homepage</a></li>
<li><a href="/">Contact Us</a></li>
</ul>
<div class="oe_structure">
<div class="container">
<h1 class="mt32">404: Page not found!</h1>
<p>
The page you were looking for could not be found; it is possible you have
typed the address incorrectly, but it has most probably been removed due
to the recent website reorganisation.
</p>
<p>Maybe you were looking for one of these popular pages ?</p>
<ul>
<li><a href="/">Homepage</a></li>
<li><a href="/">Contact Us</a></li>
</ul>
</div>
</div>
</div>
</t>
</template>
<template id="500">
<t t-call="website.layout">
<div class="container">
<h1 class="mt32">500: Internal Server Error!</h1>
<div id="wrap">
<div class="oe_structure">
<h1 class="container mt32">500: Internal Server Error!</h1>
</div>
<pre t-if="editable" t-esc="traceback"/>
</div>
</t>
@ -206,9 +216,9 @@
<template id="401">
<t t-call="website.layout">
<div id="wrap">
<div class="container">
<h1 class="mt32">401: Unauthorized Access!</h1>
<p>
The page you were looking for could not be
authorized.
@ -222,20 +232,22 @@
<li><a href="/">Contact Us</a></li>
</ul>
</div>
</div>
</t>
</template>
<template id="contactus" name="Contact us" page="True">
<t t-call="website.layout">
<t t-set="title">Contact us -
<t t-raw="res_company.name"></t>
</t>
<t t-set="title">Contact us -
<t t-raw="res_company.name"></t>
</t>
<div id="wrap">
<div class="container">
<h1>Contact us</h1>
<div class="row">
<div class="col-md-8">
<div>
<div class="oe_structure">
<p>Contact us about anything related to our company or services.</p>
<p>We'll do our best to get back to you as soon as possible.</p>
</div>
@ -259,14 +271,15 @@
</div>
</div>
</div>
</div>
</t>
</template>
<template id="aboutus" page="True">
<t t-call="website.layout">
<t t-set="title">About us -
<t t-raw="res_company.name"></t>
</t>
<t t-set="title">About <t t-raw="res_company.name"></t>
</t>
<div id="wrap" class="oe_structure">
<div class="container">
<h2>About us</h2>
<div class="row">
@ -278,6 +291,7 @@
<div class="col-md-8"></div>
</div>
</div>
</div>
</t>
</template>

View File

@ -16,10 +16,14 @@
<template id="layout" name="References Layout">
<t t-call="website.layout">
<t t-set="title">References</t>
<div class="container">
<div class="row">
<t t-raw="ref_content" />
<div id="wrap">
<div class="oe_structure"/>
<div class="container">
<div class="row">
<t t-raw="ref_content" />
</div>
</div>
<div class="oe_structure"/>
</div>
</t>
</template>

View File

@ -47,21 +47,23 @@
<template id="thanks">
<t t-call="website.layout">
<t t-set="title">Message Sent</t>
<div class="container">
<div class="alert alert-success">
Your message has been sent successfully.
<button type="button" class="close" data-dismiss="alert">&amp;times;</button>
</div>
<h2>Thanks!</h2>
<p>
We will get back to you shortly.
</p><p class="mt64">
If you have an emergency, do not hesitate to contact us by phone:
</p>
<ul class="list-unstyled">
<li><i class="icon-phone"></i> : <span t-field="res_company.phone"/></li>
<li><i class="icon-envelope"></i> : <span t-field="res_company.email"/></li>
</ul>
<div id="wrap" class="oe_structure">
<div class="container">
<div class="alert alert-success">
Your message has been sent successfully.
<button type="button" class="close" data-dismiss="alert">&amp;times;</button>
</div>
<h2>Thanks!</h2>
<p>
We will get back to you shortly.
</p><p class="mt64">
If you have an emergency, do not hesitate to contact us by phone:
</p>
<ul class="list-unstyled">
<li><i class="icon-phone"></i> : <span t-field="res_company.phone"/></li>
<li><i class="icon-envelope"></i> : <span t-field="res_company.email"/></li>
</ul>
</div>
</div>
</t>
</template>

View File

@ -15,12 +15,15 @@
<template id="layout" name="Partners Layout">
<t t-call="website.layout">
<t t-set="title">Partners</t>
<t t-set="title">Partners</t>
<div id="wrap">
<div class="oe_structure"> </div>
<div class="container">
<div class="row">
<t t-raw="ref_content" />
</div>
</div>
</div>
</t>
</template>

View File

@ -25,11 +25,14 @@
<template id="index" name="Events" page="True">
<t t-call="website.layout">
<t t-set="head">
<t t-raw="head or ''"/>
</t>
<t t-set="title">Events</t>
<h1 class="text-center">Our Events</h1>
<t t-set="head">
<t t-raw="head or ''"/>
</t>
<t t-set="title">Events</t>
<div id="wrap">
<div class="oe_structure">
<h1 class="text-center">Our Events</h1>
</div>
<div class="container">
<div class="row">
<div class="col-md-4 css_noprint" id="left_column">
@ -86,6 +89,8 @@
</div>
</div>
</div>
<div class="oe_structure"/>
</div>
</t>
</template>
@ -116,11 +121,12 @@
<template id="detail">
<t t-call="website.layout">
<t t-set="head">
<script type="text/javascript" src="/website_event/static/src/js/website_event.js"></script>
<t t-raw="head or ''"/>
</t>
<t t-set="title">Events</t>
<t t-set="head">
<script type="text/javascript" src="/website_event/static/src/js/website_event.js"></script>
<t t-raw="head or ''"/>
</t>
<t t-set="title">Events</t>
<div id="wrap">
<div class="container">
<t t-call="website.publish"><t t-set="object" t-value="event_id"/></t>
<div class="row">
@ -210,6 +216,7 @@
</div>
</div>
</div>
</div>
</t>
</template>
</data>

View File

@ -25,12 +25,13 @@
<template id="index" name="Blogs" page="True">
<t t-call="website.layout">
<t t-set="head">
<script type="text/javascript" src="/website_mail/static/src/js/blog.js"></script>
<link rel='stylesheet' href='/website_mail/static/src/css/blog.css'/>
<t t-raw="head or ''"/>
</t>
<t t-set="title">Blog</t>
<t t-set="head">
<script type="text/javascript" src="/website_mail/static/src/js/blog.js"></script>
<link rel='stylesheet' href='/website_mail/static/src/css/blog.css'/>
<t t-raw="head or ''"/>
</t>
<t t-set="title">Blog</t>
<div id="wrap">
<div class="container mt48 js_website_mail">
<div class="row">
<div class="col-md-4" id="left_column">
@ -104,6 +105,7 @@
</div>
</div>
</div>
</div>
</t>
</template>

View File

@ -16,10 +16,14 @@
<template id="layout" name="Members Layout">
<t t-call="website.layout">
<t t-set="title">Partners</t>
<div class="container">
<div class="row">
<t t-raw="ref_content" />
<div id="wrap">
<div class="oe_structure"> </div>
<div class="container">
<div class="row">
<t t-raw="ref_content" />
</div>
</div>
<div class="oe_structure"> </div>
</div>
</t>
</template>

View File

@ -34,7 +34,9 @@
<template id="index" name="Project">
<t t-call="website.layout">
<t t-set="title">Project</t>
<t t-set="title">Project</t>
<div id="wrap">
<div class="oe_structure"/>
<div class="container">
<h4 t-field="project_id.name"/>
<t t-call="website.kanban">
@ -46,6 +48,8 @@
<t t-set="scope">3</t>
</t>
</div>
<div class="oe_structure"/>
</div>
</t>
</template>

View File

@ -74,12 +74,15 @@
<t t-raw="head or ''"/>
</t>
<t t-set="title">Shop - <t t-raw="title">Categories</t></t>
<div class="container oe_website_sale">
<div class="row">
<div class="col-md-12" id="shop_content">
<t t-raw="shop_content" />
</div>
</div>
<div id="wrap">
<div class="oe_structure"> </div>
<div class="container oe_website_sale">
<div class="row">
<div class="col-md-12" id="shop_content">
<t t-raw="shop_content" />
</div>
</div>
</div>
</div>
</t>
</template>
@ -355,11 +358,12 @@
<template id="checkout">
<t t-call="website.layout">
<t t-set="head">
<script type="text/javascript" src="/website_sale/static/src/js/website_sale.js"></script>
<t t-raw="head or ''"/>
</t>
<t t-set="title">Shop - Checkout</t>
<t t-set="head">
<script type="text/javascript" src="/website_sale/static/src/js/website_sale.js"></script>
<t t-raw="head or ''"/>
</t>
<t t-set="title">Shop - Checkout</t>
<div id="wrap">
<div class="container oe_website_sale">
<div class="row">
<div class="col-md-4">
@ -536,16 +540,18 @@
</form>
</div>
</div>
</div>
</t>
</template>
<template id="payment">
<t t-call="website.layout">
<t t-set="head">
<script type="text/javascript" src="/website_sale/static/src/js/website_sale.js"></script>
<t t-raw="head or ''"/>
</t>
<t t-set="title">Shop - Payment</t>
<t t-set="head">
<script type="text/javascript" src="/website_sale/static/src/js/website_sale.js"></script>
<t t-raw="head or ''"/>
</t>
<t t-set="title">Shop - Payment</t>
<div id="wrap">
<div class="container oe_website_sale">
<div class="row">
<div class="col-md-4">
@ -591,6 +597,7 @@
</div>
</div>
</div>
</div>
</t>
</template>
</data>