3f3dffc694de8c499af0a8d7714f828a31bfa41a
[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.assets_frontend" name="Website assets">
10     <t t-call="website.theme"/>
11
12     <script type="text/javascript" src="/web/static/src/js/watch.js"></script>
13
14     <script type="text/javascript" src="/website/static/src/js/website.js"></script>
15
16     <script type="text/javascript" src="/website/static/src/js/website.snippets.animation.js"></script>
17     <script type="text/javascript" src="/web/static/lib/bootstrap/js/bootstrap.js"></script>
18     
19 </template>
20
21 <template id="assets_backend" name="website assets for backend" inherit_id="web.assets_backend">
22     <xpath expr="." position="inside">
23         <link rel="stylesheet" href="/website/static/src/css/website.backend.css"/>
24
25         <script type="text/javascript" src="/website/static/src/js/website.backend.js"></script>
26     </xpath>
27 </template>
28
29 <template id="website.submenu" name="Submenu">
30     <li t-if="not submenu.child_id" t-att-class="
31         ((submenu.url != '/' and request.httprequest.path.startswith(submenu.url)) or
32          request.httprequest.path == submenu.url) and 'active'
33         ">
34         <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">
35             <span t-field="submenu.name"/>
36         </a>
37     </li>
38     <li t-if="submenu.child_id" t-attf-class="dropdown #{
39         ((submenu.url != '/' and [1 for submenu in submenu.child_id if request.httprequest.path.startswith(submenu.url)]) or
40          request.httprequest.path == submenu.url) and 'active'
41         }">
42         <a class="dropdown-toggle" data-toggle="dropdown" href="#">
43             <span t-field="submenu.name"/> <span class="caret" t-ignore="true"></span>
44         </a>
45         <ul class="dropdown-menu" role="menu">
46             <t t-foreach="submenu.child_id" t-as="submenu">
47                 <t t-call="website.submenu"/>
48             </t>
49         </ul>
50     </li>
51 </template>
52
53 <template id="layout" name="Main layout">&lt;!DOCTYPE html&gt;
54     <html t-att-lang="lang and lang.replace('_', '-')"
55           t-att-data-website-id="website.id if editable and website else None"
56           t-att-data-editable="'1' if editable else None"
57           t-att-data-translatable="'1' if translatable else None"
58           t-att-data-view-xmlid="xmlid if editable else None"
59           t-att-data-main-object="repr(main_object) if editable else None"
60           t-att-data-oe-company-name="res_company.name">
61         <head>
62             <meta charset="utf-8" />
63             <t t-if="main_object and 'website_meta_title' in main_object">
64                 <t t-set="title" t-value="main_object.website_meta_title"/>
65             </t>
66             <t t-if="not title and main_object and 'name' in main_object">
67                 <t t-set="additional_title" t-value="main_object.name"/>
68             </t>
69             <t t-if="not title">
70                 <t t-set="title"><t t-if="additional_title"><t t-raw="additional_title"/> | </t><t t-raw="res_company.name"/></t>
71             </t>
72             <meta name="viewport" content="initial-scale=1"/>
73             <meta name="description" t-att-content="main_object and 'website_meta_description' in main_object
74                 and main_object.website_meta_description or website_meta_description"/>
75             <meta name="keywords" t-att-content="main_object and 'website_meta_keywords' in main_object
76                 and main_object.website_meta_keywords or website_meta_keywords"/>
77             <title><t t-esc="title"/></title>
78
79             <t t-set="languages" t-value="website.get_languages() if website else None"/>
80             <t t-if="request and request.website_multilang and website">
81                 <t t-foreach="website.get_alternate_languages(request.httprequest)" t-as="lang">
82                     <link rel="alternate" t-att-hreflang="lang['hreflang']" t-att-href="lang['href']"/>
83                 </t>
84             </t>
85
86             <t t-call-assets="web.assets_common"/>
87             <t t-call-assets="website.assets_frontend"/>
88
89             <t t-raw="head or ''" name='layout_head'/>
90             <t t-if="website and website.google_analytics_key">
91                 <script>
92                     (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
93                     (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
94                     m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
95                     })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
96
97                     ga('create', _.str.trim('<t t-esc="website.google_analytics_key"/>'), 'auto');
98                     ga('send','pageview');
99                 </script>
100             </t>
101         </head>
102         <body>
103             <div id="wrapwrap">
104                 <header>
105                     <div class="navbar navbar-default navbar-static-top">
106                         <div class="container">
107                             <div class="navbar-header">
108                                 <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-top-collapse">
109                                     <span class="sr-only">Toggle navigation</span>
110                                     <span class="icon-bar"></span>
111                                     <span class="icon-bar"></span>
112                                     <span class="icon-bar"></span>
113                                 </button>
114                                 <a class="navbar-brand" href="/">YourCompany</a>
115                             </div>
116                             <div class="collapse navbar-collapse navbar-top-collapse">
117                                 <ul class="nav navbar-nav navbar-right" id="top_menu">
118                                     <t t-foreach="website.menu_id.child_id" t-as="submenu">
119                                         <t t-call="website.submenu"/>
120                                     </t>
121                                     <li class="divider" t-ignore="true" t-if="website.user_id != user_id"/>
122                                     <li class="dropdown" t-ignore="true" t-if="website.user_id != user_id">
123                                         <a href="#" class="dropdown-toggle" data-toggle="dropdown">
124                                             <b>
125                                                 <span t-esc="(len(user_id.name)&gt;25) and (user_id.name[:23]+'...') or user_id.name"/>
126                                                 <span class="caret"></span>
127                                             </b>
128                                         </a>
129                                         <ul class="dropdown-menu js_usermenu" role="menu">
130                                             <li><a href="/web" role="menuitem">My Account</a></li>
131                                             <li class="divider"/>
132                                             <li><a t-attf-href="/web/session/logout?redirect=/" role="menuitem">Logout</a></li>
133                                         </ul>
134                                     </li>
135                                 </ul>
136                             </div>
137                         </div>
138                     </div>
139                 </header>
140                 <main>
141                     <t t-raw="0"/>
142                 </main>
143                 <footer>
144                     <div id="footer_container">
145                     </div>
146                 </footer>
147             </div>
148         </body>
149     </html>
150 </template>
151
152 <template id="layout_footer_copyright" inherit_id="website.layout" name="Footer Copyright">
153     <xpath expr="//footer" position="inside">
154         <div class="container mt16 mb8">
155             <div class="pull-right" t-ignore="true" t-if="not editable">
156                 Create a <a href="http://www.odoo.com/page/website-builder">free website</a> with
157                 <a class="label label-danger" href="http://www.odoo.com/page/website-builder">Odoo</a>
158             </div>
159             <div class="pull-left text-muted">
160                 Copyright &amp;copy; <span t-field="res_company.name">Company name</span>
161             </div>
162         </div>
163     </xpath>
164 </template>
165
166 <template id="layout_logo_show" inherit_id="website.layout" customize_show="True" name="Show Logo">
167     <xpath expr="//header//a[@class='navbar-brand']" position="replace">
168         <a href="/" class="navbar-brand logo">
169             <img src="/logo.png"/>
170         </a>
171     </xpath>
172 </template>
173
174 <template id="editor_head" inherit_id="website.layout" name="Editor" groups="base.group_website_publisher,base.group_website_designer">
175     <xpath expr='//t[@t-call-assets="website.assets_frontend"]' position="after">
176         <t t-call-assets="website.assets_editor"/>
177     </xpath>
178 </template>
179
180 <template id="assets_editor" name="Editor assets">
181     <script type="text/javascript">
182         var CKEDITOR_BASEPATH = '/web/static/lib/ckeditor/';
183     </script>
184     <link rel='stylesheet' href='/website/static/src/css/snippets.css'/>
185     <link rel='stylesheet' href='/website/static/src/css/editor.css'/>
186     <link rel='stylesheet' href="/web/static/lib/jquery.ui/css/smoothness/jquery-ui-1.9.1.custom.css"/>
187     <link rel="stylesheet" href="/web/static/lib/select2/select2.css"/>
188     <link rel="stylesheet" href="/website/static/lib/select2-bootstrap-css/select2-bootstrap.css"/>
189
190     <script type="text/javascript" src="/web/static/lib/select2/select2.js"></script>
191     <script type="text/javascript" src="/web/static/lib/ckeditor/ckeditor.js"></script>
192     <script type="text/javascript" src="/website/static/lib/ace/ace.js"></script>
193     <script type="text/javascript" src="/website/static/lib/ace/theme-monokai.js"></script>
194     <script type="text/javascript" src="/website/static/lib/ace/mode-xml.js"></script>
195     <script type="text/javascript" src="/website/static/lib/vkbeautify/vkbeautify.0.99.00.beta.js"></script>
196     <script type="text/javascript" src="/website/static/lib/jQuery.transfo.js"></script>
197     <t t-call="web.jqueryui_conflict">
198         <script type="text/javascript" src="/web/static/lib/jquery.ui/js/jquery-ui-1.9.1.custom.js"></script>
199     </t>
200
201     <!-- mutation observers shim backed by mutation events (8 < IE < 11, Safari < 6, FF < 14, Chrome < 17) -->
202     <script type="text/javascript" src="/website/static/lib//jquery.mjs.nestedSortable/jquery.mjs.nestedSortable.js"></script>
203     <script type="text/javascript" src="/website/static/lib/MutationObservers/test/sidetable.js"></script>
204     <script type="text/javascript" src='/website/static/lib/nearest/jquery.nearest.js'></script>
205     <script type="text/javascript" src="/website/static/lib/MutationObservers/MutationObserver.js"></script>
206
207     <script type="text/javascript" src="/website/static/src/js/website.editor.js"></script>
208     <script type="text/javascript" src="/website/static/src/js/website.contentMenu.js"></script> <!-- groups="base.group_website_designer" -->
209     <script type="text/javascript" src="/website/static/src/js/website.mobile.js"></script>
210     <script type="text/javascript" src="/website/static/src/js/website.seo.js"></script>
211     <script type="text/javascript" src="/website/static/src/js/website.tour.js"></script>
212     <script type="text/javascript" src="/website/static/src/js/website.tour.banner.js"></script> <!-- groups="base.group_website_designer" -->
213     <script type="text/javascript" src="/website/static/src/js/website.snippets.editor.js"></script>
214     <script type="text/javascript" src="/website/static/src/js/website.snippets.gallery.js" />
215     <script type="text/javascript" src="/website/static/src/js/website.ace.js"></script>
216     <script type="text/javascript" src="/website/static/src/js/website.translator.js"></script>
217     <script type="text/javascript" src="/website/static/src/js/website.theme.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" customize_show="True" 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" id="footer">
243             <section 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" customize_show="True" name="Automatic Footer">
272     <xpath expr="//div[@id='footer']" 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="info" name="Odoo Information">
439     <t t-call="website.layout">
440       <div id="wrap">
441         <div class="oe_structure">
442
443             <section class="container">
444                 <h1><t t-esc="res_company.name"/>
445                     <small>Odoo Version <t t-raw="version.get('server_version')"/></small>
446                 </h1>
447                 <p>
448                     Information about the <t t-esc="res_company.name"/> instance of Odoo, the <a href="https://www.odoo.com">Open Source ERP</a>.
449                 </p>
450
451                 <div class="alert alert-warning alert-dismissable mt16" groups="base.group_website_publisher">
452                    <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&amp;times;</button>
453                    <p>
454                      Note: To hide this page, uncheck it from the top Customize menu.
455                    </p>
456                 </div>
457                 <h2>Installed Applications</h2>
458                 <dl class="dl-horizontal" t-foreach="apps" t-as="app">
459                     <dt>
460                         <a t-att-href="app.website" t-if="app.website">
461                             <t t-raw="app.shortdesc"/>
462                         </a>
463                         <span t-raw="app.shortdesc" t-if="not app.website"/>
464                     </dt>
465                     <dd>
466                         <span t-raw="app.summary"/>
467                     </dd><dd class="text-muted">
468                         Technical name: <span t-field="app.name"/>, updated: <span t-field="app.write_date"/>, author: <span t-field="app.author"/>
469                     </dd>
470                 </dl>
471
472                 <h2>Installed Modules</h2>
473                 <dl class="dl-horizontal">
474                     <t t-foreach="modules" t-as="app">
475                         <dt>
476                             <span t-raw="app.shortdesc"/>
477                         </dt>
478                         <dd t-if="app.summary">
479                             <span t-raw="app.summary"/>
480                         </dd><dd>
481                             Technical name: <span t-field="app.name"/>,
482                             updated: <span t-field="app.write_date"/>
483                             <t t-if="app.author">
484                                 , author: <span t-field="app.author"/>
485                             </t>
486                         </dd>
487                     </t>
488                 </dl>
489
490
491             </section>
492
493         </div>
494       </div>
495     </t>
496 </template>
497
498 <template id="default_page">
499     <t t-call="website.layout">
500       <div id="wrap" class="oe_structure oe_empty"></div>
501     </t>
502 </template>
503
504 <template id="page_404">
505     <t t-call="website.404">
506         <div class="container">
507             <div class="well mt32">
508                 <p>This page does not exists, but you can create it as you are administrator of this site.</p>
509                 <a class="btn btn-primary" t-attf-href="/website/add/#{ path }">Create Page</a>
510             </div>
511             <div class="text-center text-muted">Edit the content below this line to adapt the default "page not found" page.</div>
512         </div>
513         <hr/>
514     </t>
515 </template>
516
517 <template id="http_error">
518     <t t-call="website.layout">
519         <div id="wrap">
520             <div class="oe_structure">
521                 <h1 class="container mt32"><t t-esc="status_code"/>: <t t-esc="status_message"/></h1>
522             </div>
523
524             <t t-if="editable or request.debug">
525                 <t t-call="website.http_error_debug"/>
526             </t>
527         </div>
528     </t>
529 </template>
530
531 <template id="http_error_debug">
532     <div class="container panel-group mb32 mt32" id="debug_infos">
533         <div class="panel panel-default" t-if="exception">
534             <div class="panel-heading">
535                 <h4 class="panel-title">
536                     <a data-toggle="collapse" data-parent="#debug_infos" href="#error_main">
537                         Error
538                     </a>
539                 </h4>
540             </div>
541             <div id="error_main" class="panel-collapse collapse in">
542                 <div class="panel-body">
543                     <p t-if="website_controller">The following error was raised in the website controller <code t-esc="website_controller"/></p>
544                     <p>
545                         <strong>Error message:</strong>
546                         <pre t-esc="exception.message"/>
547                     </p>
548                 </div>
549             </div>
550         </div>
551         <div class="panel panel-default" t-if="qweb_exception">
552             <div class="panel-heading">
553                 <h4 class="panel-title">
554                     <a data-toggle="collapse" data-parent="#adebug_infos" href="#error_qweb">
555                         QWeb
556                     </a>
557                 </h4>
558             </div>
559             <div id="error_qweb" class="panel-collapse collapse">
560                 <div class="panel-body">
561                     <p t-if="exception.qweb.get('message')">
562                         <strong>Error message:</strong>
563                         <pre t-esc="exception.qweb.get('message')"/>
564                     </p>
565                     <p>
566                         The error occured while rendering the template <code t-esc="qweb_exception.qweb.get('template')"/>
567                         <t t-if="'expression' in qweb_exception.qweb">and evaluating the following expression: <code t-esc="qweb_exception.qweb['expression']"/></t>
568                     </p>
569                     <t t-if="'node' in qweb_exception.qweb">
570                         <pre id="exception_node" t-esc="qweb_exception.pretty_xml()"/>
571                     </t>
572                 </div>
573             </div>
574         </div>
575         <div class="panel panel-default" t-if="traceback">
576             <div class="panel-heading">
577                 <h4 class="panel-title">
578                     <a data-toggle="collapse" data-parent="#adebug_infos" href="#error_traceback">
579                         Traceback
580                     </a>
581                 </h4>
582             </div>
583             <div id="error_traceback" class="panel-collapse collapse">
584                 <div class="panel-body">
585                     <pre id="exception_traceback" t-esc="traceback"/>
586                 </div>
587             </div>
588         </div>
589     </div>
590 </template>
591
592 <template id="403">
593     <t t-call="website.layout">
594         <div id="wrap">
595             <div class="container">
596                 <h1 class="mt32">403: Forbidden</h1>
597                 <p>The page you were looking for could not be authorized.</p>
598                 <p>Maybe you were looking for one of these popular pages ?</p>
599                 <ul>
600                     <li><a href="/">Homepage</a></li>
601                     <li><a href="/page/website.contactus/">Contact Us</a></li>
602                 </ul>
603             </div>
604             <t t-if="editable or request.debug">
605                 <t t-call="website.http_error_debug"/>
606             </t>
607         </div>
608     </t>
609 </template>
610
611 <template id="404">
612     <t t-call="website.layout">
613         <div id="wrap">
614             <t t-raw="0"/>
615             <div class="oe_structure oe_empty">
616                 <div class="container">
617                     <h1 class="mt32">404: Page not found!</h1>
618                     <p>
619                         The page you were looking for could not be found; it is possible you have
620                         typed the address incorrectly, but it has most probably been removed due
621                         to the recent website reorganisation.
622                     </p>
623                     <p>Maybe you were looking for one of these popular pages ?</p>
624                     <ul>
625                         <li><a href="/">Homepage</a></li>
626                         <li><a href="/page/website.contactus/">Contact Us</a></li>
627                     </ul>
628                 </div>
629             </div>
630
631             <t t-if="request.debug">
632                 <t t-call="website.http_error_debug"/>
633             </t>
634         </div>
635     </t>
636 </template>
637
638 <template id="500">
639     <!-- This template should not use any variable except those provided by website.ir_http._handle_exception -->
640     <html>
641         <head>
642             <title t-esc="status_message">Internal Server Error</title>
643             <link rel='stylesheet' href='/web/static/lib/fontawesome/css/font-awesome.css'/>
644             <link rel='stylesheet' href='/web/static/lib/bootstrap/css/bootstrap.css'/>
645             <link rel='stylesheet' href='/website/static/src/css/website.css'/>
646             <script type="text/javascript" src="/web/static/lib/jquery/jquery.js"></script>
647             <script type="text/javascript" src="/web/static/lib/bootstrap/js/bootstrap.js"></script>
648             <script>
649                 $(document).ready(function() {
650                     var button = $('#reset_templates_button');
651                     button.click(function() {
652                         var dialog = $('#reset_template_confirmation').modal('show');
653                         var input = dialog.find('input[type="text"]').val('').focus();
654                         var dialog_form = dialog.find('form');
655                         dialog_form.submit(function() {
656                             if (input.val() == dialog.find('.confirm_word').text()) {
657                                 dialog.modal('hide');
658                                 button.prop('disabled', true).text('Working...');
659                                 $('#reset_templates_form').trigger('submit');
660                             } else {
661                                 input.val('').focus();
662                             }
663                             return false;
664                         });
665                         return false;
666                     });
667                 });
668             </script>
669         </head>
670         <body>
671             <div id="reset_template_confirmation" class="modal" tabindex="-1" role="dialog" aria-hidden="true" t-ignore="true">
672                 <div class="modal-dialog">
673                     <form class="form-horizontal" role="form">
674                     <div class="modal-content">
675                         <div class="modal-header">
676                             <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
677                             <h3 class="modal-title">Reset templates</h3>
678                         </div>
679                         <div class="modal-body">
680                             <div class="form-group mb0">
681                                 <label for="page-name" class="col-sm-9">
682                                     <p>The selected templates will be reset to their factory settings.</p>
683                                     <p>Type '<i class="confirm_word">yes</i>' in the box below if you want to confirm.</p>
684                                 </label>
685                                 <div class="col-sm-3 mt16">
686                                     <input type="text" class="form-control" required="required" placeholder="yes"/>
687                                 </div>
688                             </div>
689                         </div>
690                         <div class="modal-footer">
691                             <input type="submit" value="Confirm" class="btn btn-primary"/>
692                             <button type="button" class="btn" data-dismiss="modal" aria-hidden="true">Cancel</button>
693                         </div>
694                     </div>
695                     </form>
696                 </div>
697             </div>
698
699             <div id="wrapwrap">
700                 <div class="navbar navbar-default navbar-static-top">
701                     <div class="container">
702                         <div class="collapse navbar-collapse navbar-top-collapse">
703                             <ul class="nav navbar-nav pull-right">
704                                 <li><a href="/">Home</a></li>
705                                 <li><a href="javascript: window.history.back()">Back</a></li>
706                             </ul>
707                         </div>
708                     </div>
709                 </div>
710                 <div class="mb32">
711                     <div class="oe_structure">
712                         <h1 class="container mt32"><t t-esc="status_code"/>: <t t-esc="status_message"/></h1>
713                     </div>
714                     <div class="container" t-if="views">
715                         <div class="alert alert-danger" t-if="qweb_exception and editable">
716                             <h4>Template fallback</h4>
717                             <p>An error occured while rendering the template <code t-esc="qweb_exception.qweb['template']"/>.</p>
718                             <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>
719                             <form action="/website/reset_templates" method="post" id="reset_templates_form">
720                                 <ul class="oe_template_fallback">
721                                     <li t-foreach="views" t-as="view">
722                                         <label>
723                                             <input type="checkbox" name="templates" t-att-value="view.id" t-att-checked="'checked' if view_first else None"/>
724                                             <t t-esc="view.name"/>
725                                         </label>
726                                     </li>
727                                 </ul>
728                                 <input type="hidden" name="redirect" t-att-value="request.httprequest.path"/>
729                                 <button id="reset_templates_button">Reset selected templates</button>
730                             </form>
731                         </div>
732                     </div>
733
734                     <t t-if="editable or request.debug">
735                         <t t-call="website.http_error_debug"/>
736                     </t>
737                 </div>
738             </div>
739         </body>
740     </html>
741 </template>
742
743 <template id="robots">
744 User-agent: *
745 Sitemap: <t t-esc="url_root"/>sitemap.xml
746 </template>
747
748 <template id="sitemap_locs">
749     <url t-foreach="locs" t-as="page">
750         <loc><t t-esc="url_root"/><t t-esc="page['loc']"/></loc><t t-if="page.get('lastmod', False)">
751         <lastmod t-esc="page['lastmod']"/></t><t t-if="page.get('priority', False)">
752         <priority t-esc="page['priority']"/></t><t t-if="page.get('changefreq', False)">
753         <changefreq t-esc="page['changefreq']"/></t>
754     </url>
755 </template>
756
757 <template id="sitemap_xml">&lt;?xml version="1.0" encoding="UTF-8"?&gt;
758 <urlset t-attf-xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
759     <t t-raw="content"/>
760 </urlset>
761 </template>
762
763 <template id="sitemap_index_xml">&lt;?xml version="1.0" encoding="UTF-8"?&gt;
764 <sitemapindex t-attf-xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
765   <sitemap t-translate="off" t-foreach="pages" t-as="page">
766     <loc><t t-esc="url_root"/>sitemap-<t t-esc="page"/>.xml</loc>
767   </sitemap>
768 </sitemapindex>
769 </template>
770
771
772 <!-- Actual pages -->
773
774 <template id="homepage" name="Homepage" page="True" priority="29">
775     <t t-call="website.layout">
776       <div id="wrap" class="oe_structure oe_empty"></div>
777     </t>
778 </template>
779
780 <template id="company_description" name="Company Description">
781     <address itemscope="itemscope" itemtype="http://schema.org/Organization">
782         <!-- TODO widget contact must add itemprop attributes -->
783         <div t-field="res_company.partner_id" t-field-options='{
784                 "widget": "contact",
785                 "fields": ["name", "address", "phone", "mobile", "fax", "email"]}'/>
786     </address>
787      <a t-att-href="res_company.google_map_link()" target="_BLANK">
788         <img class="thumbnail img-responsive" t-att-src="res_company.google_map_img()" />
789     </a>
790 </template>
791
792 <template id="contactus" name="Contact us" page="True">
793     <t t-call="website.layout">
794       <div id="wrap">
795         <div class="oe_structure"/>
796         <div class="container">
797             <h1>Contact us</h1>
798             <div class="row">
799                 <div class="col-md-8">
800                     <div class="oe_structure">
801                         <div>
802                             <p>Contact us about anything related to our company or services.</p>
803                             <p>We'll do our best to get back to you as soon as possible.</p>
804                         </div>
805                     </div>
806                     <div class="text-center mt64" name="mail_button">
807                         <a t-attf-href="mailto:{{ res_company.email }}" class="btn btn-primary">Send us an email</a>
808                     </div>
809                 </div>
810                 <div class="col-md-4 mb32">
811                     <div groups="base.group_website_publisher" t-ignore="true" class="pull-right css_editable_mode_hidden" t-att-style="style or ''">
812                         <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>
813                     </div>
814                     <t t-call="website.company_description"/>
815                 </div>
816             </div>
817         </div>
818         <div class="oe_structure"/>
819       </div>
820     </t>
821 </template>
822
823 <template id="aboutus" name="About us" page="True">
824     <t t-call="website.layout">
825         <div id="wrap">
826             <div class="oe_structure">
827
828                 <section>
829                     <div class="container">
830                         <div class="row">
831                             <div class="col-md-12">
832                                 <h1 class="text-center">About us</h1>
833                                 <h3 class="text-muted text-center">Great products for great people</h3>
834                             </div>
835                         </div>
836                     </div>
837                 </section>
838
839                 <section>
840                     <div class="container">
841                         <div class="row">
842                             <div class="col-md-6 mt32">
843                                 <p>
844                                       We are a team of passionate people whose goal is to improve everyone's
845                                       life through disruptive products. We build great products to solve your
846                                       business problems.
847                                 </p>
848                                 <p>
849                                       Our products are designed for small to medium size companies willing to optimize
850                                       their performance.
851                                 </p>
852                             </div>
853                             <div class="col-md-4 col-md-offset-2 mt16 mb16">
854                                 <img src="/website/static/src/img/library/business_conference.jpg" class="img img-responsive shadow" alt="Our Team"/>
855                             </div>
856                         </div>
857                     </div>
858                 </section>
859
860             </div>
861             <div class="oe_structure"></div>
862         </div>
863     </t>
864 </template>
865
866      </data>
867 </openerp>