<script type="text/javascript" src="/website/static/src/js/website.js"></script>
<script t-if="not translatable" type="text/javascript" src="/website/static/src/js/website.snippets.animation.js"></script>
- <t t-raw="head or ''"/>
+ <t t-raw="head or ''" name='layout_head'/>
</head>
<body>
<div id="wrapwrap">
<t t-foreach="website.menu_id.child_id" t-as="submenu">
<t t-call="website.submenu"/>
</t>
- <li class="dropdown" t-ignore="true" t-if="user_id.id != website.public_user.id">
+ <li class="divider" groups="base.group_user,base.group_portal"/>
+ <li class="dropdown" t-ignore="true" groups="base.group_user,base.group_portal">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
- <span class="badge">
+ <b>
<span t-esc="user_id.name"/>
<span class="caret"></span>
- </span>
+ </b>
</a>
<ul class="dropdown-menu js_usermenu" role="menu">
<li><a href="/web" role="menuitem">Administration</a></li>
<t t-raw="0"/>
</main>
<footer>
- <div class="container" id="footer_container">
+ <div class="container hidden-print" id="footer_container">
<div class="row">
<div class="col-md-3" name="product">
<h4>Our products & Services</h4>
business problems.
</p>
<p>
- Our products are designed for small to medium companies willing to optimize
+ Our products are designed for small to medium size companies willing to optimize
their performance.
</p>
</div>
<t t-set="languages" t-value="website.get_languages()"/>
- <ul class="nav nav-pills js_language_selector" t-if="(len(languages) > 1 or editable)">
+ <ul class="list-inline js_language_selector mt16" t-if="(len(languages) > 1 or editable)">
<li t-foreach="languages" t-as="lg">
<a t-att-href="url_for('', lang=lg[0], keep_query='*')"
t-att-data-default-lang="editable and 'true' if lg[0] == website.default_lang_code else None">
</div>
</div>
</div>
- <div class="container mt16">
+ <div class="container mt16 mb8">
<div class="pull-right" t-ignore="true" t-if="not editable">
Create a <a href="http://openerp.com/apps/website">free website</a> with
<a class="label label-danger" href="https://openerp.com/apps/website">OpenERP</a>
</html>
</template>
+<template id="layout_logo_show" inherit_option_id="website.layout" name="Show Logo">
+ <xpath expr="//header//a[@class='navbar-brand']" position="replace">
+ <a href="/" class="navbar-brand logo">
+ <img src="/website/static/src/img/odoo_logo.png"/>
+ </a>
+ </xpath>
+</template>
+
<template id="editor_head" inherit_id="website.layout" name="Editor" groups="base.group_website_publisher">
- <xpath expr="//head" position="inside">
+ <xpath expr='//t[@name="layout_head"]' position="before">
<link rel='stylesheet' href='/website/static/src/css/snippets.css'/>
<link rel='stylesheet' href='/website/static/src/css/editor.css'/>
<link rel='stylesheet' href='/website/static/lib/bootstrap-tour/bootstrap-tour.css'/>
<script type="text/javascript" src="/website/static/lib/MutationObservers/MutationObserver.js"></script>
<script type="text/javascript" src="/website/static/src/js/website.editor.js"></script>
- <script type="text/javascript" src="/website/static/src/js/website.menu.js"></script>
+ <script type="text/javascript" src="/website/static/src/js/website.editor.newpage.js" groups="base.group_website_designer"></script>
+ <script type="text/javascript" src="/website/static/src/js/website.menu.js" groups="base.group_website_designer"></script>
<script type="text/javascript" src="/website/static/src/js/website.mobile.js"></script>
<script type="text/javascript" src="/website/static/src/js/website.seo.js"></script>
- <script type="text/javascript" src="/website/static/src/js/website.tour.js"></script>
- <script type="text/javascript" src="/website/static/src/js/website.tour.banner.js"></script>
+ <script type="text/javascript" id="website_tour_js" src="/website/static/src/js/website.tour.js"></script>
+ <script type="text/javascript" src="/website/static/src/js/website.tour.banner.js" groups="base.group_website_designer"></script>
<script t-if="not translatable" type="text/javascript" src="/website/static/src/js/website.snippets.editor.js"></script>
<script t-if="not translatable" type="text/javascript" src="/website/static/src/js/website.ace.js"></script>
<script t-if="translatable" type="text/javascript" src="/website/static/src/js/website.translator.js"></script>
</xpath>
</template>
-
-
-<template id="show_sign_in" inherit_option_id="website.layout" inherit_id="website.layout" name="Show Sign In">
+<template id="show_sign_in" inherit_option_id="website.layout" inherit_id="website.layout" name="Show Sign In" groups="base.group_public">
<xpath expr="//ul[@id='top_menu']" position="inside">
- <li t-if="user_id.id == website.public_user.id">
+ <li class="divider"/>
+ <li>
<a t-attf-href="/web#redirect=#{ quote_plus(url_for('', keep_query='*')) }">
- <span class="badge">Sign in</span>
+ <b>Sign in</b>
</a>
</li>
</xpath>
</div>
<div class="container" t-if="views">
- <div class="bs-callout bs-callout-danger" t-if="qweb_template and editable">
+ <div class="alert alert-danger" t-if="qweb_template and editable">
<h4>Template fallback</h4>
<p>An error occured while rendering the template <code t-esc="qweb_template"/>.</p>
<p>If this error is caused by a change of yours in the templates, you have the possibility to reset one or more templates to their <strong>factory settings</strong>.</p>
<template id="company_description" name="Company Description">
<address>
- <div t-field="res_company.partner_id">Name</div>
+ <div t-field="res_company.name">Name</div>
<br />
<div>&#x2706; <span t-field="res_company.phone"></span></div>
<div class="fa fa-envelope" t-field="res_company.email"></div>
</div>
</div>
<div class="col-md-4 mb32">
+ <div groups="base.group_website_publisher" t-ignore="true" class="pull-right css_editable_mode_hidden" t-att-style="style or ''">
+ <a class="btn btn-primary" t-att-href="'/web#return_label=Website&model=%s&id=%s' % (res_company._name, res_company.id)" title='Edit in backend'>Edit</a>
+ </div>
<t t-call="website.company_description"/>
</div>
</div>
business problems.
</p>
<p>
- Our products are designed for small to medium companies willing to optimize
+ Our products are designed for small to medium size companies willing to optimize
their performance.
</p>
</div>
</div>
</section>
- <div class="parallax oe_structure mt16 oe_medium mb64" data-scroll-background-ratio="0.6" data-snippet-id="parallax" style="background-image: url(http://localhost:8069/website/static/src/img/parallax/parallax_bg.jpg); background-attachment: scroll; background-position: 0px 0px; ">
- <section class="mb32 mt16" data-snippet-id="references">
- <div class="container">
- <div class="row">
- <div class="col-md-12 mt16 mb8">
- <h1 class="text-center">What do customers say about us...</h1>
- </div>
- <div class="col-md-4 col-md-offset-1 mt16 mb0">
- <blockquote data-snippet-id="quote">
- <p><span style="background-color:#FFFFFF;">Write here a quote from one of your customer. Quotes are are great way to give confidence in your products or services.</span></p>
- <small><span style="background-color:#FFFFFF;">Author of this quote</span></small>
- </blockquote>
- </div>
- <div class="col-md-4 col-md-offset-2 mt16 mb32">
- <blockquote data-snippet-id="quote">
- <p><span style="background-color:#FFFFFF;">OpenERP provides essential platform for our project management. Things are better organized and more visible with it.</span></p>
- <small><span style="background-color:#FFFFFF;">John Doe, CEO</span></small>
- </blockquote>
- </div>
- </div>
- </div>
- </section>
- </div>
-
</div>
<div class="oe_structure"></div>
</div>
<template id="contact">
<address t-ignore="true">
- <div t-att-class='"" if "name" in fields else "css_non_editable_mode_hidden"'><span t-esc="name"/></div>
+ <div t-attf-class="'name' not in fields and 'css_non_editable_mode_hidden'"><span t-esc="name"/></div>
<div class='css_editable_mode_hidden'>
<div t-if="address and 'address' in fields">
<i class='fa fa-map-marker'/>