493 lines
30 KiB
XML
493 lines
30 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- vim:fdn=3:
|
|
-->
|
|
<openerp>
|
|
<data>
|
|
<!-- Layout and generic templates -->
|
|
|
|
<template id="website.theme" name="Theme">
|
|
<link id="bootstrap_css" rel='stylesheet' href='/website/static/lib/bootstrap/css/bootstrap.css' t-ignore="true"/>
|
|
<link id="website_css" rel='stylesheet' href='/website/static/src/css/website.css' t-ignore="true"/>
|
|
</template>
|
|
|
|
<template id="layout" name="Main layout">
|
|
<!DOCTYPE html>
|
|
<html t-att-lang="lang.replace('_', '-')"
|
|
t-att-data-editable="'1' if editable else None"
|
|
t-att-data-translatable="'1' if translatable else None"
|
|
t-att-data-view-xmlid="xmlid if editable else None"
|
|
t-att-data-main-object="repr(main_object) if editable else None">
|
|
<head>
|
|
<t t-if="main_object and 'website_meta_title' in main_object">
|
|
<t t-set="title" t-value="main_object.website_meta_title"/>
|
|
</t>
|
|
<t t-if="not title and main_object and 'name' in main_object">
|
|
<t t-set="additional_title" t-value="main_object.name"/>
|
|
</t>
|
|
<t t-if="not title">
|
|
<t t-set="title"><t t-raw="res_company.name"/><t t-if="additional_title"> - <t t-raw="additional_title"/></t></t>
|
|
</t>
|
|
<title><t t-esc="title"/></title>
|
|
<meta name="openerp.company" t-att-value="res_company.name"/>
|
|
<meta name="description" t-att-value="main_object and 'website_meta_description' in main_object
|
|
and main_object.website_meta_description or website_meta_description"/>
|
|
<meta name="keywords" t-att-value="main_object and 'website_meta_keywords' in main_object
|
|
and main_object.website_meta_keywords or website_meta_keywords"/>
|
|
|
|
<!-- Load stylesheets before scripts to avoid blocking -->
|
|
<link rel='stylesheet' href='/web/static/lib/fontawesome/css/font-awesome.css'/>
|
|
<t t-if="editable">
|
|
<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'/>
|
|
</t>
|
|
<t t-call="website.theme"/>
|
|
|
|
|
|
<script type="text/javascript" src="/web/static/lib/es5-shim/es5-shim.min.js"></script>
|
|
<script type="text/javascript" src="/web/static/lib/underscore/underscore.js"></script>
|
|
<script type="text/javascript" src="/web/static/lib/underscore.string/lib/underscore.string.js"></script>
|
|
<script type="text/javascript" src="/web/static/lib/jquery/jquery.js"></script>
|
|
<script type="text/javascript" src="/website/static/lib/bootstrap/js/bootstrap.js"></script>
|
|
|
|
<script type="text/javascript" src="/web/static/lib/qweb/qweb2.js"></script>
|
|
<script type="text/javascript" src="/web/static/src/js/openerpframework.js"></script>
|
|
|
|
<script type="text/javascript" src="/website/static/lib/stellar/jquery.stellar.js"></script>
|
|
<script type="text/javascript" src="/website/static/src/js/website.js"></script>
|
|
|
|
<t t-if="editable">
|
|
<script type="text/javascript" src="/website/static/lib/ckeditor/ckeditor.js"></script>
|
|
<script type="text/javascript" src="/website/static/lib/ckeditor.sharedspace/plugin.js"></script>
|
|
<script type="text/javascript" src="/website/static/lib/bootstrap-tour/bootstrap-tour.js"></script>
|
|
<script t-if="not translatable" type="text/javascript" src="/website/static/lib/ace/ace.js"></script>
|
|
<script type="text/javascript" src="/website/static/lib/vkbeautify/vkbeautify.0.99.00.beta.js"></script>
|
|
<script type="text/javascript" src="/web/static/lib/jquery.ui/js/jquery-ui-1.9.1.custom.js"></script>
|
|
<link rel='stylesheet' href="/web/static/lib/jquery.ui/css/smoothness/jquery-ui-1.9.1.custom.css"/>
|
|
<!-- mutation observers shim backed by mutation events (8 < IE < 11, Safari < 6, FF < 14, Chrome < 17) -->
|
|
<script type="text/javascript" src="/website/static/lib/MutationObservers/test/sidetable.js"></script>
|
|
<script type="text/javascript" src='/website/static/lib/nearest/jquery.nearest.js'></script>
|
|
<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.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.basic.js"></script>
|
|
<script t-if="not translatable" type="text/javascript" src="/website/static/src/js/website.snippets.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>
|
|
</t>
|
|
|
|
<t t-raw="head or ''"/>
|
|
</head>
|
|
<body>
|
|
<div id="wrapwrap">
|
|
<header>
|
|
<div class="navbar navbar-default navbar-static-top">
|
|
<div class="container">
|
|
<div class="navbar-header">
|
|
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-top-collapse">
|
|
<span class="sr-only">Toggle navigation</span>
|
|
<span class="icon-bar"></span>
|
|
<span class="icon-bar"></span>
|
|
<span class="icon-bar"></span>
|
|
</button>
|
|
<a class="navbar-brand" t-href="/page/website.homepage"><em>Your</em><b>Company</b></a>
|
|
</div>
|
|
<div class="collapse navbar-collapse navbar-top-collapse">
|
|
<ul class="nav navbar-nav navbar-right" id="top_menu">
|
|
<li name="contactus"><a t-href="/page/website.contactus">Contact us</a></li>
|
|
<li t-if="user_id.id == website.public_user.id"><a href="/web">Sign in</a></li>
|
|
<li t-if="user_id.id != website.public_user.id"><a href="/web"><span t-field="user_id.name"/></a></li>
|
|
<li t-if="request.multilang and
|
|
(len(website.language_ids) > 1 or editable)" class="dropdown">
|
|
<!-- TODO: use flags for language selection -->
|
|
<a class="dropdown-toggle" data-toggle="dropdown" href="#">
|
|
<t t-esc="lang_selected[0]['name']"/> <span class="caret"></span>
|
|
</a>
|
|
<ul class="dropdown-menu" role="menu">
|
|
<li t-foreach="website.language_ids" t-as="lg">
|
|
<a t-att-href="url_for('', lang=lg.code)" role="menuitem">
|
|
<strong t-att-class="'icon-circle' if lg.code == lang
|
|
else 'icon-circle-blank'"></strong>
|
|
<t t-esc="lg.name"/>
|
|
</a>
|
|
</li>
|
|
<li t-if="editable" class="divider"/>
|
|
<li t-if="editable">
|
|
<t t-set="url_return" t-value="request.multilang and url_for(request.httprequest.path, '[lang]') or request.httprequest.path"/>
|
|
<t t-if="request.httprequest.query_string">
|
|
<t t-set="url_return" t-value="url_return + '?' + request.httprequest.query_string"/>
|
|
</t>
|
|
<a t-attf-href="/web#action=base.action_view_base_language_install&url_return=#{url_return}">
|
|
Add a language...
|
|
</a>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</header>
|
|
<t t-raw="0"/>
|
|
<footer>
|
|
<div class="container" id="footer_container">
|
|
<div class="row">
|
|
<div class="col-md-3" name="product">
|
|
<h4>Our products & Services</h4>
|
|
<ul class="list-unstyled" name="products">
|
|
<li><a t-href="/">Home</a></li>
|
|
</ul>
|
|
</div>
|
|
<div class="col-md-3" name="info">
|
|
<h4 name="info_title">Connect with us</h4>
|
|
<ul class="list-unstyled">
|
|
<li><a t-href="/page/website.contactus">Contact us</a></li>
|
|
</ul>
|
|
<ul class="list-unstyled">
|
|
<li><i class="icon-phone"></i> <span t-field="res_company.phone"></span></li>
|
|
<li><i class="icon-envelope"></i> <span t-field="res_company.email"></span></li>
|
|
</ul>
|
|
<h2>
|
|
<a t-att-href="website.social_facebook" t-if="website.social_facebook"><i class="icon-facebook-sign"/></a>
|
|
<a t-att-href="website.social_twitter" t-if="website.social_twitter"><i class="icon-twitter-sign"/></a>
|
|
<a t-att-href="website.social_linkedin" t-if="website.social_linkedin"><i class="icon-linkedin-sign"/></a>
|
|
<a t-att-href="website.social_youtube" t-if="website.social_youtube"><i class="icon-youtube-sign"/></a>
|
|
<a t-att-href="website.social_googleplus" t-if="website.social_googleplus"><i class="icon-google-plus-sign"/></a>
|
|
<a t-att-href="website.social_github" t-if="website.social_github"><i class="icon-github-sign"/></a>
|
|
</h2>
|
|
</div>
|
|
<div class="col-md-5 col-lg-offset-1" name="about_us">
|
|
<h4>
|
|
<span t-field="res_company.name">Your Company</span>
|
|
<small> - <a href="/page/website.aboutus">About us</a></small>
|
|
</h4>
|
|
<p>
|
|
We are a team of passionated people whose goal is to improve everyone's
|
|
life through disruptive products. We build great products to solve your
|
|
business problems.
|
|
</p>
|
|
<p>
|
|
Our products are designed for small to medium companies willing to optimize
|
|
their performance.
|
|
</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="container mt16">
|
|
<div class="pull-right" t-ignore="1">
|
|
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>
|
|
</div>
|
|
<div class="pull-left text-muted">
|
|
Copyright &copy; <span t-field="res_company.name">Company name</span> - <a t-href="/sitemap">Sitemap</a>
|
|
</div>
|
|
</div>
|
|
</footer>
|
|
</div>
|
|
</body>
|
|
</html>
|
|
</template>
|
|
|
|
<template id="footer_custom" inherit_option_id="website.layout" name="Custom Footer">
|
|
<xpath expr="//div[@id='footer_container']" position="before">
|
|
<section data-snippet-id='three-columns' class="mt16 mb16">
|
|
<div class="container">
|
|
<div class="row">
|
|
<div class="col-md-4">
|
|
<h4 class="mt16">Subtitle</h4>
|
|
<p>
|
|
<a t-href="/">Homepage</a>
|
|
</p>
|
|
</div>
|
|
<div class="col-md-4">
|
|
<h4 class="mt16">Subtitle 2</h4>
|
|
<p>
|
|
...
|
|
</p>
|
|
</div>
|
|
<div class="col-md-4">
|
|
<h4 class="mt16">Subtitle 3</h4>
|
|
<p>
|
|
...
|
|
</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
</xpath>
|
|
<xpath expr="//div[@id='footer_container']" position="attributes">
|
|
<attribute name="style">display: none</attribute>
|
|
</xpath>
|
|
</template>
|
|
|
|
<template id="publish_management">
|
|
<t t-if="editable" t-ignore="true">
|
|
<div class="pull-right btn-group">
|
|
<div t-attf-class="btn-group dropdown js_publish_management #{object.id and object.website_published and 'css_publish' or 'css_unpublish'}" t-att-data-id="object.id" t-att-data-object="object._name">
|
|
<a t-attf-class="btn btn-xs btn-#{object.id and object.website_published and 'success' or 'default'}" t-att-id="'dopprod-%s' % object.id" role="button" data-toggle="dropdown">Options <span class="caret"></span></a>
|
|
<ul class="dropdown-menu" role="menu" t-att-aria-labelledby="'dopprod-%s' % object.id">
|
|
<t t-raw="0"/>
|
|
<li>
|
|
<a href="#" class="js_publish_btn css_unpublish">Unpublish</a>
|
|
<a href="#" class="js_publish_btn css_publish">Publish</a>
|
|
</li>
|
|
<li t-if="publish_duplicate">
|
|
<a t-att-href="publish_duplicate">Duplicate</a>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
<t t-if="publish_edit">
|
|
<a class="btn btn-xs btn-default" title="Edit in backend" t-att-href="'/web#model=%s&id=%s' % (object._name, object.id)"><span t-attf-class="glyphicon glyphicon-wrench"></span></a>
|
|
</t>
|
|
</div>
|
|
</t>
|
|
</template>
|
|
|
|
<template id="publish_short">
|
|
<t t-if="editable" t-ignore="true">
|
|
<a href="#" t-att-data-id="object.id" t-att-data-object="object._name"
|
|
t-att-data-publish="object.id and object.website_published and 'on' or 'off'"
|
|
class="pull-right js_publish">
|
|
<span t-attf-class="text-success css_publish glyphicon glyphicon-ok"></span>
|
|
<span t-attf-class="text-danger css_unpublish glyphicon glyphicon-remove-circle"></span>
|
|
<span t-attf-class="text-muted css_published glyphicon glyphicon-ok"></span>
|
|
<span t-attf-class="text-muted css_unpublished glyphicon glyphicon-remove-circle"></span>
|
|
</a>
|
|
</t>
|
|
</template>
|
|
|
|
<template id="pager" name="Pager">
|
|
<ul t-if="pager['page_count'] > 1" t-attf-class="#{ classname or '' } pagination">
|
|
<li t-att-class=" 'disabled' if pager['page']['num'] == 1 else '' ">
|
|
<a t-att-href=" pager['page_start']['url'] if pager['page']['num'] != 1 else '' ">Prev</a>
|
|
</li>
|
|
<t t-foreach="pager['pages']" t-as="page">
|
|
<li t-att-class=" 'active' if page['num'] == pager['page']['num'] else '' "> <a t-att-href="page['url']" t-raw="page['num']"></a></li>
|
|
</t>
|
|
<li t-att-class=" 'disabled' if pager['page']['num'] == pager['page_count'] else '' ">
|
|
<a t-att-href=" pager['page_end']['url'] if pager['page']['num'] != pager['page_count'] else '' ">Next</a>
|
|
</li>
|
|
</ul>
|
|
</template>
|
|
|
|
<template id="kanban">
|
|
<t t-set="step"><t t-esc="step or 0"/></t>
|
|
<t t-set="scope"><t t-esc="scope or 0"/></t>
|
|
<t t-set="orderby"><t t-esc="orderby or 'name'"/></t>
|
|
<t t-raw="website.kanban(model, domain, column, template, step=step, scope=scope, orderby=orderby)"/>
|
|
</template>
|
|
|
|
<template id="kanban_contain">
|
|
<table class="table js_kanban">
|
|
<thead>
|
|
<tr>
|
|
<t t-set="width" t-value="str(round(100.0 / len(objects), 2)) + '%'"/>
|
|
<t t-foreach="objects">
|
|
<th t-att-width="width">
|
|
<div t-field="column_id.name" class="text-center"></div>
|
|
</th>
|
|
</t>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<t t-foreach="objects">
|
|
<td class="js_kanban_col" t-att-data-template="template" t-att-data-domain="domain" t-att-data-page_count="page_count" t-att-data-model="model" t-att-data-step="step" t-att-data-orderby="orderby">
|
|
<t t-foreach="object_ids" t-as="object_id">
|
|
<t t-call="#{ template }"></t>
|
|
</t>
|
|
<!-- pager -->
|
|
<div t-if="1 != page_end" class="pagination pagination-centered">
|
|
<ul>
|
|
<li t-attf-class="prev #{'active' if page == 1 else '' }"> <a t-att-href=" '%s,%s-%s' % (kanban_url, column_id.id, (page > 1 and page-1 or 1)) ">Prev</a></li>
|
|
<t t-foreach="range(page_start, page_end+1)" t-as="p">
|
|
<li t-att-class=" 'active' if page == p else '' "> <a t-att-href=" '%s,%s-%s' % (kanban_url, column_id.id, p)" t-esc="p"></a></li>
|
|
</t>
|
|
<li t-attf-class="next #{'active' if page == page_end else '' }"> <a t-att-href=" '%s,%s-%s' % (kanban_url, column_id.id, (page < page_end and page+1 or page_end) )">Next</a></li>
|
|
</ul>
|
|
</div>
|
|
</td>
|
|
</t>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</template>
|
|
|
|
<!-- Error and special pages -->
|
|
|
|
<template id="default_page">
|
|
<t t-call="website.layout">
|
|
<div id="wrap" class="oe_structure oe_empty"></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>
|
|
<a class="btn btn-primary" t-att-href="'/pagenew/'+path">Create Page</a>
|
|
<span class="text-muted">or</span> <a t-href="/sitemap">Search a Page</a>
|
|
</div>
|
|
<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="oe_structure oe_empty">
|
|
<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 t-href="/">Homepage</a></li>
|
|
<li><a t-href="/page/website.contactus/">Contact Us</a></li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</t>
|
|
</template>
|
|
|
|
<template id="500">
|
|
<t t-call="website.layout">
|
|
<div id="wrap">
|
|
<div class="oe_structure">
|
|
<h1 class="container mt32">500: Internal Server Error!</h1>
|
|
</div>
|
|
<t t-if="editable">
|
|
<h3>An exception appear in the template: <span id="exception_template" t-esc="template"/></h3>
|
|
<b id="exception_message" t-esc="message"/>
|
|
<pre id="exception_node" t-esc="node"/>
|
|
<pre id="exception_traceback" t-esc="traceback"/>
|
|
</t>
|
|
</div>
|
|
</t>
|
|
</template>
|
|
|
|
<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.
|
|
</p><p>
|
|
Maybe you were looking for one of these
|
|
popular pages ?
|
|
</p>
|
|
<pre t-if="editable" t-esc="error"/>
|
|
<ul>
|
|
<li><a t-href="/">Homepage</a></li>
|
|
<li><a t-href="/page/website.contactus/">Contact Us</a></li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</t>
|
|
</template>
|
|
|
|
<template id="robots">
|
|
# robotstxt.org/
|
|
User-agent: *
|
|
Sitemap: <t t-esc="url_root"/>sitemap.xml
|
|
</template>
|
|
|
|
<template id="sitemap">
|
|
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
|
|
<t t-foreach="pages" t-as="page">
|
|
<url t-esc="page['url']"/>
|
|
</t>
|
|
</urlset>
|
|
</template>
|
|
|
|
<!-- Actual pages -->
|
|
|
|
<template id="homepage" name="Homepage" page="True">
|
|
<t t-call="website.layout">
|
|
<div id="wrap" class="oe_structure oe_empty"></div>
|
|
</t>
|
|
</template>
|
|
|
|
<template id="company_description" name="Company Description">
|
|
<address>
|
|
<strong t-field="res_company.name">Name</strong><br />
|
|
<span t-field="res_company.street"></span> <span t-field="res_company.state_id"></span><br />
|
|
<span t-field="res_company.zip"></span> <span t-field="res_company.city"></span><br />
|
|
<span t-field="res_company.country_id"> </span><br />
|
|
<br />
|
|
<span>&#x2706; <span t-field="res_company.phone"></span></span><br />
|
|
<i class="icon-envelope"></i> <span t-field="res_company.email"></span>
|
|
</address>
|
|
<a t-att-href="res_company.partner_id.google_map_link()" target="_BLANK">
|
|
<img class="thumbnail img-responsive" t-att-src="res_company.partner_id.google_map_img()" />
|
|
</a>
|
|
</template>
|
|
|
|
<template id="contactus" name="Contact us" page="True">
|
|
<t t-call="website.layout">
|
|
<div id="wrap">
|
|
<div class="oe_structure"/>
|
|
<div class="container">
|
|
<h1>Contact us</h1>
|
|
<div class="row">
|
|
<div class="col-md-8">
|
|
<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>
|
|
<div class="text-center mt64" name="mail_button">
|
|
<a t-attf-href="mailto:{{ res_company.email }}" class="btn btn-primary">Send us an email</a>
|
|
</div>
|
|
</div>
|
|
<div class="col-md-4 mb32">
|
|
<t t-call="website.company_description"/>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="oe_structure"/>
|
|
</div>
|
|
</t>
|
|
</template>
|
|
|
|
<template id="aboutus" name="About us" page="True">
|
|
<t t-call="website.layout">
|
|
<div id="wrap">
|
|
<div class="oe_structure"/>
|
|
<div class="container mb32">
|
|
<div class="row col-wrap" id="aboutus">
|
|
<div class="col-sm-12 text-center" data-snippet-id="parallax">
|
|
<div class="parallax oe_structure oe_big" style="background-image: url('/website/static/src/img/parallax/background1.jpg')" data-stellar-background-ratio="0.3">
|
|
<h1 class="pt60">About us</h1>
|
|
<h3 class="text-muted">Great Product for Great People</h3>
|
|
</div>
|
|
</div>
|
|
<div class="col-sm-8 mt16">
|
|
<p>
|
|
We are a team of passionated people whose goal is to improve everyone's
|
|
life through disruptive products. We build great products to solve your
|
|
business problems.
|
|
</p>
|
|
<p>
|
|
Our products are designed for small to medium companies willing to optimize
|
|
their performance.
|
|
</p>
|
|
</div><div class="col-sm-3 col-sm-offset-1">
|
|
<img src="/website/static/src/img/library/business_conference.jpg" class="img img-responsive shadow" alt="Out Team"/>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="oe_structure"/>
|
|
</div>
|
|
</t>
|
|
</template>
|
|
|
|
</data>
|
|
</openerp>
|