[MERGE] Merge with trunk upto revision no 1400.
[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                 <h2 class="oe_view_title" t-if="self.flags.display_title !== false">
419                     <t t-esc="self.display_title()"/>
420                 </h2>
421                 <div class="oe_vm_switch">
422                     <t t-if="views.length != 1" t-foreach="views" t-as="view">
423                         <button type="button" t-att-data-view-type="view.view_type">
424                             <t t-esc="view.view_type"/>
425                         </button>
426                     </t>
427                 </div>
428             </div>
429             <div t-attf-id="#{prefix}_search" t-opentag="true"/>
430             <t t-foreach="views" t-as="view">
431                 <div t-attf-id="#{prefix}_view_#{view.view_type}"/>
432             </t>
433         </td>
434         <td class="view-manager-main-sidebar" height="100%">
435             <t t-foreach="views" t-as="view">
436                 <div t-attf-id="#{prefix}_sidebar_#{view.view_type}" class="sidebar-main-div closed-sidebar" style="display: none"/>
437             </t>
438         </td>
439     </tr>
440     </table>
441 </t>
442
443 <t t-extend="ViewManager" t-name="ViewManagerAction">
444     <t t-jquery=".oe-view-manager-header" t-operation="prepend">
445         <blockquote t-if="self.action.help and !self.flags.low_profile
446                          and !(self.action.id in self.session.hidden_menutips)">
447             <p><t t-esc="self.action.help"/></p>
448             <div>
449                 <button type="button" name="hide">Hide this tip</button>
450                 <button type="button" name="disable">Disable all tips</button>
451             </div>
452         </blockquote>
453         <a class="oe-shortcut-toggle" title="Add / Remove Shortcut..."
454            href="javascript: void(0)"> </a>
455         <button t-if="self.session.debug" class="oe_get_xml_view">
456             View#<span></span>
457         </button>
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                 <input type="checkbox" class="all-record-selector"/> </th>
584             <t t-foreach="columns" t-as="column">
585                 <th t-if="!column.meta and column.invisible !== '1'" t-att-data-id="column.id"
586                     t-att-class="((options.sortable and column.tag !== 'button') ? 'oe-sortable' : null)">
587                     <t t-if="column.tag !== 'button'"
588                         ><t t-esc="column.string"/></t>
589                 </th>
590             </t>
591             <th t-if="options.deletable" width="1"/>
592         </tr>
593     </thead>
594     <tfoot class="ui-widget-header">
595         <tr>
596             <td t-if="options.selectable"/>
597             <td t-foreach="aggregate_columns" t-as="column" class="oe-list-footer oe-number"
598                 t-att-data-field="column.id" t-att-title="column.label">
599             </td>
600             <td t-if="options.deletable"/>
601         </tr>
602         <tr>
603             <t t-call="Listview.navigation.button"/>
604         </tr>
605     </tfoot>
606 </table>
607 <th t-name="Listview.navigation.button" t-if="options.pager !== false"
608         class="oe-list-pager" t-att-colspan="columns_count">
609     <button type="button" disabled="disabled"
610             data-pager-action="first">First</button>
611     <button type="button" disabled="disabled"
612             data-pager-action="previous">&lt;</button>
613
614     <span class="oe-pager-state">
615     </span>
616
617     <button type="button" disabled="disabled"
618             data-pager-action="next">&gt;</button>
619     <button type="button" disabled="disabled"
620             data-pager-action="last">Last</button>
621 </th>
622 <t t-name="ListView.rows" t-foreach="records.length" t-as="index">
623     <t t-call="ListView.row">
624         <t t-set="record" t-value="records.at(index)"/>
625         <t t-set="row_parity" t-value="index_parity"/>
626     </t>
627 </t>
628 <tr t-name="ListView.row" t-att-class="row_parity"
629         t-att-data-id="record.get('id')"
630         t-att-style="view.color_for(record)">
631     <t t-foreach="columns" t-as="column">
632         <td t-if="column.meta">
633
634         </td>
635     </t>
636     <t t-if="options.radio">
637         <th t-if="options.selectable" class="oe-record-selector" width="1">
638             <input type="radio" name ="radiogroup"/>
639         </th>
640     </t>
641     <t t-if="!options.radio">
642         <th t-if="options.selectable" class="oe-record-selector" width="1">
643             <input type="checkbox"/>
644         </th>
645     </t>
646
647
648     <t t-foreach="columns" t-as="column">
649         <t t-set="align" t-value="column.type === 'integer' or column.type == 'float'"/>
650         <td t-if="!column.meta and column.invisible !== '1'" t-att-title="column.help"
651             t-att-class="'oe-field-cell' + (align ? ' oe-number' : '')"
652             t-att-data-field="column.id">
653             <t t-raw="render_cell(record, column)"/>
654         </td>
655     </t>
656     <td t-if="options.deletable" class='oe-record-delete' width="1">
657         <button type="button" name="delete">♻</button>
658     </td>
659 </tr>
660 <t t-name="ListView.row.form">
661     <t t-raw="frame.render()"/>
662 </t>
663 <t t-name="FormView">
664     <div class="oe_form_header">
665         <div class="oe_form_buttons" t-if="widget.options.action_buttons !== false">
666             <button type="button" class="oe_form_button_save">
667                 <span class="oe_form_on_update">Save</span>
668                 <span class="oe_form_on_create">Create</span>
669             </button>
670             <button type="button" class="oe_form_button_new">New</button>
671             <button type="button" class="oe_form_button_duplicate oe_form_on_update">Duplicate</button>
672             <button type="button" class="oe_form_button_toggle">Readonly/Editable</button>
673         </div>
674         <div class="oe_form_pager" t-if="widget.options.pager !== false">
675             <button type="button" data-pager-action="first">First</button>
676             <button type="button" data-pager-action="previous">&lt;&lt;</button>
677
678             <span class="oe_pager_index">0</span> / <span class="oe_pager_count">0</span>
679
680             <button type="button" data-pager-action="next">&gt;&gt;</button>
681             <button type="button" data-pager-action="last">Last</button>
682         </div>
683     </div>
684     <t t-raw="frame.render()"/>
685 </t>
686 <t t-name="FormView.sidebar.attachments">
687     <div class="oe-sidebar-attachments-toolbar">
688         <div class="oe-binary-file-set" style="float: right">
689             <form class="oe-binary-form" t-attf-target="#{element_id}_iframe"
690                 method="post" enctype="multipart/form-data" action="/web/binary/upload_attachment">
691                 <input type="hidden" name="session_id" t-att-value="session.session_id"/>
692                 <input type="hidden" name="callback" t-attf-value="#{element_id}_iframe"/>
693                 <input type="hidden" name="model" t-att-value="view.dataset.model"/>
694                 <input type="hidden" name="id" t-att-value="view.datarecord.id"/>
695                 <button class="button" type="button">
696                     <img src="/web/static/src/img/throbber.gif" width="16" height="16" style="display: none"/>
697                     <span>Add</span>
698                 </button>
699                 <input type="file" class="oe-binary-file" name="ufile" title="Add attachment"
700                     t-att-onclick="view.datarecord.id ? null : 'alert(\'No record selected ! You can only attach to existing record.\'); return false;'"/>
701             </form>
702             <iframe t-attf-id="#{element_id}_iframe" t-attf-name="#{element_id}_iframe" style="display: none"> </iframe>
703         </div>
704     </div>
705     <br style="clear: both"/>
706     <ul class="oe-sidebar-attachments-items">
707         <li t-foreach="attachments" t-as="attachment">
708             <t t-if="attachment.type == 'binary'" t-set="attachment.url" t-value="'/web/binary/saveas?session_id='
709                 + session.session_id + '&amp;model=ir.attachment&amp;id=' + attachment.id
710                 + '&amp;field=datas&amp;fieldname=name&amp;t=' + (new Date().getTime())"/>
711             <a class="oe-sidebar-attachments-link" t-att-href="attachment.url" target="_blank">
712                 <t t-esc="attachment.name"/>
713             </a>
714             <a href="#" class="oe-sidebar-attachment-delete" t-att-data-id="attachment.id" t-attf-title="Delete the attachment #{attachment.name}">
715                 <img src="/web/static/src/img/attachments-close.png" width="15" height="15" border="0"/>
716             </a>
717         </li>
718     </ul>
719 </t>
720 <t t-name="Widget">
721     Unhandled widget
722     <t t-raw="console.log('Unhandled widget', widget)"/>
723 </t>
724 <t t-name="WidgetFrame">
725     <table border="0" width="100%" cellpadding="0" cellspacing="0" class="oe_frame oe_forms">
726     <tr t-foreach="widget.table" t-as="row">
727         <t t-foreach="row" t-as="td">
728             <td t-att-colspan="td.colspan gt 1 ? td.colspan : undefined"
729                 t-att-width="td.width"
730                 t-att-nowrap="td.nowrap or td.is_field_m2o? 'true' : undefined"
731                 t-att-valign="td.table ? 'top' : undefined"
732                 t-attf-class="oe_form_frame_cell #{td.classname} #{td.element_class}"
733             >
734                 <t t-raw="td.render()"/>
735             </td>
736         </t>
737     </tr>
738     </table>
739 </t>
740 <t t-name="WidgetNotebook">
741     <ul>
742         <li t-foreach="widget.pages" t-as="page">
743             <a href="#">
744                 <t t-esc="page.string"/>
745             </a>
746         </li>
747     </ul>
748     <t t-foreach="widget.pages" t-as="page">
749         <t t-raw="page.render()"/>
750     </t>
751 </t>
752 <t t-name="WidgetNotebookPage">
753     <div>
754         <t t-call="WidgetFrame"/>
755     </div>
756 </t>
757 <t t-name="WidgetSeparator">
758     <div t-if="widget.orientation !== 'vertical'" t-att-class="'separator ' + widget.orientation">
759         <t t-esc="widget.string"/>
760     </div>
761 </t>
762 <t t-name="WidgetLabel">
763     <label t-att-for="widget.element_id"
764            t-attf-class="oe_label#{widget.help ? '_help' : ''} oe_align_#{widget.align}"
765            t-att-title="widget.help">
766         <t t-esc="widget.string"/>
767         <span t-if="widget.help">?</span>
768         <t t-if="widget.string and widget.node.tag != 'label'">:</t>
769     </label>
770 </t>
771 <t t-name="WidgetParagraph">
772     <p t-attf-class="oe_form_paragraph oe_align_#{widget.align}"><t t-esc="widget.string"/></p>
773 </t>
774 <t t-name="FieldChar">
775     <input t-att-type="widget.password ? 'password' : 'text'" size="1"
776         t-att-name="widget.name"
777         t-att-id="widget.element_id"
778         t-attf-class="field_#{widget.type}"
779         t-attf-style="width: #{widget.field.translate ? '99' : '100'}%"
780     />
781     <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"/>
782 </t>
783 <t t-name="FieldChar.readonly">
784     <div
785         t-att-id="widget.element_id"
786         t-attf-class="field_#{widget.type}"
787         t-attf-style="width: #{widget.field.translate ? '99' : '100'}%">
788     </div>
789 </t>
790 <t t-name="FieldURI.readonly">
791     <a href="#">#</a>
792 </t>
793 <t t-name="FieldEmail">
794     <table cellpadding="0" cellspacing="0" border="0" width="100%">
795     <tr>
796         <td width="100%">
797             <t t-call="FieldChar"/>
798         </td>
799         <td width="16">
800             <button type="button" class="button" title="Send an e-mail with your default e-mail client">
801                 <img src="/web/static/src/img/icons/terp-mail-message-new.png"/>
802             </button>
803         </td>
804     </tr>
805     </table>
806 </t>
807 <t t-name="FieldUrl">
808     <table cellpadding="0" cellspacing="0" border="0" width="100%">
809     <tr>
810         <td width="100%">
811             <t t-call="FieldChar"/>
812         </td>
813         <td width="16">
814             <button type="button" class="button" title="Open this resource">
815                 <img src="/web/static/src/img/icons/gtk-ok.png"/>
816             </button>
817         </td>
818     </tr>
819     </table>
820 </t>
821 <t t-name="FieldText">
822     <textarea rows="6"
823         t-att-name="widget.name"
824         t-att-id="widget.element_id"
825         t-attf-class="field_#{widget.type}"
826         t-attf-style="width: #{widget.field.translate ? '99' : '100'}%"
827     ></textarea>
828     <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"/>
829 </t>
830 <t t-name="web.datetimepicker">
831     <div class="oe_datepicker_root">
832         <input type="text" size="1" style="width: 100%"/>
833         <img class="oe_input_icon oe_datepicker_trigger" src="/web/static/src/img/ui/field_calendar.png"
834              title="Select date" width="16" height="16" border="0"/>
835         <div class="oe_datepicker ui-widget-content ui-corner-all" style="display: none; position: absolute; z-index: 1;">
836             <div class="oe_datepicker_container"/>
837             <button type="button" class="oe_datepicker_close ui-state-default ui-priority-primary ui-corner-all" style="float: right;">Done</button>
838         </div>
839     </div>
840 </t>
841 <t t-name="FieldSelection">
842     <select
843         t-att-name="widget.name"
844         t-att-id="widget.element_id"
845         t-attf-class="field_#{widget.type}"
846         style="width: 100%">
847             <t t-foreach="widget.values" t-as="option">
848                 <option><t t-esc="option[1]"/></option>
849             </t>
850     </select>
851 </t>
852 <t t-name="FieldMany2One">
853     <div class="oe-m2o">
854         <input type="text" size="1" style="width: 100%;"
855                 t-att-id="widget.element_id"/>
856         <span class="oe-m2o-drop-down-button">
857             <img src="/web/static/src/img/down-arrow.png" /></span>
858         <span class="oe-m2o-cm-button" t-att-id="widget.name + '_open'">
859             <img src="/web/static/src/img/icons/gtk-index.png"/></span>
860         <div t-att-id="widget.cm_id" class="contextMenu" style="display:none">
861         </div>
862     </div>
863 </t>
864 <t t-name="FieldMany2One.context_menu">
865     <ul>
866         <li t-att-id="widget.cm_id + '_open'" style="color:grey" class="oe_m2o_menu_item_mandatory">Open...</li>
867         <li t-att-id="widget.cm_id + '_create'" class="oe_m2o_menu_item_noreadonly">Create...</li>
868         <li t-att-id="widget.cm_id + '_search'" class="oe_m2o_menu_item_noreadonly">Search...</li>
869         <t t-set="i" t-value="0"/>
870         <t t-foreach="widget.related_entries" t-as="entry">
871             <li t-att-id="widget.cm_id + '_related_' + i" style="color:grey" class="oe_m2o_menu_item_mandatory">
872                 ... <t t-esc="(entry[2] || {})['name'] || ''"/>
873             </li>
874             <t t-set="i" t-value="i+1"/>
875         </t>
876     </ul>
877 </t>
878 <t t-name="FieldOne2Many">
879 </t>
880 <t t-name="FieldMany2Many">
881     <div t-att-id="widget.list_id"></div>
882 </t>
883 <t t-name="FieldReference">
884     <table border="0" width="100%" cellpadding="0" cellspacing="0" class="oe_frame oe_forms">
885     <tr>
886         <td t-attf-class="oe_form_frame_cell oe_form_selection #{widget.selection.element_class}">
887             <t t-raw="widget.selection.render()"/>
888         </td>
889         <td t-attf-class="oe_form_frame_cell oe_form_many2one #{widget.m2o.element_class}" nowrap="true" style="display: none">
890             <t t-raw="widget.m2o.render()"/>
891         </td>
892     </tr>
893     </table>
894 </t>
895 <t t-name="FieldBoolean">
896     <input type="checkbox"
897         t-att-name="widget.name"
898         t-att-id="widget.element_id"
899         t-attf-class="field_#{widget.type}"/>
900 </t>
901 <t t-name="FieldProgressBar">
902     <div t-opentag="true" class="oe-progressbar">
903         <span></span>
904     </div>
905 </t>
906 <t t-name="FieldBinaryImage">
907     <table cellpadding="0" cellspacing="0" border="0">
908     <tr>
909         <td align="center">
910             <img src="/web/static/src/img/placeholder.png" class="oe-binary-image"
911                 t-att-border="widget.readonly ? 0 : 1"
912                 t-att-id="widget.element_id + '_field'"
913                 t-att-name="widget.name"
914                 t-attf-class="field_#{widget.type}"
915                 t-att-width="widget.node.attrs.img_width || widget.node.attrs.width"
916                 t-att-height="widget.node.attrs.img_height || widget.node.attrs.height"
917             />
918         </td>
919     </tr>
920     <tr>
921         <td align="center" valign="bottom" height="25">
922             <div class="oe-binary">
923                 <table cellspacing="0" cellpadding="0" border="0">
924                 <tr>
925                     <td>
926                         <div class="oe-binary-file-set" style="width: 40px; height:22px;">
927                             <form class="oe-binary-form" t-att-target="widget.iframe"
928                                 method="post" enctype="multipart/form-data" action="/web/binary/upload">
929                                 <input type="hidden" name="session_id" value=""/>
930                                 <input type="hidden" name="callback" t-att-value="widget.iframe"/>
931                                 <button class="button" type="button" title="Set Image">
932                                     <img src="/web/static/src/img/icons/STOCK_DIRECTORY.png"/>
933                                 </button>
934                                 <input type="file" class="oe-binary-file" name="ufile"/>
935                             </form>
936                         </div>
937                     </td>
938                     <td>
939                         <button class="button oe-binary-file-clear" type="button" title="Clear">
940                             <img src="/web/static/src/img/icons/STOCK_MISSING_IMAGE.png"/>
941                         </button>
942                     </td>
943                 </tr>
944                 </table>
945             </div>
946             <div class="oe-binary-progress" style="display: none">
947                 <img src="/web/static/src/img/throbber.gif" width="16" height="16"/>
948                 <b>Uploading ...</b>
949             </div>
950             <iframe t-att-id="widget.iframe" t-att-name="widget.iframe" style="display: none"> </iframe>
951         </td>
952     </tr>
953     </table>
954 </t>
955 <t t-name="FieldBinaryFile">
956     <table cellpadding="0" cellspacing="0" border="0" width="100%">
957     <tr>
958         <td width="100%">
959             <input type="text" size="1"
960                 t-att-name="widget.name"
961                 t-att-id="widget.element_id + '_field'"
962                 t-attf-class="field_#{widget.type}" style="width: 100%"
963             />
964         </td>
965         <td class="oe-binary" nowrap="true">
966             <table cellspacing="0" cellpadding="0" border="0">
967             <tr>
968                 <td>
969                     <div class="oe-binary-file-set" style="width: 80px; height:22px;">
970                         <form class="oe-binary-form" t-att-target="widget.iframe"
971                             method="post" enctype="multipart/form-data" action="/web/binary/upload">
972                             <input type="hidden" name="session_id" value=""/>
973                             <input type="hidden" name="callback" t-att-value="widget.iframe"/>
974                             <button class="button" type="button" title="Set Image">
975                                 <img src="/web/static/src/img/icons/STOCK_DIRECTORY.png"/>
976                                 <span>Select</span>
977                             </button>
978                             <input type="file" class="oe-binary-file" name="ufile"/>
979                         </form>
980                     </div>
981                 </td>
982                 <td>
983                     <button class="button oe-binary-file-save" type="button" title="Save As">
984                         <img src="/web/static/src/img/icons/gtk-save.png"/>
985                         <span>Save As</span>
986                     </button>
987                 </td>
988                 <td>
989                     <button class="button oe-binary-file-clear" type="button" title="Clear">
990                         <img src="/web/static/src/img/icons/STOCK_MISSING_IMAGE.png"/>
991                         <span>Clear</span>
992                     </button>
993                 </td>
994             </tr>
995             </table>
996         </td>
997         <td class="oe-binary-progress" style="display: none" nowrap="true">
998             <img src="/web/static/src/img/throbber.gif" width="16" height="16"/>
999             <b>Uploading ...</b>
1000             <iframe t-att-id="widget.iframe" t-att-name="widget.iframe" style="display: none"> </iframe>
1001         </td>
1002     </tr>
1003     </table>
1004 </t>
1005 <t t-name="WidgetButton">
1006     <button type="button"
1007         t-att-title="widget.help"
1008         style="width: 100%" class="button">
1009         <img t-if="widget.node.attrs.icon" t-att-src="'/web/static/src/img/icons/' + widget.node.attrs.icon + '.png'" width="16" height="16"/>
1010         <span t-if="widget.string"><t t-esc="widget.string"/></span>
1011     </button>
1012 </t>
1013 <t t-name="SearchView">
1014     <form class="oe_forms">
1015         <t t-call="SearchView.render_lines"/>
1016         <div class="oe_search-view-buttons" style="text-align: right;">
1017             <input type="submit" value="Search"/>
1018             <input type="reset" value="Clear"/>
1019             <button class="oe_search-view-custom-filter-btn"><span>Advanced Filter</span></button>
1020             <select class="oe_search-view-filters-management">
1021             </select>
1022         </div>
1023     </form>
1024 </t>
1025 <t t-name="SearchView.managed-filters">
1026     <option value="_filters">-- Filters --</option>
1027     <t t-set="i" t-value="0"/>
1028     <t t-foreach="filters" t-as="filter">
1029         <option t-att-value="'get:' + i"><t t-esc="filter.name"/></option>
1030         <t t-set="i" t-value="i+1"/>
1031     </t>
1032     <option value="_actions">-- Actions --</option>
1033     <option value="save_filter">Save Filter</option>
1034     <option value="manage_filters">Manage Filters</option>
1035 </t>
1036 <t t-name="SearchView.managed-filters.add">
1037     <div>
1038         <p>Filter Name:</p>
1039         <input type="text"/>
1040         <p>(Any existing filter with the same name will be replaced)</p>
1041     </div>
1042 </t>
1043 <t t-name="SearchView.render_lines">
1044     <table class="oe-searchview-render-line" border="0" cellspacing="0" cellpadding="0"
1045            t-foreach="lines" t-as="line">
1046         <tr>
1047             <td t-foreach="line" t-as="widget">
1048                 <t t-raw="widget.render(defaults)"/>
1049             </td>
1050         </tr>
1051     </table>
1052 </t>
1053 <button t-name="SearchView.filter" type="button"
1054         t-att-id="element_id"
1055         t-att-title="attrs.help"
1056         t-att-class="classes.join(' ')"
1057         t-att-autofocus="attrs.default_focus === '1' ? 'autofocus' : undefined">
1058     <img t-if="attrs.icon" t-att-src="'/web/static/src/img/icons/' + attrs.icon + '.png'" width="16" height="16"/>
1059     <br t-if="attrs.icon and attrs.string"/>
1060     <t t-esc="attrs.string"/>
1061 </button>
1062 <span t-name="SearchView.filters" class="filter_label_group"
1063     ><t t-foreach="filters" t-as="filter"
1064         ><t t-raw="filter.render(defaults)"/></t
1065 ></span>
1066 <t t-name="SearchView.field">
1067     <label t-att-class="'oe_label' + (attrs.help ? '_help' : '')"
1068            t-att-title="attrs.help"
1069            t-att-for="element_id">
1070         <t t-esc="attrs.string || attrs.name"/>
1071         <span t-if="attrs.help">?</span>
1072     </label>
1073     <div style="white-space: nowrap;">
1074         <input type="text" size="15" t-att-name="attrs.name"
1075                t-att-autofocus="attrs.default_focus === '1' ? 'autofocus' : undefined"
1076                t-att-id="element_id"
1077                t-att-value="defaults[attrs.name] || ''"/>
1078         <t t-if="filters.length" t-raw="filters.render(defaults)"/>
1079     </div>
1080 </t>
1081 <t t-name="SearchView.date">
1082     <label t-att-class="'oe_label' + (attrs.help ? '_help' : '')"
1083            t-att-title="attrs.help"
1084            t-att-for="element_id">
1085         <t t-esc="attrs.string || attrs.name"/>
1086         <span t-if="attrs.help">?</span>
1087     </label>
1088     <div style="white-space: nowrap;">
1089         <span t-att-id="element_id"></span>
1090         <t t-if="filters.length" t-raw="filters.render(defaults)"/>
1091     </div>
1092 </t>
1093 <t t-name="SearchView.field.selection">
1094     <label t-att-title="attrs.help"
1095            t-att-class="'oe_label' + (attrs.help ? '_help' : '')"
1096            t-att-for="element_id">
1097         <t t-esc="attrs.string || attrs.name"/>
1098         <span t-if="attrs.help">?</span>
1099     </label>
1100     <div style="white-space: nowrap;">
1101         <select t-att-name="attrs.name" t-att-id="element_id"
1102                 t-att-autofocus="attrs.default_focus === '1' || undefined">
1103             <option t-if="prepend_empty"/>
1104             <t t-foreach="attrs.selection" t-as="option">
1105                 <t t-set="selected" t-value="defaults[attrs.name] === option[0]"/>
1106                 <option t-if="selected"
1107                         t-att-value="option_index" selected="selected">
1108                     <t t-esc="option[1]"/>
1109                 </option>
1110                 <option t-if="!selected" t-att-value="option_index">
1111                     <t t-esc="option[1]"/>
1112                 </option>
1113             </t>
1114         </select>
1115         <t t-if="filters.length" t-raw="filters.render(defaults)"/>
1116     </div>
1117 </t>
1118 <t t-name="SearchView.util.expand">
1119     <div t-att-class="'searchview_group ' + (expand == '0' ? 'folded' : 'expanded')"
1120          t-att-id="element_id">
1121         <a t-if="label" class="searchview_group_string" href="#">
1122             <t t-esc="label"/>
1123         </a>
1124         <div class="searchview_group_content">
1125             <t t-raw="content"/>
1126         </div>
1127     </div>
1128 </t>
1129 <t t-name="SearchView.group">
1130     <t t-call="SearchView.util.expand">
1131         <t t-set="expand" t-value="attrs.expand"/>
1132         <t t-set="label" t-value="attrs.string"/>
1133         <t t-set="content">
1134             <t t-call="SearchView.render_lines"/>
1135         </t>
1136     </t>
1137 </t>
1138 <t t-name="SearchView.extended_search">
1139     <t t-call="SearchView.util.expand">
1140         <t t-set="expand" t-value="false"/>
1141         <t t-set="label" t-value="'Advanced Filters'"/>
1142         <t t-set="content">
1143             <div class="searchview_extended_groups_list">
1144             </div>
1145         </t>
1146     </t>
1147 </t>
1148 <t t-name="SearchView.extended_search.group">
1149     <div t-att-id="element_id" class="searchview_extended_group">
1150         <select class="searchview_extended_group_choice">
1151             <option value="any">Any of the following conditions must match</option>
1152             <option value="all">All the following conditions must match</option>
1153             <option value="none">None of the following conditions must match</option>
1154         </select>
1155         <a class="searchview_extended_delete_group"
1156                 href="javascript:void(0)"><span></span></a>
1157         <div class="searchview_extended_propositions_list">
1158         </div>
1159         <a class="searchview_extended_add_proposition" href="javascript:void(0)">
1160             <span>Add condition</span></a>
1161         <div class="oe_adv_filters_and"><span>and</span></div>
1162     </div>
1163 </t>
1164 <t t-name="SearchView.extended_search.proposition">
1165     <div t-att-id="element_id">
1166         <select class="searchview_extended_prop_field">
1167             <t t-foreach="attrs.fields" t-as="field">
1168                 <option t-if="typeof field.store === 'undefined' || field.store || field.fnct_search"
1169                         t-att="{'selected': field === attrs.selected ? 'selected' : null}"
1170                         t-att-value="field.name">
1171                     <t t-esc="field.string"/>
1172                 </option>
1173             </t>
1174         </select>
1175         <select class="searchview_extended_prop_op"/>
1176         <span class="searchview_extended_prop_value"/>
1177         <a class="searchview_extended_delete_prop"
1178                 href="javascript:void(0)"><span> </span></a>
1179     </div>
1180 </t>
1181 <t t-name="SearchView.extended_search.proposition.char">
1182     <input t-att-id="element_id" class="field_char"/>
1183 </t>
1184 <t t-name="SearchView.extended_search.proposition.empty">
1185     <span t-att-id="element_id"></span>
1186 </t>
1187 <t t-name="SearchView.extended_search.proposition.integer">
1188     <input type="number" t-att-id="element_id" class="field_integer" step="1"/>
1189 </t>
1190 <t t-name="SearchView.extended_search.proposition.float">
1191     <input type="number" t-att-id="element_id" class="field_float" step="0.01"/>
1192 </t>
1193 <t t-name="SearchView.extended_search.proposition.boolean">
1194 </t>
1195 <t t-name="SearchView.extended_search.proposition.selection">
1196     <select t-att-id="element_id">
1197         <t t-foreach="field.selection" t-as="element">
1198         <option t-att-value="element[0]"><t t-esc="element[1]"/></option>
1199         </t>
1200     </select>
1201 </t>
1202 <t t-name="DialogWarning">
1203     <table cellspacing="0" cellpadding="0" border="0" class="oe-dialog-warning">
1204     <tr>
1205         <td><img src="/web/static/src/img/warning.png" class="oe-dialog-icon"/></td>
1206         <td>
1207             <p>
1208                 <t t-js="d">
1209                     var message = d.message ? d.message : d.error.data.fault_code;
1210                     d.html_error = context.engine.tools.html_escape(message)
1211                         .replace(/\n/g, '<br/>');
1212                 </t>
1213                 <t t-raw="html_error"/>
1214             </p>
1215         </td>
1216     </tr>
1217     </table>
1218 </t>
1219 <t t-name="DialogTraceback">
1220     <pre><t t-esc="error.message"/></pre>
1221     <hr/>
1222     <pre><t t-esc="error.data.debug"/></pre>
1223 </t>
1224 <t t-name="SelectCreatePopup">
1225     <div t-att-id="element_id">
1226         <table style="width:100%">
1227             <tr style="width:100%">
1228                 <td style="width:100%">
1229                     <div t-att-id="element_id + '_search'" style="width:100%"></div>
1230                 </td>
1231             </tr>
1232             <tr style="width:100%">
1233                 <td style="width:100%">
1234                     <div t-att-id="element_id + '_view_list'" style="width:100%"></div>
1235                 </td>
1236             </tr>
1237         </table>
1238         <div t-att-id="element_id + '_view_form'" style="width:100%"></div>
1239     </div>
1240 </t>
1241 <t t-name="SelectCreatePopup.search.buttons">
1242     <button type="button" class="oe_selectcreatepopup-search-select" disabled="disabled">Select</button>
1243     <button type="button" class="oe_selectcreatepopup-search-close">Cancel</button>
1244 </t>
1245 <t t-name="SelectCreatePopup.form.buttons">
1246     <t t-if="widget.options.disable_multiple_selection">
1247         <button type="button" class="oe_selectcreatepopup-form-save">Save</button>
1248     </t>
1249     <t t-if="! widget.options.disable_multiple_selection">
1250         <button type="button" class="oe_selectcreatepopup-form-save-new">Save &amp; New</button>
1251         <button type="button" class="oe_selectcreatepopup-form-save">Save &amp; Close</button>
1252     </t>
1253     <button type="button" class="oe_selectcreatepopup-form-close">Cancel</button>
1254 </t>
1255 <t t-name="FormOpenPopup">
1256     <div t-att-id="element_id">
1257         <div t-att-id="element_id + '_view_form'" style="width:100%"></div>
1258     </div>
1259 </t>
1260 <t t-name="FormOpenPopup.form.buttons">
1261     <button type="button" class="oe_formopenpopup-form-save">Save</button>
1262     <button type="button" class="oe_formopenpopup-form-close">Cancel</button>
1263 </t>
1264 <t t-name="ListView.row.frame" t-extend="WidgetFrame">
1265     <t t-jquery="tr">
1266         $(document.createElement('t'))
1267             .append(this.contents())
1268             .attr({
1269                 't-foreach': this.attr('t-foreach'),
1270                 't-as': this.attr('t-as')
1271             })
1272             .replaceAll(this)
1273             .after($(document.createElement('td')).append(
1274                 $(document.createElement('button')).attr({
1275                     'class': 'oe-edit-row-save', 'type': 'button'}).text('Save')))
1276             .before($(document.createElement('td')).append(
1277                 $(document.createElement('button')).attr({
1278                     'class': 'oe-edit-row-cancel', 'type': 'button'}).text('Cancel')))
1279             .unwrap();
1280     </t>
1281 </t>
1282 <t t-name="view_editor">
1283     <table class="oe_view_editor">
1284         <t t-call="view_editor.row"/>
1285     </table>
1286 </t>
1287 <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">
1288     <td class="oe_view_editor_colum"  width="85%">
1289         <table class="oe_view_editor_tree_grid">
1290             <tr>
1291                 <td width="16px" t-att-style="'background-position: ' + 20*rec.level + 'px; padding-left: ' + 20*rec.level + 'px'">
1292                     <img t-if="rec.child_id.length" t-att-id="'parentimg-' + rec.id"
1293                         src="/web/static/src/img/collapse.gif" width="16" height="16" border="0"/>
1294                 </td>
1295                 <td style="cursor: pointer;">
1296                     <a style="text-decoration:none" href="javascript:void(0);"> <t t-esc="rec.name"/> </a>
1297                 </td>
1298             </tr>
1299         </table>
1300     </td>
1301     <td align="left" class="oe_view_editor_colum"  width="15%">
1302         <table  width="100%">
1303             <tr>
1304                 <td width="20%">
1305                     <img t-if="rec.att_list.length"
1306                         id="side-add" src="/web/static/src/img/icons/gtk-add.png" style="cursor: pointer;"/>
1307                 </td>
1308                 <td width="20%">
1309                     <img  id="side-remove" src="/web/static/src/img/icons/gtk-remove.png" style="cursor: pointer;"/>
1310                 </td>
1311                 <td width="20%">
1312                     <img t-if="rec.att_list.length"
1313                         id="side-edit" src="/web/static/src/img/icons/gtk-edit.png" style="cursor: pointer;"/>
1314                 </td>
1315                 <td width="20%">
1316                     <img t-if="rec.att_list.length"
1317                         id="side-up" src="/web/static/src/img/icons/gtk-go-up.png" style="cursor: pointer;"/>
1318                 </td>
1319                 <td width="20%">
1320                     <img t-if="rec.att_list.length"
1321                         id="side-down" src="/web/static/src/img/icons/gtk-go-down.png" style="cursor: pointer;"/>
1322                 </td>
1323             </tr>
1324         </table>
1325     </td>
1326     <t t-if="rec.child_id.length">
1327         <t t-set="data" t-value="rec.child_id"/>
1328         <t t-call="view_editor.row"/>
1329     </t>
1330 </tr>
1331
1332 <t t-name="ExportView">
1333     <a id="exportview" href="javascript: void(0)" style="text-decoration: none;color: #3D3D3D;">Export</a>
1334 </t>
1335 <table t-name="ExportTreeView" class="oe-export"
1336        style="background-color: #F3F3F3;">
1337     <tr>
1338         <td colspan="3">
1339             This wizard will export all data that matches the current search criteria to a CSV file.
1340             You can export all data or only the fields that can be reimported after modification.
1341         </td>
1342     </tr>
1343     <tr>
1344         <td colspan="3">
1345             <label for="import_compat">Export Type:</label>
1346             <select id="import_compat" name="import_compat">
1347                 <option value="yes">Import Compatible Export</option>
1348                 <option value="">Export all Data</option>
1349             </select>
1350
1351             <label for="export_format">Export Formats</label>
1352             <select id="export_format" name="export_format"></select>
1353         </td>
1354     </tr>
1355
1356     <tr>
1357         <th>Available fields</th>
1358         <th/>
1359         <th>
1360             Fields to export
1361             <a style="color: blue; text-decoration: none;" href="#" id="export_new_list">Save fields list</a>
1362             <div id="savenewlist"></div>
1363             <div id="ExistsExportList"></div>
1364         </th>
1365     </tr>
1366     <tr style="height: 400px;">
1367         <td class="oe_export_fields_selector_left">
1368             <div id="left_field_panel">
1369             </div>
1370         </td>
1371         <td class="oe_export_fields_selector_center">
1372             <button id="add_field">Add</button>
1373             <button id="remove_field">Remove</button>
1374             <button id="remove_all_field">Remove All</button>
1375         </td>
1376         <td class="oe_export_fields_selector_right">
1377             <select name="fields_list" id="fields_list"
1378                     multiple="multiple"></select>
1379         </td>
1380     </tr>
1381 </table>
1382
1383
1384 <table t-name="ExportTreeView-Secondary"
1385        id="field-tree-structure" class="oe_export_fields_selector_export"
1386        cellspacing="0" cellpadding="0">
1387     <tr><th class="oe_export_tree_header"> Name </th></tr>
1388     <t t-call="ExportTreeView-Secondary.children"/>
1389 </table>
1390 <tr t-name="ExportTreeView-Secondary.children"
1391     t-foreach="fields" t-as="field"
1392     t-att-id="'treerow-' + field.id" class="oe_export_row">
1393     <td>
1394         <table class="tree_grid" border="0">
1395             <tr class="oe_export_row">
1396                 <t t-foreach="(field.id).split('/')" t-as="level" >
1397                     <t t-if="(field.id).split('/')[0] != level">
1398                         <td width="18">&amp;nbsp;</td>
1399                     </t>
1400                 </t>
1401                 <td valign="top" align="left" style="cursor: pointer;" width="18">
1402                     <t t-if="field.children">
1403                         <t t-if="(field.id).split('/').length != 3">
1404                             <img t-att-id="'parentimg-' + field.id" src="/web/static/src/img/expand.gif" width="16" height="16" border="0"/>
1405                         </t>
1406                     </t>
1407                 </td>
1408                 <td id="tree-column" valign="middle" align="left" style="cursor: pointer;">
1409                     <a t-att-id="'export-' + field.id"  t-att-string="field.string" href="javascript: void(0);" style="text-decoration: none;">
1410                         <t t-esc="field.string"/>
1411                     </a>
1412                 </td>
1413             </tr>
1414         </table>
1415     </td>
1416 </tr>
1417
1418 <t t-name="ExportNewList">
1419     <tr>
1420         <th><label>Save as:</label></th>
1421         <td><input size="10" type="text" id="savelist_name"/></td>
1422         <td><button class="oe_export_button_export" id="add_export_list">Ok</button></td>
1423     </tr>
1424 </t>
1425
1426 <t t-name="Exists.ExportList">
1427     <label for="saved_export_list">Saved exports:</label>
1428
1429     <select id="saved_export_list">
1430         <option></option>
1431         <t t-foreach="existing_exports" t-as="export">
1432             <option t-att-value="export.id"><t t-esc="export.name"/></option>
1433         </t>
1434     </select>
1435     <button class="oe_export_button_export" id="delete_export_list" type="button">Delete</button>
1436 </t>
1437 <t t-name="Change_Pwd">
1438     <form name="change_password_form" class="oe_forms" method="POST">
1439         <table align="center">
1440             <tr>
1441                 <td><label for="old_pwd">Old Password:</label></td>
1442                 <td><input type="password" name="old_pwd"
1443                            minlength="1" autofocus="autofocus"/></td>
1444             </tr>
1445             <tr>
1446             <td><label for="new_password">New Password:</label></td>
1447             <td><input type="password" name="new_password"
1448                        minlength="1" autofocus="autofocus"/></td>
1449             </tr>
1450             <tr>
1451                 <td><label for="confirm_pwd">Confirm Password:</label></td>
1452                 <td><input type="password" name="confirm_pwd"
1453                              minlength="1"/></td>
1454             </tr>
1455             <tr>
1456                 <td colspan="2" align="right"><input type="submit" value="Change Password"/></td>
1457             </tr>
1458         </table>
1459     </form>
1460 </t>
1461
1462 <t t-name="ImportView">
1463     <a id="importview" href="javascript: void(0)" style="text-decoration: none;color: #3D3D3D;">Import</a>
1464 </t>
1465 <t t-name="ImportDataView">
1466 <form name="import_data" id="import_data" action="" method="post" enctype="multipart/form-data"
1467         class="oe-import oe-import-no-result">
1468     <input type="hidden" name="session_id" t-att-value="session.session_id"/>
1469     <h2 class="separator horizontal">1. Import a .CSV file</h2>
1470     <p>Select a .CSV file to import. If you need a sample of file to import,
1471        you should use the export tool with the "Import Compatible" option.
1472     </p>
1473     <p>
1474         <label for="csvfile">CSV File:</label>
1475         <input type="file" id="csvfile" size="50" name="csvfile"/>
1476     </p>
1477     <h2 class="separator horizontal oe-import-result">2. Check your file format</h2>
1478     <div id="result" class="oe-import-result"></div>
1479     <fieldset class="oe-closed oe-import-result">
1480         <legend>Import Options</legend>
1481         <table>
1482             <tr>
1483                 <td colspan="4">
1484                     <label for="file_has_headers">Does your file have titles?</label>
1485                     <input type="checkbox" checked="checked"
1486                            id="file_has_headers"/>
1487                 </td>
1488             </tr>
1489             <tr>
1490                 <td><label for="csv_separator">Separator:</label></td>
1491                 <td><input type="text" name="csvsep" id="csv_separator" value=","/></td>
1492                 <td><label for="csv_delimiter">Delimiter:</label></td>
1493                 <td><input type="text" name="csvdel" id="csv_delimiter" value='"'/></td>
1494             </tr>
1495             <tr>
1496                 <td><label for="csv_encoding">Encoding:</label></td>
1497                 <td>
1498                     <select name="csvcode" id="csv_encoding">
1499                         <option value="utf-8">UTF-8</option>
1500                         <option value="latin1">Latin 1</option>
1501                     </select>
1502                 </td>
1503                 <td><label for="csv_skip" title="For use if CSV files have titles on multiple lines, skips more than a single line during import">
1504                     Lines to skip<sup>?</sup>:</label></td>
1505                 <td><input type="number" id="csv_skip" value="0" min="0"/></td>
1506             </tr>
1507         </table>
1508     </fieldset>
1509 </form>
1510 </t>
1511 <t t-name="ImportView.result">
1512     <table class="oe_import_grid" width="100%" style="margin: 5px 0;">
1513         <tr t-if="headers" class="oe_import_grid-header">
1514             <td t-foreach="headers" t-as="header" class="oe_import_grid-cell">
1515                 <t t-esc="header"/></td>
1516         </tr>
1517         <tr>
1518             <td t-foreach="records[0]" t-as="column">
1519                 <input class="sel_fields" placeholder="--- Don't Import ---"/><span class="oe-m2o-drop-down-button">
1520                         <img src="/web/static/src/img/down-arrow.png" /></span>
1521             </td>
1522         </tr>
1523         <tr t-foreach="records" t-as="record" class="oe_import_grid-row">
1524             <td t-foreach="record" t-as="cell" class="oe_import_grid-cell">
1525                 <t t-esc="cell"/></td>
1526         </tr>
1527     </table>
1528 </t>
1529 <t t-name="ImportView.error">
1530     <p style="white-space:pre-line;">The import failed due to:<t t-esc="error.message"/></p>
1531     <t t-if="error.preview">
1532         <p>Here is a preview of the file we could not import:</p>
1533         <pre><t t-esc="error.preview"/></pre>
1534     </t>
1535 </t>
1536
1537 <t t-name="About-Page">
1538     <div>
1539         <h1>OpenERP Web</h1>
1540         <h3 style="padding:0 5px 5px">Version <t t-esc="version_info.version"/></h3>
1541         <p>
1542             Copyright © 2011-TODAY OpenERP SA. All Rights Reserved.<br />
1543             OpenERP is a trademark of the <a target="_blank" href="http://openerp.com/" style="text-decoration: underline;">OpenERP SA Company</a>.
1544         </p>
1545         <p>
1546             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>
1547         </p>
1548         <br />
1549         <h1>About OpenERP</h1>
1550         <p>
1551             <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
1552             productivity and profit through data integration. It connects, improves and
1553             manages business processes in areas such as sales, finance, supply chain,
1554             project management, production, services, CRM, etc...
1555         </p>
1556         <p>
1557             The system is platform-independent, and can be installed on Windows, Mac OS X,
1558             and various Linux and other Unix-based distributions. Its architecture enables
1559             new functionality to be rapidly created, modifications to be made to a
1560             production system and migration to a new version to be straightforward.
1561         </p>
1562         <p>
1563             Depending on your needs, OpenERP is available through a web or application client.
1564         </p>
1565     </div>
1566 </t>
1567 <t t-name="FieldStatus.content">
1568     <ul class="oe-arrow-list">
1569         <t t-set="size" t-value="widget.to_show.length"/>
1570         <t t-foreach="_.range(size)" t-as="i">
1571             <li t-att-class="widget.to_show[i][0] === widget.selected_value ? 'oe-arrow-list-selected' : ''">
1572                 <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>
1573             </li>
1574         </t>
1575     </ul>
1576 </t>
1577 <t t-name="EmptyComponent">
1578     <div></div>
1579 </t>
1580 </templates>