[MERGE] Forward-port saas-3 up to fc92027
[odoo/odoo.git] / addons / website / views / website_templates.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <!-- vim:fdn=3:
3 -->
4 <openerp>
5     <data>
6
7 <!-- Layout and generic templates -->
8
9 <template id="website.theme" name="Theme">
10     <link id="bootstrap_css" rel='stylesheet' href='/web/static/lib/bootstrap/css/bootstrap.css' t-ignore="true"/>
11     <link id="website_css" rel='stylesheet' href='/website/static/src/css/website.css' t-ignore="true"/>
12 </template>
13
14 <template id="website.submenu" name="Submenu">
15     <li t-if="not submenu.child_id" t-att-class="
16         ((submenu.url != '/' and request.httprequest.path.startswith(submenu.url)) or
17          request.httprequest.path == submenu.url) and 'active'
18         ">
19         <a t-att-href="(website.menu_id.child_id[0] == submenu) and '/' or submenu.url" t-ignore="true" t-att-target="'blank' if submenu.new_window else None">
20             <span t-field="submenu.name"/>
21         </a>
22     </li>
23     <li t-if="submenu.child_id" t-attf-class="dropdown #{
24         ((submenu.url != '/' and [1 for submenu in submenu.child_id if request.httprequest.path.startswith(submenu.url)]) or
25          request.httprequest.path == submenu.url) and 'active'
26         }">
27         <a class="dropdown-toggle" data-toggle="dropdown" href="#">
28             <span t-field="submenu.name"/> <span class="caret" t-ignore="true"></span>
29         </a>
30         <ul class="dropdown-menu" role="menu">
31             <t t-foreach="submenu.child_id" t-as="submenu">
32                 <t t-call="website.submenu"/>
33             </t>
34         </ul>
35     </li>
36 </template>
37
38 <template id="layout" name="Main layout">&lt;!DOCTYPE html&gt;
39     <html t-att-lang="lang and lang.replace('_', '-')"
40           t-att-data-website-id="website.id if editable else None"
41           t-att-data-editable="'1' if editable else None"
42           t-att-data-translatable="'1' if translatable else None"
43           t-att-data-view-xmlid="xmlid if editable else None"
44           t-att-data-main-object="repr(main_object) if editable else None"
45           t-att-data-oe-company-name="res_company.name">
46         <head>
47             <meta charset="utf-8" />
48             <script type="text/javascript" src="/web/static/src/js/watch.js"></script>
49             <t t-if="main_object and 'website_meta_title' in main_object">
50                 <t t-set="title" t-value="main_object.website_meta_title"/>
51             </t>
52             <t t-if="not title and main_object and 'name' in main_object">
53                 <t t-set="additional_title" t-value="main_object.name"/>
54             </t>
55             <t t-if="not title">
56                 <t t-set="title"><t t-raw="res_company.name"/><t t-if="additional_title"> - <t t-raw="additional_title"/></t></t>
57             </t>
58             <meta name="viewport" content="initial-scale=1"/>
59             <meta name="description" t-att-content="main_object and 'website_meta_description' in main_object
60                 and main_object.website_meta_description or website_meta_description"/>
61             <meta name="keywords" t-att-content="main_object and 'website_meta_keywords' in main_object
62                 and main_object.website_meta_keywords or website_meta_keywords"/>
63             <title><t t-esc="title"/></title>
64
65             <!-- Load stylesheets before scripts to avoid blocking -->
66             <link rel='stylesheet' href='/web/static/lib/fontawesome/css/font-awesome.css'/>
67
68             <t t-call="website.theme"/>
69
70             <script type="text/javascript" src="/web/static/lib/es5-shim/es5-shim.min.js"></script>
71             <script type="text/javascript" src="/web/static/lib/underscore/underscore.js"></script>
72             <script type="text/javascript" src="/web/static/lib/underscore.string/lib/underscore.string.js"></script>
73             <script type="text/javascript" src="/web/static/lib/jquery/jquery.js"></script>
74             <script type="text/javascript" src="/web/static/lib/jquery.form/jquery.form.js"></script>
75             <script type="text/javascript">
76                 // Bootstrap and jQuery UI conflicts
77                 $.fn.bstooltip = $.fn.tooltip;
78                 $.fn.bsbutton = $.fn.button;
79             </script>
80
81             <script type="text/javascript" src="/web/static/lib/qweb/qweb2.js"></script>
82             <script type="text/javascript" src="/web/static/src/js/openerpframework.js"></script>
83
84             <script type="text/javascript" src="/website/static/src/js/website.js"></script>
85
86             <script t-if="not translatable" type="text/javascript" src="/website/static/src/js/website.snippets.animation.js"></script>
87             <script type="text/javascript" src="/web/static/lib/bootstrap/js/bootstrap.js"></script>
88
89             <t t-raw="head or ''" name='layout_head'/>
90         </head>
91         <body>
92             <div id="wrapwrap">
93                 <header>
94                     <div class="navbar navbar-default navbar-static-top">
95                         <div class="container">
96                             <div class="navbar-header">
97                                 <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-top-collapse">
98                                     <span class="sr-only">Toggle navigation</span>
99                                     <span class="icon-bar"></span>
100                                     <span class="icon-bar"></span>
101                                     <span class="icon-bar"></span>
102                                 </button>
103                                 <a class="navbar-brand" href="/" t-field="res_company.name"/>
104                             </div>
105                             <div class="collapse navbar-collapse navbar-top-collapse">
106                                 <ul class="nav navbar-nav navbar-right" id="top_menu">
107                                     <t t-foreach="website.menu_id.child_id" t-as="submenu">
108                                         <t t-call="website.submenu"/>
109                                     </t>
110                                     <li class="divider" t-ignore="true" t-if="website.user_id != user_id"/>
111                                     <li class="dropdown" t-ignore="true" t-if="website.user_id != user_id">
112                                         <a href="#" class="dropdown-toggle" data-toggle="dropdown">
113                                             <b>
114                                                 <span t-esc="user_id.name"/>
115                                                 <span class="caret"></span>
116                                             </b>
117                                         </a>
118                                         <ul class="dropdown-menu js_usermenu" role="menu">
119                                             <li><a href="/web" role="menuitem">My Account</a></li>
120                                             <li class="divider"/>
121                                             <li><a t-attf-href="/web/session/logout?redirect=/" role="menuitem">Logout</a></li>
122                                         </ul>
123                                     </li>
124                                 </ul>
125                             </div>
126                         </div>
127                     </div>
128                 </header>
129                 <main>
130                     <t t-raw="0"/>
131                 </main>
132                 <footer>
133                     <div class="container hidden-print" id="footer_container">
134                         <div class="row">
135                             <div class="col-md-3">
136                                 <h4>Our products &amp; Services</h4>
137                                 <ul class="list-unstyled" name="products">
138                                     <li><a href="/">Home</a></li>
139                                 </ul>
140                             </div>
141                             <div class="col-md-3" name="info">
142                                 <h4>Connect with us</h4>
143                                 <ul class="list-unstyled">
144                                     <li><a href="/page/website.contactus">Contact us</a></li>
145                                 </ul>
146                                 <ul class="list-unstyled">
147                                     <li t-ignore="true"><i class="fa fa-phone"></i> <span t-field="res_company.phone"></span></li>
148                                     <li t-ignore="true"><i class="fa fa-envelope"></i>  <span t-field="res_company.email"></span></li>
149                                 </ul>
150                                 <h2>
151                                     <a t-att-href="website.social_facebook" t-if="website.social_facebook"><i class="fa fa-facebook-square"/></a>
152                                     <a t-att-href="website.social_twitter" t-if="website.social_twitter"><i class="fa fa-twitter"/></a>
153                                     <a t-att-href="website.social_linkedin" t-if="website.social_linkedin"><i class="fa fa-linkedin"/></a>
154                                     <a t-att-href="website.social_youtube" t-if="website.social_youtube"><i class="fa fa-youtube-play"/></a>
155                                     <a t-att-href="website.social_googleplus" t-if="website.social_googleplus"><i class="fa fa-google-plus-square"/></a>
156                                     <a t-att-href="website.social_github" t-if="website.social_github"><i class="fa fa-github"/></a>
157                                 </h2>
158                             </div>
159                             <div class="col-md-5 col-lg-offset-1">
160                                 <div>
161                                     <h4>
162                                         <span t-field="res_company.name">Your Company</span>
163                                         <small> - <a href="/page/website.aboutus">About us</a></small>
164                                     </h4>
165                                     <p>
166                                         We are a team of passionate people whose goal is to improve everyone's
167                                         life through disruptive products. We build great products to solve your
168                                         business problems.
169                                     </p>
170                                     <p>
171                                         Our products are designed for small to medium size companies willing to optimize
172                                         their performance.
173                                     </p>
174                                 </div>
175                                 <t t-set="languages" t-value="website.get_languages()"/>
176                                 <ul class="list-inline js_language_selector mt16" t-if="(len(languages) &gt; 1 or editable)">
177                                     <li t-foreach="languages" t-as="lg">
178                                         <a t-att-href="url_for('', lang=lg[0]) + '?' + keep_query()"
179                                            t-att-data-default-lang="editable and 'true' if lg[0] == website.default_lang_code else None">
180                                             <t t-esc="lg[1].split('/').pop()"/>
181                                         </a>
182                                     </li>
183                                     <li groups="base.group_website_publisher">
184                                         <t t-set="url_return" t-value="url_for('', '[lang]') + '?' + keep_query()"/>
185                                         <a t-attf-href="/web#action=base.action_view_base_language_install&amp;website_id=#{website.id}&amp;url_return=#{url_return}">
186                                             <i class="fa fa-plus-circle"/>
187                                             Add a language...
188                                         </a>
189                                     </li>
190                                 </ul>
191                             </div>
192                         </div>
193                     </div>
194                     <div class="container mt16 mb8">
195                         <div class="pull-right" t-ignore="true" t-if="not editable">
196                             Create a <a href="http://www.odoo.com/page/website-builder">free website</a> with
197                             <a class="label label-danger" href="http://www.odoo.com/page/website-builder">Odoo</a>
198                         </div>
199                         <div class="pull-left text-muted">
200                             Copyright &amp;copy; <span t-field="res_company.name">Company name</span>
201                         </div>
202                     </div>
203                 </footer>
204             </div>
205             <t t-if="website.google_analytics_key">
206                 <script>
207                     (function(b,o,i,l,e,r){b.GoogleAnalyticsObject=l;b[l]||(b[l]=
208                     function(){(b[l].q=b[l].q||[]).push(arguments)});b[l].l=+new Date;
209                     e=o.createElement(i);r=o.getElementsByTagName(i)[0];
210                     e.src='//www.google-analytics.com/analytics.js';
211                     r.parentNode.insertBefore(e,r)}(window,document,'script','ga'));
212                     ga('create',_.str.trim('<t t-esc="website.google_analytics_key"/>'));
213                     ga('send','pageview');
214                 </script>
215             </t>
216         </body>
217     </html>
218 </template>
219
220 <template id="layout_logo_show" inherit_id="website.layout" inherit_option_id="website.layout" name="Show Logo">
221     <xpath expr="//header//a[@class='navbar-brand']" position="replace">
222         <a href="/" class="navbar-brand logo">
223             <img src="/logo.png"/>
224         </a>
225     </xpath>
226 </template>
227
228 <template id="editor_head" inherit_id="website.layout" name="Editor" groups="base.group_website_publisher">
229     <xpath expr="//body" position="attributes">
230         <attribute name="style">padding-top: 51px;</attribute>
231     </xpath>
232     <xpath expr="//body" position="inside">
233         <div id="website-top-navbar-placeholder" class="navbar navbar-inverse navbar-fixed-top hidden-xs">
234             <div class="navbar-header">
235                 <form class="navbar-form navbar-left">
236                     <button type="button" class="btn btn-primary">Edit</button>
237                 </form>
238             </div>
239             <div class="collapse navbar-collapse navbar-edit-collapse">
240                 <ul class="nav navbar-nav navbar-right">
241                     <li><a href="#" onclick="return false;"><i class="fa fa-mobile" title="Mobile preview"/></a></li>
242                     <li class="divider-vertical"/>
243                     <li><a href="#" onclick="return false;"><span title="Promote page on the web">Promote</span></a></li>
244                     <li class="dropdown">
245                         <a href="#" onclick="return false;">Content <span class="caret"/></a>
246                     </li>
247                     <li class="dropdown">
248                         <a href="#" onclick="return false;">Customize <span class="caret"/></a>
249                     </li>
250                     <li class="dropdown">
251                         <a href="#" onclick="return false;">Help <span class="caret"/></a>
252                     </li>
253                 </ul>
254             </div>
255         </div>
256     </xpath>
257     <xpath expr='//script[@src="/web/static/lib/bootstrap/js/bootstrap.js"]' position="before">
258         <link rel='stylesheet' href='/website/static/src/css/snippets.css'/>
259         <link rel='stylesheet' href='/website/static/src/css/editor.css'/>
260         <link rel='stylesheet' href='/website/static/lib/bootstrap-tour/bootstrap-tour.css'/>
261
262
263         <link rel="stylesheet" href="/web/static/lib/select2/select2.css"/>
264         <link rel="stylesheet" href="/website/static/lib/select2-bootstrap-css/select2-bootstrap.css"/>
265         <link rel='stylesheet' href="/web/static/lib/jquery.ui/css/smoothness/jquery-ui-1.9.1.custom.css"/>
266
267         <script type="text/javascript" src="/web/static/lib/select2/select2.js"></script>
268         <script type="text/javascript" src="/web/static/lib/ckeditor/ckeditor.js"></script>
269         <script t-if="not translatable" type="text/javascript" src="/website/static/lib/ace/ace.js"></script>
270         <script type="text/javascript" src="/website/static/lib/vkbeautify/vkbeautify.0.99.00.beta.js"></script>
271         <script type="text/javascript" src="/web/static/lib/jquery.ui/js/jquery-ui-1.9.1.custom.js"></script>
272         <script type="text/javascript" src="/website/static/lib/bootstrap-tour/bootstrap-tour.js"></script>
273         <!-- mutation observers shim backed by mutation events (8 < IE < 11, Safari < 6, FF < 14, Chrome < 17) -->
274         <script type="text/javascript" src="/website/static/lib//jquery.mjs.nestedSortable/jquery.mjs.nestedSortable.js"></script>
275         <script type="text/javascript" src="/website/static/lib/MutationObservers/test/sidetable.js"></script>
276         <script type="text/javascript" src='/website/static/lib/nearest/jquery.nearest.js'></script>
277         <script type="text/javascript" src="/website/static/lib/MutationObservers/MutationObserver.js"></script>
278
279         <script type="text/javascript" src="/website/static/lib/jquery.placeholder/jquery.placeholder.js"></script>
280
281         <script type="text/javascript" src="/website/static/src/js/website.editor.js"></script>
282         <script type="text/javascript" src="/website/static/src/js/website.editor.newpage.js" groups="base.group_website_designer"></script>
283         <script type="text/javascript" src="/website/static/src/js/website.menu.js" groups="base.group_website_designer"></script>
284         <script type="text/javascript" src="/website/static/src/js/website.mobile.js"></script>
285         <script type="text/javascript" src="/website/static/src/js/website.seo.js"></script>
286         <script type="text/javascript" id="website_tour_js" src="/website/static/src/js/website.tour.js"></script>
287         <script type="text/javascript" src="/website/static/src/js/website.tour.banner.js" groups="base.group_website_designer"></script>
288         <script t-if="not translatable" type="text/javascript" src="/website/static/src/js/website.snippets.editor.js"></script>
289         <script t-if="not translatable" type="text/javascript" src="/website/static/src/js/website.ace.js"></script>
290         <script t-if="translatable" type="text/javascript" src="/website/static/src/js/website.translator.js"></script>
291
292         <script type="text/javascript" src="/website/static/src/js/jQuery.transfo.js"></script>
293     </xpath>
294 </template>
295
296 <template id="debugger" inherit_option_id="website.layout" name="Debugger &amp; Tests">
297     <xpath expr='//t[@name="layout_head"]' position="after">
298         <t t-set="debugger_hook" t-value="1" />
299     </xpath>
300 </template>
301
302 <template id="login_layout" inherit_id="web.login_layout" name="Website Login Layout">
303     <xpath expr="t" position="replace">
304         <t t-call="website.layout">
305             <div class="oe_website_login_container" t-raw="0"/>
306         </t>
307     </xpath>
308 </template>
309
310 <template id="show_sign_in" inherit_option_id="website.layout" inherit_id="website.layout" name="Show Sign In" groups="base.group_public">
311     <xpath expr="//ul[@id='top_menu']" position="inside">
312         <li class="divider"/>
313         <li>
314             <a t-attf-href="/web/login">
315                 <b>Sign in</b>
316             </a>
317         </li>
318     </xpath>
319 </template>
320
321 <template id="footer_custom" inherit_option_id="website.layout" name="Custom Footer">
322     <xpath expr="//div[@id='footer_container']" position="before">
323         <div class="oe_structure">
324             <section data-snippet-id='three-columns' class="mt16 mb16">
325                 <div class="container">
326                     <div class="row">
327                         <div class="col-md-4">
328                             <h4 class="mt16">Subtitle</h4>
329                             <p>
330                                 <a href="/">Homepage</a>
331                             </p>
332                         </div>
333                         <div class="col-md-4">
334                             <h4 class="mt16">Subtitle 2</h4>
335                             <p>
336                                 ...
337                             </p>
338                         </div>
339                         <div class="col-md-4">
340                             <h4 class="mt16">Subtitle 3</h4>
341                             <p>
342                                 ...
343                             </p>
344                         </div>
345                     </div>
346                 </div>
347             </section>
348         </div>
349     </xpath>
350     <xpath expr="//div[@id='footer_container']" position="attributes">
351         <attribute name="style">display: none</attribute>
352     </xpath>
353 </template>
354
355 <template id="publish_management">
356     <div groups="base.group_website_publisher" t-ignore="true" class="pull-right css_editable_mode_hidden" t-att-style="style or ''">
357         <div t-attf-class="btn-group js_publish_management #{object.website_published and 'css_published' or 'css_unpublished'}" t-att-data-id="object.id" t-att-data-object="object._name" t-att-data-controller="publish_controller">
358             <button class="btn btn-danger js_publish_btn">Not Published</button>
359             <button class="btn btn-success js_publish_btn">Published</button>
360             <button type="button" t-attf-class="btn btn-default dropdown-toggle" t-att-id="'dopprod-%s' % object.id" data-toggle="dropdown">
361                 <span class="caret"></span>
362             </button>
363             <ul class="dropdown-menu" role="menu" t-att-aria-labelledby="'dopprod-%s' % object.id">
364                 <li>
365                     <a href="#" class="js_publish_btn">
366                         <span class="css_unpublish">Unpublish</span>
367                         <span class="css_publish">Publish</span>
368                     </a>
369                 </li>
370                 <t t-raw="0"/>
371                 <li t-if="publish_edit">
372                     <a t-attf-href="/web#return_label=Website&amp;view_type=form&amp;model=#{object._name}&amp;id=#{object.id}&amp;action=#{action}"
373                     title='Edit in backend'>Edit</a>
374                 </li>
375             </ul>
376         </div>
377     </div>
378 </template>
379
380 <template id="publish_short">
381     <t groups="base.group_website_publisher" t-ignore="true">
382         <div t-attf-class="btn-group pull-right js_publish_management #{object.website_published and 'css_published' or 'css_unpublished'}" t-att-data-id="object.id" t-att-data-object="object._name" t-att-data-controller="publish_controller">
383             <button t-attf-class="btn btn-sm btn-#{object.website_published and 'success' or 'danger'} js_publish_btn">
384                 <span class="css_publish">Not Published</span>
385                 <span class="css_unpublish">Published</span>
386             </button>
387         </div>
388     </t>
389 </template>
390
391 <template id="pager" name="Pager">
392     <ul t-if="pager['page_count'] > 1" t-attf-class="#{ classname or '' } pagination" t-att-style="style or ''">
393         <li t-att-class=" 'disabled' if pager['page']['num'] == 1 else '' ">
394             <a t-att-href=" pager['page_previous']['url'] if pager['page']['num'] != 1 else ''">Prev</a>
395         </li>
396         <t t-foreach="pager['pages']" t-as="page">
397             <li t-att-class=" 'active' if page['num'] == pager['page']['num'] else '' "> <a t-att-href="page['url']" t-raw="page['num']"></a></li>
398         </t>
399         <li t-att-class=" 'disabled' if pager['page']['num'] == pager['page_count'] else '' ">
400             <a t-att-href="pager['page_next']['url'] if pager['page']['num'] != pager['page_count'] else ''">Next</a>
401         </li>
402     </ul>
403 </template>
404
405 <template id="kanban">
406     <t t-set="step"><t t-esc="step or 0"/></t>
407     <t t-set="scope"><t t-esc="scope or 0"/></t>
408     <t t-set="orderby"><t t-esc="orderby or 'name'"/></t>
409     <t t-raw="website.kanban(model, domain, column, template, step=step, scope=scope, orderby=orderby)"/>
410 </template>
411
412 <template id="kanban_contain">
413     <table class="table js_kanban">
414         <thead>
415             <tr>
416                 <t t-set="width" t-value="str(round(100.0 / (len(objects) if objects else 1), 2)) + '%'"/>
417                 <t t-foreach="objects">
418                     <th t-att-width="width">
419                         <div t-field="column_id.name" class="text-center"></div>
420                     </th>
421                 </t>
422             </tr>
423         </thead>
424         <tbody>
425             <tr>
426                 <t t-foreach="objects">
427                     <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">
428                         <t t-foreach="object_ids" t-as="object_id">
429                             <t t-call="#{ template }"></t>
430                         </t>
431                         <!-- pager -->
432                         <div t-if="1 != page_end" class="pagination pagination-centered">
433                             <ul>
434                                 <li t-attf-class="prev #{'active' if page == 1 else '' }"> <a t-att-href=" '%s,%s-%s' % (kanban_url, column_id.id, (page &gt; 1 and page-1 or 1)) ">Prev</a></li>
435                                 <t t-foreach="range(page_start, page_end+1)" t-as="p">
436                                     <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>
437                                 </t>
438                                 <li t-attf-class="next #{'active' if page == page_end else '' }"> <a t-att-href=" '%s,%s-%s' % (kanban_url, column_id.id, (page &lt; page_end and page+1 or page_end) )">Next</a></li>
439                             </ul>
440                         </div>
441                     </td>
442                 </t>
443             </tr>
444         </tbody>
445     </table>
446 </template>
447
448 <!-- Error and special pages -->
449
450 <template id="default_page">
451     <t t-call="website.layout">
452       <div id="wrap" class="oe_structure oe_empty"></div>
453     </t>
454 </template>
455
456 <template id="page_404">
457     <t t-call="website.404">
458         <div class="container">
459             <div class="well mt32">
460                 <p>This page does not exists, but you can create it as you are administrator of this site.</p>
461                 <a class="btn btn-primary" t-attf-href="/website/add/#{ path }">Create Page</a>
462             </div>
463             <div class="text-center text-muted">Edit the content below this line to adapt the default "page not found" page.</div>
464         </div>
465         <hr/>
466     </t>
467 </template>
468
469 <template id="http_error">
470     <t t-call="website.layout">
471         <div id="wrap">
472             <div class="oe_structure">
473                 <h1 class="container mt32"><t t-esc="status_code"/>: <t t-esc="status_message"/></h1>
474             </div>
475
476             <t t-if="editable or request.debug">
477                 <t t-call="website.http_error_debug"/>
478             </t>
479         </div>
480     </t>
481 </template>
482
483 <template id="http_error_debug">
484     <div class="container panel-group mb32 mt32" id="debug_infos">
485         <div class="panel panel-default" t-if="exception">
486             <div class="panel-heading">
487                 <h4 class="panel-title">
488                     <a data-toggle="collapse" data-parent="#debug_infos" href="#error_main">
489                         Error
490                     </a>
491                 </h4>
492             </div>
493             <div id="error_main" class="panel-collapse collapse in">
494                 <div class="panel-body">
495                     <p t-if="website_controller">The following error was raised in the website controller <code t-esc="website_controller"/></p>
496                     <p>
497                         <strong>Error message:</strong>
498                         <pre t-esc="exception.message"/>
499                     </p>
500                 </div>
501             </div>
502         </div>
503         <div class="panel panel-default" t-if="qweb_exception">
504             <div class="panel-heading">
505                 <h4 class="panel-title">
506                     <a data-toggle="collapse" data-parent="#adebug_infos" href="#error_qweb">
507                         QWeb
508                     </a>
509                 </h4>
510             </div>
511             <div id="error_qweb" class="panel-collapse collapse">
512                 <div class="panel-body">
513                     <p t-if="exception.qweb.get('message')">
514                         <strong>Error message:</strong>
515                         <pre t-esc="exception.qweb.get('message')"/>
516                     </p>
517                     <p>
518                         The error occured while rendering the template <code t-esc="qweb_exception.qweb.get('template')"/>
519                         <t t-if="'expression' in qweb_exception.qweb">and evaluating the following expression: <code t-esc="qweb_exception.qweb['expression']"/></t>
520                     </p>
521                     <t t-if="'node' in qweb_exception.qweb">
522                         <pre id="exception_node" t-esc="qweb_exception.qweb['node'].toxml()"/>
523                     </t>
524                 </div>
525             </div>
526         </div>
527         <div class="panel panel-default" t-if="traceback">
528             <div class="panel-heading">
529                 <h4 class="panel-title">
530                     <a data-toggle="collapse" data-parent="#adebug_infos" href="#error_traceback">
531                         Traceback
532                     </a>
533                 </h4>
534             </div>
535             <div id="error_traceback" class="panel-collapse collapse">
536                 <div class="panel-body">
537                     <pre id="exception_traceback" t-esc="traceback"/>
538                 </div>
539             </div>
540         </div>
541     </div>
542 </template>
543
544 <template id="403">
545     <t t-call="website.layout">
546         <div id="wrap">
547             <div class="container">
548                 <h1 class="mt32">403: Forbidden</h1>
549                 <p>The page you were looking for could not be authorized.</p>
550                 <p>Maybe you were looking for one of these popular pages ?</p>
551                 <ul>
552                     <li><a href="/">Homepage</a></li>
553                     <li><a href="/page/website.contactus/">Contact Us</a></li>
554                 </ul>
555             </div>
556             <t t-if="editable or request.debug">
557                 <t t-call="website.http_error_debug"/>
558             </t>
559         </div>
560     </t>
561 </template>
562
563 <template id="404">
564     <t t-call="website.layout">
565         <div id="wrap">
566             <t t-raw="0"/>
567             <div class="oe_structure oe_empty">
568                 <div class="container">
569                     <h1 class="mt32">404: Page not found!</h1>
570                     <p>
571                         The page you were looking for could not be found; it is possible you have
572                         typed the address incorrectly, but it has most probably been removed due
573                         to the recent website reorganisation.
574                     </p>
575                     <p>Maybe you were looking for one of these popular pages ?</p>
576                     <ul>
577                         <li><a href="/">Homepage</a></li>
578                         <li><a href="/page/website.contactus/">Contact Us</a></li>
579                     </ul>
580                 </div>
581             </div>
582
583             <t t-if="request.debug">
584                 <t t-call="website.http_error_debug"/>
585             </t>
586         </div>
587     </t>
588 </template>
589
590 <template id="500">
591     <!-- This template should not use any variable except those provided by website.ir_http._handle_exception -->
592     <html>
593         <head>
594             <title t-esc="status_message">Internal Server Error</title>
595             <link rel='stylesheet' href='/web/static/lib/fontawesome/css/font-awesome.css'/>
596             <link rel='stylesheet' href='/web/static/lib/bootstrap/css/bootstrap.css'/>
597             <link rel='stylesheet' href='/website/static/src/css/website.css'/>
598             <script type="text/javascript" src="/web/static/lib/jquery/jquery.js"></script>
599             <script type="text/javascript" src="/web/static/lib/bootstrap/js/bootstrap.js"></script>
600             <script>
601                 $(document).ready(function() {
602                     var button = $('#reset_templates_button');
603                     button.click(function() {
604                         var dialog = $('#reset_template_confirmation').modal('show');
605                         var input = dialog.find('input[type="text"]').val('').focus();
606                         var dialog_form = dialog.find('form');
607                         dialog_form.submit(function() {
608                             if (input.val() == dialog.find('.confirm_word').text()) {
609                                 dialog.modal('hide');
610                                 button.prop('disabled', true).text('Working...');
611                                 $('#reset_templates_form').trigger('submit');
612                             } else {
613                                 input.val('').focus();
614                             }
615                             return false;
616                         });
617                         return false;
618                     });
619                 });
620             </script>
621         </head>
622         <body>
623             <div id="reset_template_confirmation" class="modal" tabindex="-1" role="dialog" aria-hidden="true" t-ignore="true">
624                 <div class="modal-dialog">
625                     <form class="form-horizontal" role="form">
626                     <div class="modal-content">
627                         <div class="modal-header">
628                             <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
629                             <h3 class="modal-title">Reset templates</h3>
630                         </div>
631                         <div class="modal-body">
632                             <div class="form-group mb0">
633                                 <label for="page-name" class="col-sm-9">
634                                     <p>The selected templates will be reset to their factory settings.</p>
635                                     <p>Type '<i class="confirm_word">yes</i>' in the box below if you want to confirm.</p>
636                                 </label>
637                                 <div class="col-sm-3 mt16">
638                                     <input type="text" class="form-control" required="required" placeholder="yes"/>
639                                 </div>
640                             </div>
641                         </div>
642                         <div class="modal-footer">
643                             <input type="submit" value="Confirm" class="btn btn-primary"/>
644                             <button type="button" class="btn" data-dismiss="modal" aria-hidden="true">Cancel</button>
645                         </div>
646                     </div>
647                     </form>
648                 </div>
649             </div>
650
651             <div id="wrapwrap">
652                 <div class="navbar navbar-default navbar-static-top">
653                     <div class="container">
654                         <div class="collapse navbar-collapse navbar-top-collapse">
655                             <ul class="nav navbar-nav pull-right">
656                                 <li><a href="/">Home</a></li>
657                                 <li><a href="javascript: window.history.back()">Back</a></li>
658                             </ul>
659                         </div>
660                     </div>
661                 </div>
662                 <div class="mb32">
663                     <div class="oe_structure">
664                         <h1 class="container mt32"><t t-esc="status_code"/>: <t t-esc="status_message"/></h1>
665                     </div>
666
667                     <div class="container" t-if="views">
668                         <div class="alert alert-danger" t-if="qweb_exception and editable">
669                             <h4>Template fallback</h4>
670                             <p>An error occured while rendering the template <code t-esc="qweb_exception.qweb['template']"/>.</p>
671                             <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>
672                             <form action="/website/reset_templates" method="post" id="reset_templates_form">
673                                 <ul class="oe_template_fallback">
674                                     <li t-foreach="views" t-as="view">
675                                         <label>
676                                             <input type="checkbox" name="templates" t-att-value="view.id" t-att-checked="'checked' if view_first else None"/>
677                                             <t t-esc="view.name"/>
678                                         </label>
679                                     </li>
680                                 </ul>
681                                 <input type="hidden" name="redirect" t-att-value="request.httprequest.path"/>
682                                 <button id="reset_templates_button">Reset selected templates</button>
683                             </form>
684                         </div>
685                     </div>
686
687                     <t t-if="editable or request.debug">
688                         <t t-call="website.http_error_debug"/>
689                     </t>
690                 </div>
691             </div>
692         </body>
693     </html>
694 </template>
695
696 <template id="robots">
697 User-agent: *
698 Sitemap: <t t-esc="url_root"/>sitemap.xml
699 </template>
700
701 <template id="sitemap_locs">
702     <url t-foreach="locs" t-as="page">
703         <loc><t t-esc="url_root"/><t t-esc="page['loc']"/></loc><t t-if="page.get('lastmod', False)">
704         <lastmod t-esc="page['lastmod']"/></t><t t-if="page.get('priority', False)">
705         <priority t-esc="page['priority']"/></t><t t-if="page.get('changefreq', False)">
706         <changefreq t-esc="page['changefreq']"/></t>
707     </url>
708 </template>
709
710 <template id="sitemap_xml">&lt;?xml version="1.0" encoding="UTF-8"?&gt;
711 <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
712     <t t-raw="content"/>
713 </urlset>
714 </template>
715
716 <template id="sitemap_index_xml">&lt;?xml version="1.0" encoding="UTF-8"?&gt;
717 <sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
718   <sitemap t-foreach="pages" t-as="page">
719     <loc><t t-esc="url_root"/>sitemap-<t t-esc="page"/>.xml</loc>
720   </sitemap>
721 </sitemapindex>
722 </template>
723
724
725 <!-- Actual pages -->
726
727 <template id="homepage" name="Homepage" page="True" priority="29">
728     <t t-call="website.layout">
729       <div id="wrap" class="oe_structure oe_empty"></div>
730     </t>
731 </template>
732
733 <template id="company_description" name="Company Description">
734     <address itemscope="itemscope" itemtype="http://schema.org/Organization">
735         <!-- TODO widget contact must add itemprop attributes -->
736         <div t-field="res_company.partner_id" t-field-options='{
737                 "widget": "contact",
738                 "fields": ["name", "address", "phone", "mobile", "fax", "email"]}'/>
739     </address>
740      <a t-att-href="res_company.google_map_link()" target="_BLANK">
741         <img class="thumbnail img-responsive" t-att-src="res_company.google_map_img()" />
742     </a>
743 </template>
744
745 <template id="contactus" name="Contact us" page="True">
746     <t t-call="website.layout">
747       <div id="wrap">
748         <div class="oe_structure"/>
749         <div class="container">
750             <h1>Contact us</h1>
751             <div class="row">
752                 <div class="col-md-8">
753                     <div class="oe_structure">
754                         <div>
755                             <p>Contact us about anything related to our company or services.</p>
756                             <p>We'll do our best to get back to you as soon as possible.</p>
757                         </div>
758                     </div>
759                     <div class="text-center mt64" name="mail_button">
760                         <a t-attf-href="mailto:{{ res_company.email }}" class="btn btn-primary">Send us an email</a>
761                     </div>
762                 </div>
763                 <div class="col-md-4 mb32">
764                     <div groups="base.group_website_publisher" t-ignore="true" class="pull-right css_editable_mode_hidden" t-att-style="style or ''">
765                         <a class="btn btm-sm btn-default" t-att-href="'/web#return_label=Website&amp;model=%s&amp;id=%s' % (res_company._name, res_company.id)">Change address</a>
766                     </div>
767                     <t t-call="website.company_description"/>
768                 </div>
769             </div>
770         </div>
771         <div class="oe_structure"/>
772       </div>
773     </t>
774 </template>
775
776 <template id="aboutus" name="About us" page="True">
777     <t t-call="website.layout">
778         <div id="wrap">
779             <div class="oe_structure">
780
781                 <section data-snippet-id="title">
782                     <div class="container">
783                         <div class="row">
784                             <div class="col-md-12">
785                                 <h1 class="text-center">About us</h1>
786                                 <h3 class="text-muted text-center">Great products for great people</h3>
787                             </div>
788                         </div>
789                     </div>
790                 </section>
791
792                 <section data-snippet-id="text-image">
793                     <div class="container">
794                         <div class="row">
795                             <div class="col-md-6 mt32">
796                                 <p>
797                                       We are a team of passionate people whose goal is to improve everyone's
798                                       life through disruptive products. We build great products to solve your
799                                       business problems.
800                                 </p>
801                                 <p>
802                                       Our products are designed for small to medium size companies willing to optimize
803                                       their performance.
804                                 </p>
805                             </div>
806                             <div class="col-md-4 col-md-offset-2 mt16 mb16">
807                                 <img src="/website/static/src/img/library/business_conference.jpg" class="img img-responsive shadow" alt="Our Team"/>
808                             </div>
809                         </div>
810                     </div>
811                 </section>
812
813             </div>
814             <div class="oe_structure"></div>
815         </div>
816     </t>
817 </template>
818
819      </data>
820 </openerp>