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