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