[IMP] improve css and view.
[odoo/odoo.git] / addons / web / static / src / xml / base.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!-- vim:fdl=1:
3 -->
4 <templates id="template" xml:space="preserve">
5 <t t-name="Notification">
6     <div class="oe_notification">
7         <div id="oe_notification_default">
8             <a class="ui-notify-cross ui-notify-close" href="#">x</a>
9             <h1>#{title}</h1>
10             <p>#{text}</p>
11         </div>
12         <div id="oe_notification_alert" class="ui-state-error">
13             <a class="ui-notify-cross ui-notify-close" href="#">x</a>
14             <span style="float:left; margin:2px 5px 0 0;" class="ui-icon ui-icon-alert"></span>
15             <h1>#{title}</h1>
16             <p>#{text}</p>
17         </div>
18     </div>
19 </t>
20 <t t-name="Interface">
21     <div id="oe_loading" class="loading"></div>
22     <table border="0" cellpadding="0" cellspacing="0" width="100%" height="100%" class="main_table">
23     <tr>
24         <td colspan="2" valign="top">
25             <div id="oe_header" class="header"></div>
26             <div id="oe_menu" class="menu"></div>
27         </td>
28     </tr>
29     <tr>
30         <td valign="top" class="login-container" colspan="2">
31             <div id="oe_login" class="login"></div>
32         </td>
33     </tr>
34     <tr class="db_options_row">
35         <td valign="top" class="db_container">
36             <div id="oe_database" class="database"></div>
37         </td>
38         <td valign="top">
39                 <div id="oe_db_options"></div>
40         </td>
41     </tr>
42     <tr>
43         <td colspan="2" valign="top" height="100%">
44             <table cellspacing="0" cellpadding="0" border="0" height="100%" width="100%">
45             <tr>
46                 <td valign="top" id="oe_secondary_menu" class="secondary_menu">
47                 </td>
48                 <td valign="top" class="oe-application-container">
49                     <div id="oe_app" class="oe-application">
50                     </div>
51                 </td>
52             </tr>
53             </table>
54         </td>
55     </tr>
56     <tr>
57         <td colspan="2">
58             <div id="oe_footer" class="oe_footer">
59                 <p class="oe_footer_powered">Powered by <a href="http://www.openerp.com">openerp.com</a>.</p>
60             </div>
61         </td>
62     </tr>
63     </table>
64 </t>
65 <t t-name="Loading">
66     Loading...
67 </t>
68 <t t-name="Database">
69     <ul class="db_options" style="padding: 0px; display: inline;">
70         <li id="db-create">Create</li>
71         <li id="db-drop">Drop</li>
72         <li id="db-backup">Backup</li>
73         <li id="db-restore">Restore</li>
74         <li id="db-change-password">Password</li>
75         <li id="back-to-login">Back to Login</li>
76     </ul>
77 </t>
78 <t t-name="Database.CreateDB">
79     <form name="create_db_form" class="oe_forms" method="POST">
80         <table width="100%">
81             <tr>
82                 <td class="option_string">
83                     CREATE DATABASE
84                 </td>
85             </tr>
86         </table>
87         <table align="center" class="db_option_table">
88             <tr>
89                 <td><label for="super_admin_pwd">Master password:</label></td>
90                 <td><input type="password" name="super_admin_pwd" class="required" value="admin"/></td>
91             </tr>
92             <tr>
93                 <td><label for="db_name">New database name:</label></td>
94                 <td><input type="text" name="db_name" class="required"/></td>
95             </tr>
96             <tr>
97                 <td><label for="demo_data">Load Demonstration data:</label></td>
98                 <td><input type="checkbox" name="demo_data"/></td>
99             </tr>
100             <tr>
101                 <td><label for="db_lang">Default language:</label></td>
102                 <td>
103                     <select name="db_lang" t-if="lang_list">
104                         <t t-foreach="lang_list" t-as="lang">
105                             <option t-att-value="lang[0]" t-att-selected="lang[0] === 'en_US' ? 'selected' : undefined"><t t-esc="lang[1]"/></option>
106                         </t>
107                     </select>
108                 </td>
109             </tr>
110             <tr>
111                 <td><label for="create_admin_pwd">Admin password:</label></td>
112                 <td><input type="password" name="create_admin_pwd" class="required"/></td>
113             </tr>
114             <tr>
115                 <td><label for="create_confirm_pwd">Confirm password:</label></td>
116                 <td><input type="password" name="create_confirm_pwd" class="required"
117                            equalTo="input[name=create_admin_pwd]"/></td>
118             </tr>
119             <tr>
120                 <td colspan="2" align="right"><input type="submit" value="Create"/></td>
121             </tr>
122         </table>
123     </form>
124 </t>
125 <t t-name="DropDB">
126     <form name="drop_db_form" class="oe_forms" method="POST">
127         <table width="100%">
128             <tr>
129                 <td class="option_string">
130                     DROP DATABASE
131                 </td>
132             </tr>
133         </table>
134         <table align="center" class="db_option_table">
135             <tr>
136                 <td><label for="drop_db">Database:</label></td>
137                 <td>
138                     <select t-if="db_list" name="drop_db" autofocus="autofocus">
139                         <t t-foreach="db_list" t-as="db">
140                             <option t-att-value="db"><t t-esc="db"/></option>
141                         </t>
142                     </select>
143                 </td>
144             </tr>
145             <tr>
146                 <td><label for="drop_password">Master Password:</label></td>
147                 <td><input type="password" name="drop_pwd" class="required"/></td>
148             </tr>
149             <tr>
150                 <td colspan="2" align="right"><input type="submit" value="Drop"/></td>
151             </tr>
152         </table>
153     </form>
154 </t>
155 <t t-name="BackupDB">
156     <form name="backup_db_form" class="oe_forms" method="POST" target="backup-target"
157           action="/web/database/backup">
158         <input type="hidden" name="token"/>
159         <table width="100%">
160             <tr>
161                 <td class="option_string">
162                     BACKUP DATABASE
163                 </td>
164             </tr>
165         </table>
166         <table align="center" class="db_option_table">
167             <tr>
168                 <td><label for="backup_db">Database:</label></td>
169                 <td>
170                     <select t-if="db_list" name="backup_db" autofocus="autofocus">
171                         <t t-foreach="db_list" t-as="db">
172                             <option t-att-value="db"><t t-esc="db"/></option>
173                         </t>
174                     </select>
175                 </td>
176             </tr>
177             <tr>
178                 <td><label for="backup_pwd">Master Password:</label></td>
179                 <td><input type="password" name="backup_pwd" class="required"/></td>
180             </tr>
181             <tr>
182                 <td colspan="2" align="right"><input type="submit" value="Backup"/></td>
183             </tr>
184         </table>
185     </form>
186 </t>
187 <t t-name="RestoreDB">
188     <form name="restore_db_form" class="oe_forms" method="POST">
189         <table width="100%">
190             <tr>
191                 <td class="option_string">
192                     RESTORE DATABASE
193                 </td>
194             </tr>
195         </table>
196         <table align="center" class="db_option_table">
197             <tr>
198                 <td><label for="restore_db">File:</label></td>
199                 <td><input type="file" name="db_file" class="required"
200                          autofocus="autofocus"/></td>
201             </tr>
202             <tr>
203                 <td><label for="restore_pwd">Master Password:</label></td>
204                 <td><input type="password" name="restore_pwd" class="required"/></td>
205             </tr>
206         <tr>
207                 <td><label for="new_db">New database name:</label></td>
208                 <td><input type="text" name="new_db" class="required"/></td>
209             </tr>
210         <tr>
211             <td colspan="2" align="right"><input type="submit" value="Restore"/></td>
212             </tr>
213         </table>
214     </form>
215 </t>
216 <t t-name="Change_DB_Pwd">
217     <form name="change_pwd_form" class="oe_forms" method="POST">
218         <table width="100%">
219             <tr>
220                 <td class="option_string">
221                     CHANGE MASTER PASSWORD
222                 </td>
223             </tr>
224         </table>
225         <table align="center" class="db_option_table">
226             <tr>
227                 <td><label for="old_pwd">Master password:</label></td>
228                 <td><input type="password" name="old_pwd" class="required"
229                            minlength="1" autofocus="autofocus"/></td>
230             </tr>
231             <tr>
232             <td><label for="new_pwd">New master password:</label></td>
233             <td><input type="password" name="new_pwd" class="required"
234                        minlength="1"/></td>
235             </tr>
236             <tr>
237                 <td><label for="confirm_pwd">Confirm new master password:</label></td>
238                 <td><input type="password" name="confirm_pwd" class="required"
239                            equalTo="input[name=new_pwd]" minlength="1"/></td>
240             </tr>
241             <tr>
242                 <td colspan="2" align="right"><input type="submit" value="Change Password"/></td>
243             </tr>
244         </table>
245     </form>
246 </t>
247
248 <t t-name="Login_dblist">
249     <select name="db">
250         <t t-foreach="db_list" t-as="db">
251             <t t-if="selected_db === db">
252                 <option t-att-value="db" selected="true">
253                     <t t-esc="db"/></option>
254             </t>
255             <t t-if="selected_db !== db">
256                 <option t-att-value="db"><t t-esc="db"/></option>
257             </t>
258         </t>
259     </select>
260 </t>
261
262 <t t-name="Login">
263     <div>
264     <form class="oe_forms">
265         <fieldset>
266             <legend style="">
267                 <img src="/web/static/src/img/stock_person.png" alt="" />
268             </legend>
269             <div class="oe_box2">
270                 <table align="center" cellspacing="2px" cellpadding="0">
271                     <tr>
272                         <td><label for="db">Database:</label></td>
273                         <td>
274                             <input type="text" name="db" t-att-value="widget.selected_db || ''" autofocus="true"/>
275                         </td>
276                     </tr>
277                     <tr>
278                         <td><label for="login">User:</label></td>
279                         <td><input type="text" name="login"
280                             t-att-value="widget.selected_login || ''" autofocus="true"/></td>
281                     </tr>
282                     <tr>
283                         <td><label for="password">Password:</label></td>
284                         <td><input type="password" name="password"
285                                 t-att-value="widget.selected_password || ''"/></td>
286                     </tr>
287                     <tr>
288                         <td></td>
289                         <td>
290                                 <button type="button" id="oe-db-config">Database</button>
291                             <button type="submit" name="submit">Login</button>
292                         </td>
293                     </tr>
294                 </table>
295             </div>
296         </fieldset>
297         <div class="login_error_message">Bad username or password</div>
298     </form>
299     <div class="oe_login_right_pane">
300         <p>We think that daily job activities can be more intuitive, efficient, automated, .. and even fun.</p>
301         <h3>OpenERP's vision to be:</h3>
302
303         <table cellpadding="0" cellspacing="0" width="100%" style="border:none;">
304             <tbody>
305             <tr>
306                 <td>
307                     <img src="/web/static/src/img/product.png"/>
308                 </td>
309                 <td>
310                     <strong>Full featured</strong><br />
311                     Today's enterprise challenges are multiple. We provide one module for each need.
312                 </td>
313             </tr>
314             <tr>
315                 <td>
316                     <img src="/web/static/src/img/accessories-archiver.png"/>
317                 </td>
318                 <td>
319                     <strong>Open Source</strong><br />
320                     To Build a great product, we rely on the knowledge of thousands of contributors.
321                 </td>
322             </tr>
323             <tr>
324                 <td>
325                     <img src="/web/static/src/img/partner.png" />
326                 </td>
327                 <td>
328                     <strong>User Friendly</strong><br />
329                     In order to be productive, people need clean and easy to use interface.
330                 </td>
331             </tr>
332             </tbody>
333         </table>
334
335     </div>
336     </div>
337 </t>
338 <t t-name="Header">
339     <div>
340         <a t-att-href="'/' + widget.qs" class="company_logo_link">
341             <div class="company_logo" />
342         </a>
343     </div>
344 </t>
345 <t t-name="Header-content">
346     <h1 class="header_title">
347         <t t-esc="user.company_id[1]"/> (<t t-esc="widget.session.db"/>)<br/>
348         <small class="username"><t t-esc="user.name"/></small>
349     </h1>
350     <div class="header_corner">
351         <ul class="block">
352             <li>
353                 <a t-att-href="'/' + widget.qs" title="Home" class="home"><img src="/web/static/src/img/header-home.png" width="16" height="16" border="0"/></a>
354             </li>
355             <li class="preferences">
356                 <a href="javascript:void(0)" title="Preferences" class="preferences"><img src="/web/static/src/img/header-preferences.png" width="16" height="16" border="0"/></a>
357             </li>
358             <li>
359                 <a href="javascript:void(0)" title="About" class="about"><img src="/web/static/src/img/header-about.png" width="16" height="16" border="0"/></a>
360             </li>
361         </ul>
362         <div class="block">
363             <a href="#logout" class="logout">LOGOUT</a>
364         </div>
365
366     </div>
367     <div class="oe-shortcuts"> </div>
368 </t>
369 <ul t-name="Shortcuts">
370     <li t-foreach="shortcuts" t-as="shortcut"
371             t-att-data-id="shortcut.res_id"
372             t-att-data-shortcut-id="shortcut.id"
373         ><t t-esc="shortcut.name"/></li>
374 </ul>
375 <t t-name="Menu">
376     <table align="center">
377     <tr>
378         <td t-foreach="widget.data.data.children" t-as="menu">
379             <a href="#" t-att-data-menu="menu.id">
380                 <t t-esc="menu.name"/>
381             </a>
382         </td>
383     </tr>
384     </table>
385 </t>
386 <t t-name="Menu.secondary">
387     <div t-attf-class="oe_toggle_secondary_menu">
388         <span class="oe_menu_fold" title="Fold menu">&amp;laquo;</span>
389         <span class="oe_menu_unfold" title="Unfold menu">&amp;raquo;</span>
390     </div>
391     <div t-foreach="widget.data.data.children" t-as="menu" style="display: none" class="oe_secondary_menu" t-att-data-menu-parent="menu.id">
392         <t t-foreach="menu.children" t-as="menu">
393             <t t-set="classname">oe_secondary_menu_item</t>
394             <t t-set="level" t-value="0"/>
395             <t t-call="Menu.secondary.children"/>
396         </t>
397     </div>
398 </t>
399 <t t-name="Menu.secondary.children">
400     <t t-set="level" t-value="level + 1"/>
401     <a href="#" t-att-id="menu.children.length ? 'menu_' + menu.id : undefined"
402         t-att-class="classname + (menu.children.length ? ' submenu' : ' leaf') + (menu_first and level == 1 ? ' opened' : '')"
403         t-att-data-menu="menu.children.length ? undefined : menu.id">
404         <span t-attf-style="padding-left: #{(level - 2) * 20}px"> <t t-esc="menu.name"/></span>
405     </a>
406     <div t-attf-class="oe_secondary_submenu" t-if="menu.children.length" t-att-style="menu_first and level == 1 ? undefined : 'display: none'">
407         <t t-foreach="menu.children" t-as="menu">
408             <t t-set="classname">oe_secondary_submenu_item</t>
409             <t t-call="Menu.secondary.children"/>
410         </t>
411     </div>
412 </t>
413 <t t-name="ViewManager">
414     <table class="view-manager-main-table">
415     <tr>
416         <td class="view-manager-main-content">
417             <div class="oe-view-manager-header">
418                 <div class="oe_vm_switch">
419                     <t t-if="views.length != 1" t-foreach="views" t-as="view">
420                         <button type="button" t-att-data-view-type="view.view_type">
421                             <t t-esc="view.view_type"/>
422                         </button>
423                     </t>
424                 </div>
425             </div>
426             <div t-attf-id="#{prefix}_search" t-opentag="true"/>
427             <t t-foreach="views" t-as="view">
428                 <div t-attf-id="#{prefix}_view_#{view.view_type}"/>
429             </t>
430         </td>
431         <td class="view-manager-main-sidebar" height="100%">
432             <t t-foreach="views" t-as="view">
433                 <div t-attf-id="#{prefix}_sidebar_#{view.view_type}" class="sidebar-main-div closed-sidebar" style="display: none"/>
434             </t>
435         </td>
436     </tr>
437     </table>
438 </t>
439
440 <t t-extend="ViewManager" t-name="ViewManagerAction">
441     <t t-jquery=".oe-view-manager-header" t-operation="prepend">
442         <blockquote t-if="self.action.help and !self.flags.low_profile
443                          and !(self.action.id in self.session.hidden_menutips)">
444             <p><t t-esc="self.action.help"/></p>
445             <div>
446                 <button type="button" name="hide">Hide this tip</button>
447                 <button type="button" name="disable">Disable all tips</button>
448             </div>
449         </blockquote>
450         <a class="oe-shortcut-toggle" title="Add / Remove Shortcut..."
451            href="javascript: void(0)"> </a>
452         <button t-if="self.session.debug" class="oe_get_xml_view">
453             View#<span></span>
454         </button>
455         <h2 class="oe_view_title" t-if="self.flags.display_title !== false">
456             <t t-if="self.flags.display_title !== false" t-esc="self.action.name"/>
457         </h2>
458     </t>
459     <t t-jquery=".oe-view-manager-header" t-operation="after">
460         <ul class="oe-view-manager-logs"></ul>
461     </t>
462 </t>
463
464 <t t-name="Sidebar">
465     <a class="toggle-sidebar"></a>
466     <div class="sidebar-content">
467         <div class="sidebar-actions">
468         </div>
469     </div>
470 </t>
471 <t t-name="Sidebar.section">
472     <div t-att-id="section_id" t-att-class="classname">
473         <h2><t t-esc="name"/></h2>
474     </div>
475 </t>
476
477
478 <t t-name="Sidebar.section.items">
479             <li t-foreach="items" t-as="item" t-att-class="item.classname">
480                 <a class="oe_sidebar_action_a" t-att-id="item.element_id" t-att-title="item.title" href="#">
481                     <t t-esc="item.label"/>
482                 </a>
483             </li>
484 </t>
485
486 <t t-name="TranslateDialog">
487     <ul class="oe_translate_tabs">
488         <li><a t-attf-href="##{widget.element_id}_fields">Fields</a></li>
489         <li><a t-attf-href="##{widget.element_id}_view">View labels</a></li>
490         <li><a t-attf-href="##{widget.element_id}_sidebar">Sidebar Relates</a></li>
491     </ul>
492     <div t-attf-id="#{widget.element_id}_fields">
493         <table t-if="widget.view.translatable_fields" class="oe_frame oe_forms oe_translation_form" border="0" cellpadding="0" cellspacing="0" width="100%">
494         <tr>
495             <td class="oe_form_separator" width="1%" nowrap="nowrap">
496                 <div class="separator horizontal">Field</div>
497             </td>
498             <th t-foreach="widget.languages" align="left">
499                 <div class="separator horizontal"><t t-esc="name"/></div>
500             </th>
501         </tr>
502         <tr t-foreach="widget.view.translatable_fields" t-as="field">
503             <td class="oe_form_frame_cell" width="1%" nowrap="nowrap">
504                 <label class="oe_label"><t t-esc="field.string"/>:</label>
505             </td>
506             <td t-foreach="widget.languages" t-as="lg" class="oe_form_frame_cell">
507                 <input t-if="field.type == 'char'" type="text" t-attf-name="#{lg.code}-#{field.name}" value="" data-value="" class="oe_trad_field" style="width: 100%"/>
508                 <textarea t-if="field.type == 'text'" t-attf-name="#{lg.code}-#{field.name}" data-value="" class="oe_trad_field" style="width: 100%"></textarea>
509             </td>
510         </tr>
511         </table>
512     </div>
513     <div t-attf-id="#{widget.element_id}_view">
514         Translate view
515     </div>
516     <div t-attf-id="#{widget.element_id}_sidebar">
517         Translate sidebar
518     </div>
519 </t>
520 <t t-name="TreeView">
521     <select t-if="toolbar" style="width: 30%">
522     </select>
523     <table class="oe-treeview-table">
524         <thead>
525             <tr>
526                 <th t-foreach="fields_view" t-as="field"
527                     t-if="!field.attrs.modifiers.tree_invisible"
528                     class="treeview-header">
529                     <t t-esc="fields[field.attrs.name].string" />
530                 </th>
531             </tr>
532         </thead>
533         <tbody>
534         </tbody>
535     </table>
536 </t>
537 <tr t-name="TreeView.rows"
538         t-foreach="records" t-as="record"
539         t-att-id="'treerow_' + record.id"
540         t-att-data-id="record.id" t-att-data-level="level + 1">
541     <t t-set="children" t-value="record[children_field]"/>
542     <t t-set="has_children" t-value="children and children.length"/>
543
544     <td t-foreach="fields_view" t-as="field"
545         t-if="!field.attrs.modifiers.tree_invisible"
546         t-att-data-id="record.id"
547         t-att-style="color_for(record) + (!field_index ? 'background-position: ' + 19*level + 'px; padding-left: ' + 19*level + 'px;' : '')"
548         t-att-class="!field_index and has_children ? 'treeview-tr' : 'treeview-td'">
549         <span t-if="!field.attrs.modifiers.invisible">
550             <t t-esc="render(record[field.attrs.name], fields[field.attrs.name])" />
551         </span>
552     </td>
553 </tr>
554 <table t-name="ListView" class="oe-listview-content">
555     <t t-set="columns_count" t-value="visible_columns.length + (options.selectable ? 1 : 0) + (options.deletable ? 1 : 0)"/>
556     <thead class="ui-widget-header">
557         <tr t-if="options.action_buttons !== false or options.pager !== false">
558             <th t-att-colspan="columns_count">
559                 <table>
560                     <tr>
561                         <td t-if="options.action_buttons !== false" class="oe-actions">
562                             <button type="button" class="oe-list-add"
563                                     t-if="options.addable">
564                                 <t t-esc="options.addable"/>
565                             </button>
566                             <button type="button" class="oe-list-delete"
567                                     t-if="options.selectable and options.deletable">
568                                 Delete
569                             </button>
570                         </td>
571                         <t t-call="Listview.navigation.button"/>
572                     </tr>
573                 </table>
574             </th>
575         </tr>
576         <tr t-if="options.header" class="oe-listview-header-columns">
577             <t t-foreach="columns" t-as="column">
578                 <th t-if="column.meta">
579                     <t t-esc="column.string"/>
580                 </th>
581             </t>
582             <th t-if="options.selectable" width="1"/>
583             <t t-foreach="columns" t-as="column">
584                 <th t-if="!column.meta and column.invisible !== '1'" t-att-data-id="column.id"
585                     t-att-class="((options.sortable and column.tag !== 'button') ? 'oe-sortable' : null)">
586                     <t t-if="column.tag !== 'button'"
587                         ><t t-esc="column.string"/></t>
588                 </th>
589             </t>
590             <th t-if="options.deletable" width="1"/>
591         </tr>
592     </thead>
593     <tfoot class="ui-widget-header">
594         <tr>
595             <td t-if="options.selectable"/>
596             <td t-foreach="aggregate_columns" t-as="column" class="oe-list-footer oe-number"
597                 t-att-data-field="column.id" t-att-title="column.label">
598             </td>
599             <td t-if="options.deletable"/>
600         </tr>
601         <tr>
602             <t t-call="Listview.navigation.button"/>
603         </tr>
604     </tfoot>
605 </table>
606 <th t-name="Listview.navigation.button" t-if="options.pager !== false"
607         class="oe-list-pager" t-att-colspan="columns_count">
608     <button type="button" disabled="disabled"
609             data-pager-action="first">First</button>
610     <button type="button" disabled="disabled"
611             data-pager-action="previous">&lt;</button>
612
613     <span class="oe-pager-state">
614     </span>
615
616     <button type="button" disabled="disabled"
617             data-pager-action="next">&gt;</button>
618     <button type="button" disabled="disabled"
619             data-pager-action="last">Last</button>
620 </th>
621 <t t-name="ListView.rows" t-foreach="records.length" t-as="index">
622     <t t-call="ListView.row">
623         <t t-set="record" t-value="records.at(index)"/>
624         <t t-set="row_parity" t-value="index_parity"/>
625     </t>
626 </t>
627 <tr t-name="ListView.row" t-att-class="row_parity"
628         t-att-data-id="record.get('id')"
629         t-att-style="view.color_for(record)">
630     <t t-foreach="columns" t-as="column">
631         <td t-if="column.meta">
632
633         </td>
634     </t>
635     <t t-if="options.radio">
636         <th t-if="options.selectable" class="oe-record-selector" width="1">
637             <input type="radio" name ="radiogroup"/>
638         </th>
639     </t>
640     <t t-if="!options.radio">
641         <th t-if="options.selectable" class="oe-record-selector" width="1">
642             <input type="checkbox"/>
643         </th>
644     </t>
645
646
647     <t t-foreach="columns" t-as="column">
648         <t t-set="align" t-value="column.type === 'integer' or column.type == 'float'"/>
649         <td t-if="!column.meta and column.invisible !== '1'" t-att-title="column.help"
650             t-att-class="'oe-field-cell' + (align ? ' oe-number' : '')"
651             t-att-data-field="column.id">
652             <t t-raw="render_cell(record, column)"/>
653         </td>
654     </t>
655     <td t-if="options.deletable" class='oe-record-delete' width="1">
656         <button type="button" name="delete">♻</button>
657     </td>
658 </tr>
659 <t t-name="ListView.row.form">
660     <t t-raw="frame.render()"/>
661 </t>
662 <t t-name="FormView">
663     <div class="oe_form_header">
664         <div class="oe_form_buttons" t-if="view.options.action_buttons !== false">
665             <button type="button" class="oe_form_button_save">
666                 <span class="oe_form_on_update">Save</span>
667                 <span class="oe_form_on_create">Create</span>
668             </button>
669             <button type="button" class="oe_form_button_new">New</button>
670             <button type="button" class="oe_form_button_duplicate oe_form_on_update">Duplicate</button>
671             <button type="button" class="oe_form_button_toggle">Readonly/Editable</button>
672         </div>
673         <div class="oe_form_pager" t-if="view.options.pager !== false">
674             <button type="button" data-pager-action="first">First</button>
675             <button type="button" data-pager-action="previous">&lt;&lt;</button>
676
677             <span class="oe_pager_index">0</span> / <span class="oe_pager_count">0</span>
678
679             <button type="button" data-pager-action="next">&gt;&gt;</button>
680             <button type="button" data-pager-action="last">Last</button>
681         </div>
682     </div>
683     <t t-raw="frame.render()"/>
684 </t>
685 <t t-name="FormView.sidebar.attachments">
686     <div class="oe-sidebar-attachments-toolbar">
687         <div class="oe-binary-file-set" style="float: right">
688             <form class="oe-binary-form" t-attf-target="#{element_id}_iframe"
689                 method="post" enctype="multipart/form-data" action="/web/binary/upload_attachment">
690                 <input type="hidden" name="session_id" t-att-value="session.session_id"/>
691                 <input type="hidden" name="callback" t-attf-value="#{element_id}_iframe"/>
692                 <input type="hidden" name="model" t-att-value="view.dataset.model"/>
693                 <input type="hidden" name="id" t-att-value="view.datarecord.id"/>
694                 <button class="button" type="button">
695                     <img src="/web/static/src/img/throbber.gif" width="16" height="16" style="display: none"/>
696                     <span>Add</span>
697                 </button>
698                 <input type="file" class="oe-binary-file" name="ufile" title="Add attachment"
699                     t-att-onclick="view.datarecord.id ? null : 'alert(\'No record selected ! You can only attach to existing record.\'); return false;'"/>
700             </form>
701             <iframe t-attf-id="#{element_id}_iframe" t-attf-name="#{element_id}_iframe" style="display: none"> </iframe>
702         </div>
703     </div>
704     <br style="clear: both"/>
705     <ul class="oe-sidebar-attachments-items">
706         <li t-foreach="attachments" t-as="attachment">
707             <t t-if="attachment.type == 'binary'" t-set="attachment.url" t-value="'/web/binary/saveas?session_id='
708                 + session.session_id + '&amp;model=ir.attachment&amp;id=' + attachment.id
709                 + '&amp;field=datas&amp;fieldname=name&amp;t=' + (new Date().getTime())"/>
710             <a class="oe-sidebar-attachments-link" t-att-href="attachment.url" target="_blank">
711                 <t t-esc="attachment.name"/>
712             </a>
713             <a href="#" class="oe-sidebar-attachment-delete" t-att-data-id="attachment.id" t-attf-title="Delete the attachment #{attachment.name}">
714                 <img src="/web/static/src/img/attachments-close.png" width="15" height="15" border="0"/>
715             </a>
716         </li>
717     </ul>
718 </t>
719 <t t-name="Widget">
720     Unhandled widget
721     <t t-raw="console.log('Unhandled widget', widget)"/>
722 </t>
723 <t t-name="WidgetFrame">
724     <table border="0" width="100%" cellpadding="0" cellspacing="0" class="oe_frame oe_forms">
725     <tr t-foreach="widget.table" t-as="row">
726         <t t-foreach="row" t-as="td">
727             <td t-att-colspan="td.colspan gt 1 ? td.colspan : undefined"
728                 t-att-width="td.width"
729                 t-att-nowrap="td.nowrap or td.is_field_m2o? 'true' : undefined"
730                 t-att-valign="td.table ? 'top' : undefined"
731                 t-attf-class="oe_form_frame_cell #{td.classname} #{td.element_class}"
732             >
733                 <t t-raw="td.render()"/>
734             </td>
735         </t>
736     </tr>
737     </table>
738 </t>
739 <t t-name="WidgetNotebook">
740     <ul>
741         <li t-foreach="widget.pages" t-as="page">
742             <a href="#">
743                 <t t-esc="page.string"/>
744             </a>
745         </li>
746     </ul>
747     <t t-foreach="widget.pages" t-as="page">
748         <t t-raw="page.render()"/>
749     </t>
750 </t>
751 <t t-name="WidgetNotebookPage">
752     <div>
753         <t t-call="WidgetFrame"/>
754     </div>
755 </t>
756 <t t-name="WidgetSeparator">
757     <div t-if="widget.orientation !== 'vertical'" t-att-class="'separator ' + widget.orientation">
758         <t t-esc="widget.string"/>
759     </div>
760 </t>
761 <t t-name="WidgetLabel">
762     <label t-att-for="widget.element_id"
763            t-att-class="'oe_label' + (widget.help ? '_help' : '')"
764            t-att-title="widget.help">
765         <t t-esc="widget.string"/>
766         <span t-if="widget.help">?</span>
767         <t t-if="widget.string and widget.node.tag != 'label'">:</t>
768     </label>
769 </t>
770 <t t-name="WidgetParagraph">
771     <p class="oe_form_paragraph"><t t-esc="widget.string"/></p>
772 </t>
773 <t t-name="FieldChar">
774     <input type="text" size="1"
775         t-att-name="widget.name"
776         t-att-id="widget.element_id"
777         t-attf-class="field_#{widget.type}"
778         t-attf-style="width: #{widget.field.translate ? '99' : '100'}%"
779     />
780     <img class="oe_field_translate" t-if="widget.field.translate" src="/web/static/src/img/icons/terp-translate.png" width="16" height="16" border="0"/>
781 </t>
782 <t t-name="FieldChar.readonly">
783     <div
784         t-att-id="widget.element_id"
785         t-attf-class="field_#{widget.type}"
786         t-attf-style="width: #{widget.field.translate ? '99' : '100'}%">
787     </div>
788 </t>
789 <t t-name="FieldURI.readonly">
790     <a href="#">#</a>
791 </t>
792 <t t-name="FieldEmail">
793     <table cellpadding="0" cellspacing="0" border="0" width="100%">
794     <tr>
795         <td width="100%">
796             <t t-call="FieldChar"/>
797         </td>
798         <td width="16">
799             <button type="button" class="button" title="Send an e-mail with your default e-mail client">
800                 <img src="/web/static/src/img/icons/terp-mail-message-new.png"/>
801             </button>
802         </td>
803     </tr>
804     </table>
805 </t>
806 <t t-name="FieldUrl">
807     <table cellpadding="0" cellspacing="0" border="0" width="100%">
808     <tr>
809         <td width="100%">
810             <t t-call="FieldChar"/>
811         </td>
812         <td width="16">
813             <button type="button" class="button" title="Open this resource">
814                 <img src="/web/static/src/img/icons/gtk-ok.png"/>
815             </button>
816         </td>
817     </tr>
818     </table>
819 </t>
820 <t t-name="FieldText">
821     <textarea rows="6"
822         t-att-name="widget.name"
823         t-att-id="widget.element_id"
824         t-attf-class="field_#{widget.type}"
825         t-attf-style="width: #{widget.field.translate ? '99' : '100'}%"
826     ></textarea>
827     <img class="oe_field_translate" t-if="widget.field.translate" src="/web/static/src/img/icons/terp-translate.png" width="16" height="16" border="0"/>
828 </t>
829 <t t-name="web.datetimepicker">
830     <div class="oe_datepicker_root">
831         <input type="text" size="1" style="width: 100%"/>
832         <img class="oe_input_icon oe_datepicker_trigger" src="/web/static/src/img/ui/field_calendar.png"
833              title="Select date" width="16" height="16" border="0"/>
834         <div class="oe_datepicker ui-widget-content ui-corner-all" style="display: none; position: absolute; z-index: 1;">
835             <div class="oe_datepicker_container"/>
836             <button type="button" class="oe_datepicker_close ui-state-default ui-priority-primary ui-corner-all" style="float: right;">Done</button>
837         </div>
838     </div>
839 </t>
840 <t t-name="FieldSelection">
841     <select
842         t-att-name="widget.name"
843         t-att-id="widget.element_id"
844         t-attf-class="field_#{widget.type}"
845         style="width: 100%">
846             <t t-foreach="widget.values" t-as="option">
847                 <option><t t-esc="option[1]"/></option>
848             </t>
849     </select>
850 </t>
851 <t t-name="FieldMany2One">
852     <div class="oe-m2o">
853         <input type="text" size="1" style="width: 100%;"
854                 t-att-id="widget.element_id"/>
855         <span class="oe-m2o-drop-down-button">
856             <img src="/web/static/src/img/down-arrow.png" /></span>
857         <span class="oe-m2o-cm-button" t-att-id="widget.name + '_open'">
858             <img src="/web/static/src/img/icons/gtk-index.png"/></span>
859         <div t-att-id="widget.cm_id" class="contextMenu" style="display:none">
860         </div>
861     </div>
862 </t>
863 <t t-name="FieldMany2One.context_menu">
864     <ul>
865         <li t-att-id="widget.cm_id + '_open'" style="color:grey" class="oe_m2o_menu_item_mandatory">Open...</li>
866         <li t-att-id="widget.cm_id + '_create'" class="oe_m2o_menu_item_noreadonly">Create...</li>
867         <li t-att-id="widget.cm_id + '_search'" class="oe_m2o_menu_item_noreadonly">Search...</li>
868         <t t-set="i" t-value="0"/>
869         <t t-foreach="widget.related_entries" t-as="entry">
870             <li t-att-id="widget.cm_id + '_related_' + i" style="color:grey" class="oe_m2o_menu_item_mandatory">
871                 ... <t t-esc="(entry[2] || {})['name'] || ''"/>
872             </li>
873             <t t-set="i" t-value="i+1"/>
874         </t>
875     </ul>
876 </t>
877 <t t-name="FieldOne2Many">
878 </t>
879 <t t-name="FieldMany2Many">
880     <div t-att-id="widget.list_id"></div>
881 </t>
882 <t t-name="FieldReference">
883     <table border="0" width="100%" cellpadding="0" cellspacing="0" class="oe_frame oe_forms">
884     <tr>
885         <td t-attf-class="oe_form_frame_cell oe_form_selection #{widget.selection.element_class}">
886             <t t-raw="widget.selection.render()"/>
887         </td>
888         <td t-attf-class="oe_form_frame_cell oe_form_many2one #{widget.m2o.element_class}" nowrap="true" style="display: none">
889             <t t-raw="widget.m2o.render()"/>
890         </td>
891     </tr>
892     </table>
893 </t>
894 <t t-name="FieldBoolean">
895     <input type="checkbox"
896         t-att-name="widget.name"
897         t-att-id="widget.element_id"
898         t-attf-class="field_#{widget.type}"/>
899 </t>
900 <t t-name="FieldProgressBar">
901     <div t-opentag="true" class="oe-progressbar">
902         <span></span>
903     </div>
904 </t>
905 <t t-name="FieldBinaryImage">
906     <table cellpadding="0" cellspacing="0" border="0">
907     <tr>
908         <td align="center">
909             <img src="/web/static/src/img/placeholder.png" class="oe-binary-image"
910                 t-att-border="widget.readonly ? 0 : 1"
911                 t-att-id="widget.element_id + '_field'"
912                 t-att-name="widget.name"
913                 t-attf-class="field_#{widget.type}"
914                 t-att-width="widget.node.attrs.img_width || widget.node.attrs.width"
915                 t-att-height="widget.node.attrs.img_height || widget.node.attrs.height"
916             />
917         </td>
918     </tr>
919     <tr>
920         <td align="center" valign="bottom" height="25">
921             <div class="oe-binary">
922                 <table cellspacing="0" cellpadding="0" border="0">
923                 <tr>
924                     <td>
925                         <div class="oe-binary-file-set" style="width: 40px; height:22px;">
926                             <form class="oe-binary-form" t-att-target="widget.iframe"
927                                 method="post" enctype="multipart/form-data" action="/web/binary/upload">
928                                 <input type="hidden" name="session_id" value=""/>
929                                 <input type="hidden" name="callback" t-att-value="widget.iframe"/>
930                                 <button class="button" type="button" title="Set Image">
931                                     <img src="/web/static/src/img/icons/STOCK_DIRECTORY.png"/>
932                                 </button>
933                                 <input type="file" class="oe-binary-file" name="ufile"/>
934                             </form>
935                         </div>
936                     </td>
937                     <td>
938                         <button class="button oe-binary-file-clear" type="button" title="Clear">
939                             <img src="/web/static/src/img/icons/STOCK_MISSING_IMAGE.png"/>
940                         </button>
941                     </td>
942                 </tr>
943                 </table>
944             </div>
945             <div class="oe-binary-progress" style="display: none">
946                 <img src="/web/static/src/img/throbber.gif" width="16" height="16"/>
947                 <b>Uploading ...</b>
948             </div>
949             <iframe t-att-id="widget.iframe" t-att-name="widget.iframe" style="display: none"> </iframe>
950         </td>
951     </tr>
952     </table>
953 </t>
954 <t t-name="FieldBinaryFile">
955     <table cellpadding="0" cellspacing="0" border="0" width="100%">
956     <tr>
957         <td width="100%">
958             <input type="text" size="1"
959                 t-att-name="widget.name"
960                 t-att-id="widget.element_id + '_field'"
961                 t-attf-class="field_#{widget.type}" style="width: 100%"
962             />
963         </td>
964         <td class="oe-binary" nowrap="true">
965             <table cellspacing="0" cellpadding="0" border="0">
966             <tr>
967                 <td>
968                     <div class="oe-binary-file-set" style="width: 80px; height:22px;">
969                         <form class="oe-binary-form" t-att-target="widget.iframe"
970                             method="post" enctype="multipart/form-data" action="/web/binary/upload">
971                             <input type="hidden" name="session_id" value=""/>
972                             <input type="hidden" name="callback" t-att-value="widget.iframe"/>
973                             <button class="button" type="button" title="Set Image">
974                                 <img src="/web/static/src/img/icons/STOCK_DIRECTORY.png"/>
975                                 <span>Select</span>
976                             </button>
977                             <input type="file" class="oe-binary-file" name="ufile"/>
978                         </form>
979                     </div>
980                 </td>
981                 <td>
982                     <button class="button oe-binary-file-save" type="button" title="Save As">
983                         <img src="/web/static/src/img/icons/gtk-save.png"/>
984                         <span>Save As</span>
985                     </button>
986                 </td>
987                 <td>
988                     <button class="button oe-binary-file-clear" type="button" title="Clear">
989                         <img src="/web/static/src/img/icons/STOCK_MISSING_IMAGE.png"/>
990                         <span>Clear</span>
991                     </button>
992                 </td>
993             </tr>
994             </table>
995         </td>
996         <td class="oe-binary-progress" style="display: none" nowrap="true">
997             <img src="/web/static/src/img/throbber.gif" width="16" height="16"/>
998             <b>Uploading ...</b>
999             <iframe t-att-id="widget.iframe" t-att-name="widget.iframe" style="display: none"> </iframe>
1000         </td>
1001     </tr>
1002     </table>
1003 </t>
1004 <t t-name="WidgetButton">
1005     <button type="button"
1006         t-att-title="widget.help"
1007         style="width: 100%" class="button">
1008         <img t-if="widget.node.attrs.icon" t-att-src="'/web/static/src/img/icons/' + widget.node.attrs.icon + '.png'" width="16" height="16"/>
1009         <span t-if="widget.string"><t t-esc="widget.string"/></span>
1010     </button>
1011 </t>
1012 <t t-name="SearchView">
1013     <form class="oe_forms">
1014         <t t-call="SearchView.render_lines"/>
1015         <div class="oe_search-view-buttons" style="text-align: right;">
1016             <input type="submit" value="Search"/>
1017             <input type="reset" value="Clear"/>
1018             <button class="oe_search-view-custom-filter-btn"><span>Advanced Filter</span></button>
1019             <select class="oe_search-view-filters-management">
1020             </select>
1021         </div>
1022     </form>
1023 </t>
1024 <t t-name="SearchView.managed-filters">
1025     <option value="_filters">-- Filters --</option>
1026     <t t-set="i" t-value="0"/>
1027     <t t-foreach="filters" t-as="filter">
1028         <option t-att-value="'get:' + i"><t t-esc="filter.name"/></option>
1029         <t t-set="i" t-value="i+1"/>
1030     </t>
1031     <option value="_actions">-- Actions --</option>
1032     <option value="save_filter">Save Filter</option>
1033     <option value="manage_filters">Manage Filters</option>
1034 </t>
1035 <t t-name="SearchView.managed-filters.add">
1036     <div>
1037         <p>Filter Name:</p>
1038         <input type="text"/>
1039         <p>(Any existing filter with the same name will be replaced)</p>
1040     </div>
1041 </t>
1042 <t t-name="SearchView.render_lines">
1043     <table class="oe-searchview-render-line" border="0" cellspacing="0" cellpadding="0"
1044            t-foreach="lines" t-as="line">
1045         <tr>
1046             <td t-foreach="line" t-as="widget">
1047                 <t t-raw="widget.render(defaults)"/>
1048             </td>
1049         </tr>
1050     </table>
1051 </t>
1052 <button t-name="SearchView.filter" type="button"
1053         t-att-id="element_id"
1054         t-att-title="attrs.help"
1055         t-att-class="classes.join(' ')"
1056         t-att-autofocus="attrs.default_focus === '1' ? 'autofocus' : undefined">
1057     <img t-if="attrs.icon" t-att-src="'/web/static/src/img/icons/' + attrs.icon + '.png'" width="16" height="16"/>
1058     <br t-if="attrs.icon and attrs.string"/>
1059     <t t-esc="attrs.string"/>
1060 </button>
1061 <span t-name="SearchView.filters" class="filter_label_group"
1062     ><t t-foreach="filters" t-as="filter"
1063         ><t t-raw="filter.render(defaults)"/></t
1064 ></span>
1065 <t t-name="SearchView.field">
1066     <label t-att-class="'oe_label' + (attrs.help ? '_help' : '')"
1067            t-att-title="attrs.help"
1068            t-att-for="element_id">
1069         <t t-esc="attrs.string || attrs.name"/>
1070         <span t-if="attrs.help">?</span>
1071     </label>
1072     <div style="white-space: nowrap;">
1073         <input type="text" size="15" t-att-name="attrs.name"
1074                t-att-autofocus="attrs.default_focus === '1' ? 'autofocus' : undefined"
1075                t-att-id="element_id"
1076                t-att-value="defaults[attrs.name] || ''"/>
1077         <t t-if="filters.length" t-raw="filters.render(defaults)"/>
1078     </div>
1079 </t>
1080 <t t-name="SearchView.date">
1081     <label t-att-class="'oe_label' + (attrs.help ? '_help' : '')"
1082            t-att-title="attrs.help"
1083            t-att-for="element_id">
1084         <t t-esc="attrs.string || attrs.name"/>
1085         <span t-if="attrs.help">?</span>
1086     </label>
1087     <div style="white-space: nowrap;">
1088         <span t-att-id="element_id"></span>
1089         <t t-if="filters.length" t-raw="filters.render(defaults)"/>
1090     </div>
1091 </t>
1092 <t t-name="SearchView.field.selection">
1093     <label t-att-title="attrs.help"
1094            t-att-class="'oe_label' + (attrs.help ? '_help' : '')"
1095            t-att-for="element_id">
1096         <t t-esc="attrs.string || attrs.name"/>
1097         <span t-if="attrs.help">?</span>
1098     </label>
1099     <div style="white-space: nowrap;">
1100         <select t-att-name="attrs.name" t-att-id="element_id"
1101                 t-att-autofocus="attrs.default_focus === '1' || undefined">
1102             <option t-if="prepend_empty"/>
1103             <t t-foreach="attrs.selection" t-as="option">
1104                 <t t-set="selected" t-value="defaults[attrs.name] === option[0]"/>
1105                 <option t-if="selected"
1106                         t-att-value="option_index" selected="selected">
1107                     <t t-esc="option[1]"/>
1108                 </option>
1109                 <option t-if="!selected" t-att-value="option_index">
1110                     <t t-esc="option[1]"/>
1111                 </option>
1112             </t>
1113         </select>
1114         <t t-if="filters.length" t-raw="filters.render(defaults)"/>
1115     </div>
1116 </t>
1117 <t t-name="SearchView.util.expand">
1118     <div t-att-class="'searchview_group ' + (expand == '0' ? 'folded' : 'expanded')"
1119          t-att-id="element_id">
1120         <a t-if="label" class="searchview_group_string" href="#">
1121             <t t-esc="label"/>
1122         </a>
1123         <div class="searchview_group_content">
1124             <t t-raw="content"/>
1125         </div>
1126     </div>
1127 </t>
1128 <t t-name="SearchView.group">
1129     <t t-call="SearchView.util.expand">
1130         <t t-set="expand" t-value="attrs.expand"/>
1131         <t t-set="label" t-value="attrs.string"/>
1132         <t t-set="content">
1133             <t t-call="SearchView.render_lines"/>
1134         </t>
1135     </t>
1136 </t>
1137 <t t-name="SearchView.extended_search">
1138     <t t-call="SearchView.util.expand">
1139         <t t-set="expand" t-value="false"/>
1140         <t t-set="label" t-value="'Advanced Filters'"/>
1141         <t t-set="content">
1142             <div class="searchview_extended_groups_list">
1143             </div>
1144         </t>
1145     </t>
1146 </t>
1147 <t t-name="SearchView.extended_search.group">
1148     <div t-att-id="element_id" class="searchview_extended_group">
1149         <select class="searchview_extended_group_choice">
1150             <option value="any">Any of the following conditions must match</option>
1151             <option value="all">All the following conditions must match</option>
1152             <option value="none">None of the following conditions must match</option>
1153         </select>
1154         <a class="searchview_extended_delete_group"
1155                 href="javascript:void(0)"><span></span></a>
1156         <div class="searchview_extended_propositions_list">
1157         </div>
1158         <a class="searchview_extended_add_proposition" href="javascript:void(0)">
1159             <span>Add condition</span></a>
1160         <div class="oe_adv_filters_and"><span>and</span></div>
1161     </div>
1162 </t>
1163 <t t-name="SearchView.extended_search.proposition">
1164     <div t-att-id="element_id">
1165         <select class="searchview_extended_prop_field">
1166             <t t-foreach="attrs.fields" t-as="field">
1167                 <option t-if="typeof field.store === 'undefined' || field.store || field.fnct_search"
1168                         t-att="{'selected': field === attrs.selected ? 'selected' : null}"
1169                         t-att-value="field.name">
1170                     <t t-esc="field.string"/>
1171                 </option>
1172             </t>
1173         </select>
1174         <select class="searchview_extended_prop_op"/>
1175         <span class="searchview_extended_prop_value"/>
1176         <a class="searchview_extended_delete_prop"
1177                 href="javascript:void(0)"><span> </span></a>
1178     </div>
1179 </t>
1180 <t t-name="SearchView.extended_search.proposition.char">
1181     <input t-att-id="element_id" class="field_char"/>
1182 </t>
1183 <t t-name="SearchView.extended_search.proposition.empty">
1184     <span t-att-id="element_id"></span>
1185 </t>
1186 <t t-name="SearchView.extended_search.proposition.integer">
1187     <input type="number" t-att-id="element_id" class="field_integer" step="1"/>
1188 </t>
1189 <t t-name="SearchView.extended_search.proposition.float">
1190     <input type="number" t-att-id="element_id" class="field_float" step="0.01"/>
1191 </t>
1192 <t t-name="SearchView.extended_search.proposition.boolean">
1193 </t>
1194 <t t-name="SearchView.extended_search.proposition.selection">
1195     <select t-att-id="element_id">
1196         <t t-foreach="field.selection" t-as="element">
1197         <option t-att-value="element[0]"><t t-esc="element[1]"/></option>
1198         </t>
1199     </select>
1200 </t>
1201 <t t-name="DialogWarning">
1202     <table cellspacing="0" cellpadding="0" border="0" class="oe-dialog-warning">
1203     <tr>
1204         <td><img src="/web/static/src/img/warning.png" class="oe-dialog-icon"/></td>
1205         <td>
1206             <p>
1207                 <t t-js="d">
1208                     var message = d.message ? d.message : d.error.data.fault_code;
1209                     d.html_error = context.engine.tools.html_escape(message)
1210                         .replace(/\n/g, '<br/>');
1211                 </t>
1212                 <t t-raw="html_error"/>
1213             </p>
1214         </td>
1215     </tr>
1216     </table>
1217 </t>
1218 <t t-name="DialogTraceback">
1219     <pre><t t-esc="error.message"/></pre>
1220     <hr/>
1221     <pre><t t-esc="error.data.debug"/></pre>
1222 </t>
1223 <t t-name="SelectCreatePopup">
1224     <div t-att-id="element_id">
1225         <table style="width:100%">
1226             <tr style="width:100%">
1227                 <td style="width:100%">
1228                     <div t-att-id="element_id + '_search'" style="width:100%"></div>
1229                 </td>
1230             </tr>
1231             <tr style="width:100%">
1232                 <td style="width:100%">
1233                     <div t-att-id="element_id + '_view_list'" style="width:100%"></div>
1234                 </td>
1235             </tr>
1236         </table>
1237         <div t-att-id="element_id + '_view_form'" style="width:100%"></div>
1238     </div>
1239 </t>
1240 <t t-name="SelectCreatePopup.search.buttons">
1241     <button type="button" class="oe_selectcreatepopup-search-select" disabled="disabled">Select</button>
1242     <button type="button" class="oe_selectcreatepopup-search-close">Cancel</button>
1243 </t>
1244 <t t-name="SelectCreatePopup.form.buttons">
1245     <t t-if="widget.options.disable_multiple_selection">
1246         <button type="button" class="oe_selectcreatepopup-form-save">Save</button>
1247     </t>
1248     <t t-if="! widget.options.disable_multiple_selection">
1249         <button type="button" class="oe_selectcreatepopup-form-save-new">Save &amp; New</button>
1250         <button type="button" class="oe_selectcreatepopup-form-save">Save &amp; Close</button>
1251     </t>
1252     <button type="button" class="oe_selectcreatepopup-form-close">Cancel</button>
1253 </t>
1254 <t t-name="FormOpenPopup">
1255     <div t-att-id="element_id">
1256         <div t-att-id="element_id + '_view_form'" style="width:100%"></div>
1257     </div>
1258 </t>
1259 <t t-name="FormOpenPopup.form.buttons">
1260     <button type="button" class="oe_formopenpopup-form-save">Save</button>
1261     <button type="button" class="oe_formopenpopup-form-close">Cancel</button>
1262 </t>
1263 <t t-name="ListView.row.frame" t-extend="WidgetFrame">
1264     <t t-jquery="tr">
1265         $(document.createElement('t'))
1266             .append(this.contents())
1267             .attr({
1268                 't-foreach': this.attr('t-foreach'),
1269                 't-as': this.attr('t-as')
1270             })
1271             .replaceAll(this)
1272             .after($(document.createElement('td')).append(
1273                 $(document.createElement('button')).attr({
1274                     'class': 'oe-edit-row-save', 'type': 'button'}).text('Save')))
1275             .before($(document.createElement('td')).append(
1276                 $(document.createElement('button')).attr({
1277                     'class': 'oe-edit-row-cancel', 'type': 'button'}).text('Cancel')))
1278             .unwrap();
1279     </t>
1280 </t>
1281 <t t-name="view_editor">
1282     <table class="oe_view_editor">
1283         <t t-call="view_editor.row"/>
1284     </table>
1285 </t>
1286 <tr t-name="view_editor.row"  class="oe_view_editor_row" t-att-id="'viewedit-' + rec.id"  t-att-level="rec.level" t-foreach="data" t-as="rec">
1287     <td class="oe_view_editor_colum"  width="85%">
1288         <table class="oe_view_editor_tree_grid">
1289             <tr>
1290                 <td width="16px" t-att-style="'background-position: ' + 20*rec.level + 'px; padding-left: ' + 20*rec.level + 'px'">
1291                     <img t-if="rec.child_id.length" t-att-id="'parentimg-' + rec.id"
1292                         src="/web/static/src/img/collapse.gif" width="16" height="16" border="0"/>
1293                 </td>
1294                 <td style="cursor: pointer;">
1295                     <a style="text-decoration:none" href="javascript:void(0);"> <t t-esc="rec.name"/> </a>
1296                 </td>
1297             </tr>
1298         </table>
1299     </td>
1300     <td align="left" class="oe_view_editor_colum"  width="15%">
1301         <table  width="100%">
1302             <tr>
1303                 <td width="20%">
1304                     <img t-if="rec.att_list.length"
1305                         id="side-add" src="/web/static/src/img/icons/gtk-add.png" style="cursor: pointer;"/>
1306                 </td>
1307                 <td width="20%">
1308                     <img  id="side-remove" src="/web/static/src/img/icons/gtk-remove.png" style="cursor: pointer;"/>
1309                 </td>
1310                 <td width="20%">
1311                     <img t-if="rec.att_list.length"
1312                         id="side-edit" src="/web/static/src/img/icons/gtk-edit.png" style="cursor: pointer;"/>
1313                 </td>
1314                 <td width="20%">
1315                     <img t-if="rec.att_list.length"
1316                         id="side-up" src="/web/static/src/img/icons/gtk-go-up.png" style="cursor: pointer;"/>
1317                 </td>
1318                 <td width="20%">
1319                     <img t-if="rec.att_list.length"
1320                         id="side-down" src="/web/static/src/img/icons/gtk-go-down.png" style="cursor: pointer;"/>
1321                 </td>
1322             </tr>
1323         </table>
1324     </td>
1325     <t t-if="rec.child_id.length">
1326         <t t-set="data" t-value="rec.child_id"/>
1327         <t t-call="view_editor.row"/>
1328     </t>
1329 </tr>
1330
1331 <t t-name="ExportView">
1332     <a id="exportview" href="javascript: void(0)" style="text-decoration: none;color: #3D3D3D;">Export</a>
1333 </t>
1334 <table t-name="ExportTreeView" class="oe-export"
1335        style="background-color: #F3F3F3;">
1336     <tr>
1337         <td colspan="3">
1338             This wizard will export all data that matches the current search criteria to a CSV file.
1339             You can export all data or only the fields that can be reimported after modification.
1340         </td>
1341     </tr>
1342     <tr>
1343         <td colspan="3">
1344             <label for="import_compat">Export Type:</label>
1345             <select id="import_compat" name="import_compat">
1346                 <option value="yes">Import Compatible Export</option>
1347                 <option value="">Export all Data</option>
1348             </select>
1349
1350             <label for="export_format">Export Formats</label>
1351             <select id="export_format" name="export_format"></select>
1352         </td>
1353     </tr>
1354
1355     <tr>
1356         <th>Available fields</th>
1357         <th/>
1358         <th>
1359             Fields to export
1360             <a style="color: blue; text-decoration: none;" href="#" id="export_new_list">Save fields list</a>
1361             <div id="savenewlist"></div>
1362             <div id="ExistsExportList"></div>
1363         </th>
1364     </tr>
1365     <tr style="height: 400px;">
1366         <td class="oe_export_fields_selector_left">
1367             <div id="left_field_panel">
1368             </div>
1369         </td>
1370         <td class="oe_export_fields_selector_center">
1371             <button id="add_field">Add</button>
1372             <button id="remove_field">Remove</button>
1373             <button id="remove_all_field">Remove All</button>
1374         </td>
1375         <td class="oe_export_fields_selector_right">
1376             <select name="fields_list" id="fields_list"
1377                     multiple="multiple"></select>
1378         </td>
1379     </tr>
1380 </table>
1381
1382
1383 <table t-name="ExportTreeView-Secondary"
1384        id="field-tree-structure" class="oe_export_fields_selector_export"
1385        cellspacing="0" cellpadding="0">
1386     <tr><th class="oe_export_tree_header"> Name </th></tr>
1387     <t t-call="ExportTreeView-Secondary.children"/>
1388 </table>
1389 <tr t-name="ExportTreeView-Secondary.children"
1390     t-foreach="fields" t-as="field"
1391     t-att-id="'treerow-' + field.id" class="oe_export_row">
1392     <td>
1393         <table class="tree_grid" border="0">
1394             <tr class="oe_export_row">
1395                 <t t-foreach="(field.id).split('/')" t-as="level" >
1396                     <t t-if="(field.id).split('/')[0] != level">
1397                         <td width="18">&amp;nbsp;</td>
1398                     </t>
1399                 </t>
1400                 <td valign="top" align="left" style="cursor: pointer;" width="18">
1401                     <t t-if="field.children">
1402                         <t t-if="(field.id).split('/').length != 3">
1403                             <img t-att-id="'parentimg-' + field.id" src="/web/static/src/img/expand.gif" width="16" height="16" border="0"/>
1404                         </t>
1405                     </t>
1406                 </td>
1407                 <td id="tree-column" valign="middle" align="left" style="cursor: pointer;">
1408                     <a t-att-id="'export-' + field.id"  t-att-string="field.string" href="javascript: void(0);" style="text-decoration: none;">
1409                         <t t-esc="field.string"/>
1410                     </a>
1411                 </td>
1412             </tr>
1413         </table>
1414     </td>
1415 </tr>
1416
1417 <t t-name="ExportNewList">
1418     <tr>
1419         <th><label>Save as:</label></th>
1420         <td><input size="10" type="text" id="savelist_name"/></td>
1421         <td><button class="oe_export_button_export" id="add_export_list">Ok</button></td>
1422     </tr>
1423 </t>
1424
1425 <t t-name="Exists.ExportList">
1426     <label for="saved_export_list">Saved exports:</label>
1427
1428     <select id="saved_export_list">
1429         <option></option>
1430         <t t-foreach="existing_exports" t-as="export">
1431             <option t-att-value="export.id"><t t-esc="export.name"/></option>
1432         </t>
1433     </select>
1434     <button class="oe_export_button_export" id="delete_export_list" type="button">Delete</button>
1435 </t>
1436 <t t-name="Change_Pwd">
1437     <form name="change_password_form" class="oe_forms" method="POST">
1438         <table align="center">
1439             <tr>
1440                 <td><label for="old_pwd">Old Password:</label></td>
1441                 <td><input type="password" name="old_pwd"
1442                            minlength="1" autofocus="autofocus"/></td>
1443             </tr>
1444             <tr>
1445             <td><label for="new_password">New Password:</label></td>
1446             <td><input type="password" name="new_password"
1447                        minlength="1" autofocus="autofocus"/></td>
1448             </tr>
1449             <tr>
1450                 <td><label for="confirm_pwd">Confirm Password:</label></td>
1451                 <td><input type="password" name="confirm_pwd"
1452                              minlength="1"/></td>
1453             </tr>
1454             <tr>
1455                 <td colspan="2" align="right"><input type="submit" value="Change Password"/></td>
1456             </tr>
1457         </table>
1458     </form>
1459 </t>
1460
1461 <t t-name="ImportView">
1462     <a id="importview" href="javascript: void(0)" style="text-decoration: none;color: #3D3D3D;">Import</a>
1463 </t>
1464 <t t-name="ImportDataView">
1465 <form name="import_data" id="import_data" action="" method="post" enctype="multipart/form-data"
1466         class="oe-import oe-import-no-result">
1467     <input type="hidden" name="session_id" t-att-value="session.session_id"/>
1468     <h2 class="separator horizontal">1. Import a .CSV file</h2>
1469     <p>Select a .CSV file to import. If you need a sample of file to import,
1470        you should use the export tool with the "Import Compatible" option.
1471     </p>
1472     <p>
1473         <label for="csvfile">CSV File:</label>
1474         <input type="file" id="csvfile" size="50" name="csvfile"/>
1475     </p>
1476     <h2 class="separator horizontal oe-import-result">2. Check your file format</h2>
1477     <div id="result" class="oe-import-result"></div>
1478     <fieldset class="oe-closed oe-import-result">
1479         <legend>Import Options</legend>
1480         <table>
1481             <tr>
1482                 <td colspan="4">
1483                     <label for="file_has_headers">Does your file have titles?</label>
1484                     <input type="checkbox" checked="checked"
1485                            id="file_has_headers"/>
1486                 </td>
1487             </tr>
1488             <tr>
1489                 <td><label for="csv_separator">Separator:</label></td>
1490                 <td><input type="text" name="csvsep" id="csv_separator" value=","/></td>
1491                 <td><label for="csv_delimiter">Delimiter:</label></td>
1492                 <td><input type="text" name="csvdel" id="csv_delimiter" value='"'/></td>
1493             </tr>
1494             <tr>
1495                 <td><label for="csv_encoding">Encoding:</label></td>
1496                 <td>
1497                     <select name="csvcode" id="csv_encoding">
1498                         <option value="utf-8">UTF-8</option>
1499                         <option value="latin1">Latin 1</option>
1500                     </select>
1501                 </td>
1502                 <td><label for="csv_skip" title="For use if CSV files have titles on multiple lines, skips more than a single line during import">
1503                     Lines to skip<sup>?</sup>:</label></td>
1504                 <td><input type="number" id="csv_skip" value="0" min="0"/></td>
1505             </tr>
1506         </table>
1507     </fieldset>
1508 </form>
1509 </t>
1510 <t t-name="ImportView.result">
1511     <table class="oe_import_grid" width="100%" style="margin: 5px 0;">
1512         <tr t-if="headers" class="oe_import_grid-header">
1513             <td t-foreach="headers" t-as="header" class="oe_import_grid-cell">
1514                 <t t-esc="header"/></td>
1515         </tr>
1516         <tr>
1517             <td t-foreach="records[0]" t-as="column">
1518                 <input class="sel_fields" placeholder="--- Don't Import ---"/><span class="oe-m2o-drop-down-button">
1519                         <img src="/web/static/src/img/down-arrow.png" /></span>
1520             </td>
1521         </tr>
1522         <tr t-foreach="records" t-as="record" class="oe_import_grid-row">
1523             <td t-foreach="record" t-as="cell" class="oe_import_grid-cell">
1524                 <t t-esc="cell"/></td>
1525         </tr>
1526     </table>
1527 </t>
1528 <t t-name="ImportView.error">
1529     <p style="white-space:pre-line;">The import failed due to:<t t-esc="error.message"/></p>
1530     <t t-if="error.preview">
1531         <p>Here is a preview of the file we could not import:</p>
1532         <pre><t t-esc="error.preview"/></pre>
1533     </t>
1534 </t>
1535
1536 <t t-name="About-Page">
1537     <div>
1538         <h1>OpenERP Web</h1>
1539         <h3 style="padding:0 5px 5px">Version <t t-esc="version_info.version"/></h3>
1540         <p>
1541             Copyright © 2011-TODAY OpenERP SA. All Rights Reserved.<br />
1542             OpenERP is a trademark of the <a target="_blank" href="http://openerp.com/" style="text-decoration: underline;">OpenERP SA Company</a>.
1543         </p>
1544         <p>
1545             Licenced under the terms of <a target="_blank" href="http://www.gnu.org/licenses/agpl.html" style="text-decoration: underline;">GNU Affero General Public License</a>
1546         </p>
1547         <br />
1548         <h1>About OpenERP</h1>
1549         <p>
1550             <a target="_blank" href="http://openerp.com/" style="text-decoration: underline;">OpenERP</a> is a free enterprise-scale software system that is designed to boost
1551             productivity and profit through data integration. It connects, improves and
1552             manages business processes in areas such as sales, finance, supply chain,
1553             project management, production, services, CRM, etc...
1554         </p>
1555         <p>
1556             The system is platform-independent, and can be installed on Windows, Mac OS X,
1557             and various Linux and other Unix-based distributions. Its architecture enables
1558             new functionality to be rapidly created, modifications to be made to a
1559             production system and migration to a new version to be straightforward.
1560         </p>
1561         <p>
1562             Depending on your needs, OpenERP is available through a web or application client.
1563         </p>
1564     </div>
1565 </t>
1566 <t t-name="FieldStatus.content">
1567     <ul class="oe-arrow-list">
1568         <t t-set="size" t-value="widget.to_show.length"/>
1569         <t t-foreach="_.range(size)" t-as="i">
1570             <li t-att-class="widget.to_show[i][0] === widget.selected_value ? 'oe-arrow-list-selected' : ''">
1571                 <span class="oe-arrow-list-before" t-if="i &gt; 0"></span><span><t t-esc="widget.to_show[i][1]"/></span><span class="oe-arrow-list-after" t-if="i &lt; size - 1"></span>
1572             </li>
1573         </t>
1574     </ul>
1575 </t>
1576 <t t-name="EmptyComponent">
1577     <div></div>
1578 </t>
1579 </templates>