[MERGE] from trunk
[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="ui.Header">
6     <header>
7         <t t-raw="__content__"/>
8     </header>
9 </t>
10
11 <t t-name="EmptyComponent">
12     <div></div>
13 </t>
14 <t t-name="Loading">
15     <div class="oe_loading">
16         Loading...
17     </div>
18 </t>
19 <t t-name="Notification">
20     <div class="oe_notification" t-translation="off">
21         <div id="oe_notification_default">
22             <a class="ui-notify-cross ui-notify-close" href="#">x</a>
23             <h1>#{title}</h1>
24             <p>#{text}</p>
25         </div>
26         <div id="oe_notification_alert" class="ui-state-error">
27             <a class="ui-notify-cross ui-notify-close" href="#">x</a>
28             <span style="float:left; margin:2px 5px 0 0;" class="ui-icon ui-icon-alert"></span>
29             <h1>#{title}</h1>
30             <p>#{text}</p>
31         </div>
32     </div>
33 </t>
34 <t t-name="Tipsy.alert">
35     <a class="oe_tooltip_close oe_e">[</a>
36     <span style="float:left; margin:2px 5px 0 0;" class="ui-icon ui-icon-alert ui-state-error"></span>
37     <div class="oe_tooltip_message">
38         <t t-esc="message"/>
39     </div>
40 </t>
41
42 <t t-name="CrashManager.warning">
43     <table cellspacing="0" cellpadding="0" border="0" class="oe_dialog_warning">
44     <tr>
45         <td><img t-att-src='_s + "/web/static/src/img/warning.png"' class="oe_dialog_icon"/></td>
46         <td>
47             <p>
48                 <t t-js="d">
49                     var message = d.message ? d.message : d.error.data.fault_code;
50                     d.html_error = context.engine.tools.html_escape(message)
51                         .replace(/\n/g, '<br/>');
52                 </t>
53                 <t t-raw="html_error"/>
54             </p>
55         </td>
56     </tr>
57     </table>
58 </t>
59 <t t-name="CrashManager.error">
60     <div class="oe_error_detail">
61         <pre><t t-esc="error.message"/></pre>
62         <hr/>
63         <pre><t t-esc="error.data.debug"/></pre>
64     </div>
65 </t>
66
67 <t t-name="Login">
68     <div class="oe_login">
69         <div class="oe_login_bottom"> </div>
70         <div class="oe_login_error_message"/>
71         <div class="oe_login_pane">
72             <div class="oe_login_logo"><img src='/web/static/src/img/logo2.png'/></div>
73             <form action="" method="post">
74                 <div class="oe_login_dbpane" >
75                     Database:
76                     <input name="db" t-att-value="widget.selected_db || ''"/>
77                 </div>
78                 <ul>
79                     <li>Username</li>
80                     <li><input type="text" name="login" t-att-value="widget.selected_login || ''" autofocus="autofocus"/></li>
81                     <li>Password</li>
82                     <li><input type="password" name="password" t-att-value="widget.selected_password || ''"/></li>
83                     <li><button name="submit">Log in</button></li>
84                 </ul>
85             </form>
86             <div class="oe_login_footer">
87                 <a href="#" class="oe_login_manage_db">Manage Databases</a> |
88                 <a href="http://www.openerp.com" target="_blank">Powered by <span>OpenERP</span></a>
89             </div>
90         </div>
91     </div>
92 </t>
93 <t t-name="Login.dblist">
94     <select name="db">
95         <t t-foreach="db_list" t-as="db">
96             <t t-if="selected_db === db">
97                 <option t-att-value="db" selected="true">
98                     <t t-esc="db"/></option>
99             </t>
100             <t t-if="selected_db !== db">
101                 <option t-att-value="db"><t t-esc="db"/></option>
102             </t>
103         </t>
104     </select>
105 </t>
106
107
108 <t t-name="DatabaseManager">
109     <div class="oe_view_manager_view_form">
110         <div class="oe_form">
111             <form id="db_create" name="create_db_form" style="display: block;">
112                 <div class="oe_view_manager oe_view_manager_current">
113                     <div class="oe_view_manager_header" style="padding: 8px;">
114                         <div class="oe_header_row">
115                             <h2 class="oe_view_title">
116                                 <span class="oe_view_title_text oe_breadcrumb_title">Create Database</span>
117                             </h2>
118                             <button type="submit" class="oe_button oe_highlight db_create">Create</button>
119                         </div>
120                     </div>
121                 </div>
122                 <table align="center" class="db_option_table">
123                     <tr>
124                         <td><label for="super_admin_pwd">Master password:</label></td>
125                         <td><input type="password" name="super_admin_pwd" class="required" value="admin" /></td>
126                     </tr>
127                     <tr>
128                         <td><label for="db_name">New database name:</label></td>
129                         <td><input type="text" name="db_name" class="required" matches="^[a-zA-Z][a-zA-Z0-9_-]+$" autofocus="true"/></td>
130                     </tr>
131                     <tr>
132                         <td><label for="demo_data">Load Demonstration data:</label></td>
133                         <td class="oe_form_group_cell">
134                             <span class="oe_form_field oe_form_field_boolean">
135                                 <input type="checkbox" name="demo_data" />
136                             </span>
137                         </td>
138                     </tr>
139                     <tr>
140                         <td><label for="db_lang">Default language:</label></td>
141                         <td class="oe_form_field oe_form_field_selection ">
142                             <select name="db_lang" t-if="widget.lang_list">
143                                 <t t-foreach="widget.lang_list" t-as="lang">
144                                     <option t-att-value="lang[0]" t-att-selected="lang[0] === 'en_US' ? 'selected' : undefined">
145                                         <t t-esc="lang[1]" />
146                                     </option>
147                                 </t>
148                             </select>
149                         </td>
150                     </tr>
151                     <tr>
152                         <td><label for="create_admin_pwd">Admin password:</label></td>
153                         <td><input type="password" name="create_admin_pwd" class="required" /></td>
154                     </tr>
155                     <tr>
156                         <td><label for="create_confirm_pwd">Confirm password:</label></td>
157                         <td><input type="password" name="create_confirm_pwd" class="required" equalTo="input[name=create_admin_pwd]"/></td>
158                     </tr>
159                 </table>
160             </form>
161             <form id="db_drop" name="drop_db_form" style="display: none; ">
162                 <div class="oe_view_manager oe_view_manager_current">
163                     <div class="oe_view_manager_header" style="padding: 8px;">
164                         <div class="oe_header_row">
165                             <h2 class="oe_view_title">
166                                 <span class="oe_view_title_text oe_breadcrumb_title">Drop Database</span>
167                             </h2>
168                             <button type="submit" class="oe_button oe_highlight db_drop">Drop</button>
169                         </div>
170                     </div>
171                 </div>
172                 <table align="center" class="db_option_table">
173                     <tr>
174                         <td><label for="drop_db">Database:</label></td>
175                         <td class="oe_form_field oe_form_field_selection">
176                             <select t-if="widget.db_list" name="drop_db" autofocus="autofocus">
177                                 <t t-foreach="widget.db_list" t-as="db">
178                                     <option t-att-value="db">
179                                         <t t-esc="db" />
180                                     </option>
181                                 </t>
182                             </select>
183                             <input t-if="!widget.db_list" name="drop_db" class="required" type="text" autofocus="autofocus"/>
184                         </td>
185                     </tr>
186                     <tr>
187                         <td><label for="drop_password">Master Password:</label></td>
188                         <td><input type="password" name="drop_pwd" class="required" /></td>
189                     </tr>
190                 </table>
191             </form>
192             <form id="db_backup" name="backup_db_form" target="backup-target" action="/web/database/backup" style="display: none;">
193                 <div class="oe_view_manager oe_view_manager_current">
194                     <div class="oe_view_manager_header" style="padding: 8px;">
195                         <div class="oe_header_row">
196                             <h2 class="oe_view_title">
197                                 <span class="oe_view_title_text oe_breadcrumb_title">Backup Database</span>
198                             </h2>
199                             <button type="submit" class="oe_button oe_highlight db_backup">Backup</button>
200                         </div>
201                     </div>
202                 </div>
203                 <input type="hidden" name="token" />
204                 <table align="center" class="db_option_table">
205                     <tr>
206                         <td><label for="backup_db">Database:</label></td>
207                         <td class="oe_form_field oe_form_field_selection ">
208                             <select t-if="widget.db_list" name="backup_db" autofocus="autofocus">
209                                 <t t-foreach="widget.db_list" t-as="db">
210                                     <option t-att-value="db">
211                                         <t t-esc="db" />
212                                     </option>
213                                 </t>
214                             </select>
215                             <input t-if="!widget.db_list" name="backup_db" class="required" type="text" autofocus="autofocus"/>
216                         </td>
217                     </tr>
218                     <tr>
219                         <td><label for="backup_pwd">Master Password:</label></td>
220                         <td><input type="password" name="backup_pwd" class="required" /></td>
221                     </tr>
222                 </table>
223             </form>
224             <form id="db_restore" name="restore_db_form" style="display: none; ">
225                 <div class="oe_view_manager oe_view_manager_current">
226                     <div class="oe_view_manager_header" style="padding: 8px;">
227                         <div class="oe_header_row">
228                             <h2 class="oe_view_title">
229                                 <span class="oe_view_title_text oe_breadcrumb_title">Restore Database</span>
230                             </h2>
231                             <button type="submit" class="oe_button oe_highlight db_restore">Restore</button>
232                         </div>
233                     </div>
234                 </div>
235                 <table align="center" class="db_option_table">
236                     <tr>
237                         <td><label for="restore_db">File:</label></td>
238                         <td><input type="file" name="db_file" class="required" autofocus="autofocus"/></td>
239                     </tr>
240                     <tr>
241                         <td><label for="restore_pwd">Master Password:</label></td>
242                         <td><input type="password" name="restore_pwd" class="required"/></td>
243                     </tr>
244                     <tr>
245                         <td><label for="new_db">New database name:</label></td>
246                         <td><input type="text" name="new_db" class="required"/></td>
247                     </tr>
248                 </table>
249             </form>
250             <form id="db_change_password" name="change_pwd_form" style="display: none;">
251                 <div class="oe_view_manager oe_view_manager_current">
252                     <div class="oe_view_manager_header" style="padding: 8px;">
253                         <div class="oe_header_row">
254                             <h2 class="oe_view_title">
255                                 <span class="oe_view_title_text oe_breadcrumb_title">Change Master Password</span>
256                             </h2>
257                             <button type="submit" class="oe_button oe_highlight db-change-password">Change Password</button>
258                         </div>
259                     </div>
260                 </div>
261                 <table align="center" class="db_option_table">
262                     <tr>
263                         <td><label for="old_pwd">Master password:</label></td>
264                         <td><input type="password" name="old_pwd" class="required" minlength="1" autofocus="autofocus"/></td>
265                     </tr>
266                     <tr>
267                         <td><label for="new_pwd">New master password:</label></td>
268                         <td><input type="password" name="new_pwd" class="required" minlength="1"/></td>
269                     </tr>
270                     <tr>
271                         <td><label for="confirm_pwd">Confirm new master password:</label></td>
272                         <td><input type="password" name="confirm_pwd" class="required" equalTo="input[name=new_pwd]" minlength="1"/> </td>
273                     </tr>
274                 </table>
275             </form>
276         </div>
277     </div>
278 </t>
279 <t t-name="DatabaseManager.user_menu">
280     <span class="oe_right">
281          <a id="back-to-login" href="#"><span class="oe_topbar_item oe_topbar_name">Back to Login</span></a>
282     </span>
283 </t>
284 <t t-name="DatabaseManager.menu">
285     <div class="oe_secondary_menu_section">Database Management</div>
286     <ul class="oe_secondary_submenu">
287         <li><a href="#db_create">Create</a></li>
288         <li><a href="#db_drop">Drop</a></li>
289         <li><a href="#db_backup">Backup</a></li>
290         <li><a href="#db_restore">Restore</a></li>
291         <li><a href="#db_change_password">Password</a></li>
292     </ul>
293 </t>
294
295 <t t-name="ChangePassword">
296     <form name="change_password_form" method="POST">
297         <table align="center">
298             <tr>
299                 <td><label for="old_pwd">Old Password:</label></td>
300                 <td><input type="password" name="old_pwd"
301                            minlength="1" autofocus="autofocus"/></td>
302             </tr>
303             <tr>
304             <td><label for="new_password">New Password:</label></td>
305             <td><input type="password" name="new_password"
306                        minlength="1"/></td>
307             </tr>
308             <tr>
309                 <td><label for="confirm_pwd">Confirm Password:</label></td>
310                 <td><input type="password" name="confirm_pwd"
311                              minlength="1"/></td>
312             </tr>
313             <tr>
314                 <td colspan="2" align="right"><button class="oe_button">Change Password</button></td>
315             </tr>
316         </table>
317     </form>
318 </t>
319
320 <t t-name="Menu">
321     <ul class="oe_menu" t-if="widget.data">
322         <li t-foreach="widget.data.data.children" t-as="menu">
323             <t t-call="Menu.link"/>
324         </li>
325     </ul>
326 </t>
327 <t t-name="Menu.more">
328     <li class="oe_menu_more_container">
329         <span class="oe_topbar_item oe_menu_more_link oe_dropdown_toggle oe_dropdown_arrow">
330             More
331             <ul class="oe_menu_more oe_dropdown_menu"/>
332         </span>
333     </li>
334 </t>
335 <t t-name="Menu.secondary">
336     <div t-foreach="widget.data.data.children" t-as="menu" style="display: none" class="oe_secondary_menu" t-att-data-menu-parent="menu.id">
337         <t t-foreach="menu.children" t-as="menu">
338             <div class="oe_secondary_menu_section">
339                 <t t-esc="menu.name"/>
340                 <!--
341                     Shall the section be still clickable ?
342                     <t t-call="Menu.link"/>
343                 -->
344             </div>
345             <t t-call="Menu.secondary.submenu"/>
346         </t>
347     </div>
348 </t>
349 <t t-name="Menu.secondary.submenu">
350     <ul t-if="menu.children.length" class="oe_secondary_submenu">
351         <li t-foreach="menu.children" t-as="menu">
352             <t t-call="Menu.link"/>
353             <!--<span class="oe_menu_label">8</span>-->
354             <t t-call="Menu.secondary.submenu"/>
355         </li>
356     </ul>
357 </t>
358 <t t-name="Menu.link">
359     <a t-attf-href="#menu_id=#{menu.id}&amp;action=#{menu.action ? menu.action.split(',')[1] : ''}"
360         t-att-class="menu.children.length ? 'oe_menu_toggler' : 'oe_menu_leaf'"
361         t-att-data-menu="menu.id"
362         t-att-data-action-model="menu.action ? menu.action.split(',')[0] : ''"
363         t-att-data-action-id="menu.action ? menu.action.split(',')[1] : ''">
364         <t t-esc="menu.name"/>
365         <t t-if="menu.needaction_enabled and menu.needaction_counter">
366             <div class="oe_tag oe_tag_dark oe_menu_counter">
367                 <t t-esc="menu.needaction_counter"/>
368             </div>
369         </t>
370     </a>
371 </t>
372
373 <t t-name="UserMenu">
374     <span class="oe_user_menu oe_topbar_item oe_dropdown_toggle oe_dropdown_arrow">
375         <img class="oe_topbar_avatar" t-att-data-default-src="_s + '/web/static/src/img/user_menu_avatar.png'"/>
376         <span class="oe_topbar_name"/>
377         <ul class="oe_dropdown_menu">
378             <li><a href="#" data-menu="about">About OpenERP</a></li>
379             <li><a href="#" data-menu="settings">Preferences</a></li>
380             <li><a href="#" data-menu="logout">Log out</a></li>
381         </ul>
382     </span>
383 </t>
384 <t t-name="UserMenu.about">
385
386     <div class="oe_about">
387       <a class="oe_activate_debug_mode oe_right" href="?debug" style="background-color: white; padding:2px 6px; border-radius: 10px;">Activate the developer mode</a>
388       <img class="oe_logo" src="/web/static/src/img/logo2.png"/>
389       <h3>Version <t t-esc="version_info.version"/></h3>
390
391       <div class="oe_bottom">
392         <p>Copyright Â© 2004-TODAY OpenERP SA. All Rights Reserved.<br />
393             OpenERP is a trademark of the <a target="_blank" href="http://openerp.com/" style="text-decoration: underline;">OpenERP SA Company</a>.</p>
394         <p>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></p>
395         <p>For more information visit <a target="_blank" href="http://openerp.com/" style="text-decoration: underline;">OpenERP.com</a></p>
396       </div>
397     </div>
398
399 </t>
400
401 <t t-name="WebClient">
402     <div class="openerp openerp_webclient_container">
403     <table class="oe_webclient">
404         <tr>
405             <td colspan="2" class="oe_topbar">
406                 <div class="oe_menu_placeholder"/>
407                 <div class="oe_user_menu_placeholder"/>
408                 <div class="oe_systray"/>
409             </td>
410         </tr>
411         <tr>
412             <td class="oe_leftbar" valign="top">
413                 <a class="oe_logo" href="#"><img t-att-src='_s + "/web/static/src/img/logo.png"'/></a>
414                 <div class="oe_secondary_menus_container"/>
415                 <div class="oe_footer">
416                     Powered by <a href="http://www.openerp.com" target="_blank"><span>Open</span>ERP</a>
417                 </div>
418             </td>
419             <td class="oe_application">
420             </td>
421         </tr>
422     </table>
423     </div>
424 </t>
425
426 <t t-name="EmbedClient">
427     <div class="openerp">
428         <div class="oe_application"></div>
429     </div>
430 </t>
431
432 <t t-name="ViewManager">
433     <div class="oe_view_manager">
434         <table class="oe_view_manager_header">
435             <col width="20%"/>
436             <col width="35%"/>
437             <col width="15%"/>
438             <col width="30%"/>
439             <tr class="oe_header_row oe_header_row_top">
440                 <td colspan="2">
441                         <h2 class="oe_view_title" t-if="widget.flags.display_title !== false">
442                             <span class="oe_view_title_text oe_breadcrumb_title"/>
443                         </h2>
444                 </td>
445                 <td colspan="2">
446                         <div class="oe_view_manager_view_search" t-opentag="true"/>
447                 </td>
448             </tr>
449             <tr class="oe_header_row">
450                 <td>
451                         <div class="oe_view_manager_buttons"/>
452                 </td>
453                 <td colspan="2">
454                         <div class="oe_view_manager_sidebar"/>
455                 </td>
456                 <td>
457                     <ul class="oe_view_manager_switch oe_button_group oe_right">
458                         <t t-if="widget.views_src.length > 1" t-foreach="widget.views_src" t-as="view">
459                           <li class="oe_e"><a t-attf-class="oe_vm_switch_#{view.view_type}" t-att-data-view-type="view.view_type" t-att-title="_t('Switch to ') + (view.label || view.view_type)">
460                             </a></li>
461                         </t>
462                     </ul>
463                     <div class="oe_view_manager_pager oe_right"/>
464                 </td>
465             </tr>
466         </table>
467
468         <div class="oe_view_manager_body">
469             <t t-foreach="widget.views_src" t-as="view">
470                 <div t-attf-class="oe_view_manager_view_#{view.view_type}"/>
471             </t>
472         </div>
473     </div>
474 </t>
475
476 <t t-name="ViewManagerAction" t-extend="ViewManager">
477     <t t-jquery="h2.oe_view_title" t-operation="before">
478         <select t-if="widget.session.debug" class="oe_debug_view"/>
479     </t>
480 </t>
481 <t t-name="ViewManagerDebug">
482     <option value="">Debug View#<t t-esc="view.fields_view.view_id"/></option>
483     <option t-if="view_manager.active_view === 'form'" value="perm_read" data-views="form,page">View Log (perm_read)</option>
484     <option t-if="view_manager.active_view === 'form'" value="toggle_layout_outline">Toggle Form Layout Outline</option>
485     <option value="tests">JS Tests</option>
486     <option value="fields">View Fields</option>
487     <option value="fvg">Fields View Get</option>
488     <option value="manage_filters">Manage Filters</option>
489     <t t-if="view_manager.session.uid === 1">
490         <option value="translate">Technical translation</option>
491         <option value="manage_views">Manage Views</option>
492         <option value="edit" data-model="ir.ui.view" t-att-data-id="view.fields_view.view_id">Edit <t t-esc="_.str.capitalize(view.fields_view.type)"/>View</option>
493         <option t-if="view_manager.searchview" value="edit" data-model="ir.ui.view" t-att-data-id="view_manager.searchview.view_id">Edit SearchView</option>
494         <option t-if="view_manager.action" value="edit" t-att-data-model="view_manager.action.type" t-att-data-id="view_manager.action.id">Edit Action</option>
495         <option value="edit_workflow">Edit Workflow</option>
496         <option value="print_workflow">Print Workflow</option>
497     </t>
498 </t>
499 <t t-name="ViewManagerDebugViewLog">
500     <div class="oe_debug_view_log">
501         <label>ID:</label>
502         <span><t t-esc="perm.id"/></span>
503
504         <label>XML ID:</label>
505         <span><t t-esc="perm.xmlid"/></span>
506
507         <label>Creation User:</label>
508         <span><t t-esc="format(perm.create_uid, { 'type' : 'many2one' }, '/')"/></span>
509
510         <label>Creation Date:</label>
511         <span><t t-esc="format(perm.create_date, { 'type' : 'datetime' }, '/')"/></span>
512
513         <label>Latest Modification by:</label>
514         <span><t t-esc="format(perm.write_uid, { 'type' : 'many2one' }, '/')"/></span>
515
516         <label>Latest Modification Date:</label>
517         <span><t t-esc="format(perm.write_date, { 'type' : 'datetime' }, '/')"/></span>
518     </div>
519 </t>
520 <t t-name="ViewPager">
521     <div class="oe_pager_value">
522         <t t-raw="__content__"/>
523     </div>
524     <ul class="oe_pager_group">
525         <!--
526         <button class="oe_button oe_button_pager" type="button" data-pager-action="first">
527             <img t-att-src='_s + "/web/static/src/img/pager_first.png"'/>
528         </button>
529         -->
530         <li>
531             <a class="oe_i" type="button" data-pager-action="previous">(</a>
532         </li>
533         <li>
534             <a class="oe_i" type="button" data-pager-action="next">)</a>
535         </li>
536         <!--
537         <button class="oe_button oe_button_pager" type="button" data-pager-action="last">
538             <img t-att-src='_s + "/web/static/src/img/pager_last.png"'/>
539         </button>
540         -->
541     </ul>
542 </t>
543
544 <t t-name="Sidebar">
545     <div class="oe_sidebar">
546         <t t-foreach="widget.sections" t-as="section">
547             <div class="oe_form_dropdown_section">
548                 <button class="oe_dropdown_toggle oe_dropdown_arrow">
549                     <t t-if="section.name == 'files'" t-raw="widget.items[section.name].length || ''"/>
550                     <t t-esc="section.label"/>
551                 </button>
552                 <ul class="oe_dropdown_menu">
553                     <li t-foreach="widget.items[section.name]" t-as="item" t-att-class="item.classname">
554                         <a class="oe_sidebar_action_a" t-att-title="item.title" t-att-data-section="section.name" t-att-data-index="item_index" t-att-href="item.url" target="_blank">
555                             <t t-raw="item.label"/>
556                         </a>
557                         <a t-if="section.name == 'files'" class="oe_sidebar_delete_item" t-att-data-id="item.id" title="Delete this attachment">x</a>
558                     </li>
559                     <li t-if="section.name == 'files'" class="oe_sidebar_add_attachment">
560                         <t t-call="HiddenInputFile">
561                             <t t-set="fileupload_id" t-value="widget.fileupload_id"/>
562                             <t t-set="fileupload_action">/web/binary/upload_attachment</t>
563                             <input type="hidden" name="model" t-att-value="widget.dataset and widget.dataset.model"/>
564                             <input type="hidden" name="id" t-att-value="widget.model_id"/>
565                             <input type="hidden" name="session_id" t-att-value="widget.session.session_id"/>
566                             <span>Add...</span>
567                         </t>
568                     </li>
569                 </ul>
570             </div>
571         </t>
572     </div>
573 </t>
574
575 <t t-name="TreeView">
576     <div class = "tree_header">
577          <select t-if="toolbar" ></select>
578          <button id = "tree_view_collapse">Collapse All</button>
579          <button id = "tree_view_expand">Expand All</button>
580      </div>
581     <table class="oe-treeview-table">
582         <thead>
583             <tr>
584                 <th t-foreach="fields_view" t-as="field"
585                     t-if="!field.attrs.modifiers.tree_invisible">
586                     <t t-esc="field_value.attrs.string || fields[field.attrs.name].string" />
587                 </th>
588             </tr>
589         </thead>
590         <tbody>
591         </tbody>
592     </table>
593 </t>
594 <tr t-name="TreeView.rows"
595         t-foreach="records" t-as="record"
596         t-att-id="'treerow_' + record.id"
597         t-att-data-id="record.id" t-att-data-level="level">
598     <t t-set="children" t-value="record[children_field]"/>
599     <t t-set="class" t-value="children and children.length ? 'treeview-tr' : 'treeview-td'"/>
600     <t t-set="rank" t-value="'oe-treeview-first'"/>
601     <t t-set="style" t-value="'background-position: ' + 19*(level-1) + 'px; padding-left: ' + (4 + 19*(level-1)) + 'px;'"/>
602
603     <td t-foreach="fields_view" t-as="field"
604         t-if="!field.attrs.modifiers.tree_invisible"
605         t-att-data-id="record.id"
606         t-att-style="color_for(record) + style "
607         t-attf-class="#{class} #{rank} #{(fields[field.attrs.name].type === 'float') or (fields[field.attrs.name].type === 'integer') ? 'oe_number' : ''}">
608
609         <span t-if="!field.attrs.modifiers.invisible" >
610             <t t-esc="render(record[field.attrs.name], fields[field.attrs.name])" />
611         </span>
612
613         <t t-set="class" t-value="'treeview-td'"/>
614         <t t-set="rank" t-value="''"/>
615         <t t-set="style" t-value="''"/>
616     </td>
617 </tr>
618
619 <table t-name="ListView" class="oe_list_content">
620     <t t-set="columns_count" t-value="visible_columns.length + (options.selectable ? 1 : 0) + (options.deletable ? 1 : 0)"/>
621     <thead>
622         <tr t-if="(!!options.action_buttons and !options.$buttons) or (!!options.pager and !options.$pager)">
623             <th t-att-colspan="columns_count">
624                 <div class="oe_list_buttons"/>
625                 <div class="oe_list_sidebar"/>
626                 <div class="oe_list_pager"/>
627             </th>
628         </tr>
629         <tr t-if="options.header" class="oe_list_header_columns">
630             <t t-foreach="columns" t-as="column">
631                 <th t-if="column.meta">
632                     <t t-esc="column.string"/>
633                 </th>
634             </t>
635             <th t-if="options.selectable" width="1"  >
636                 <input type="checkbox" class="oe_list_record_selector"/>
637             </th>
638             <t t-foreach="columns" t-as="column">
639                 <th t-if="!column.meta and column.invisible !== '1' and !column.reorderable" t-att-data-id="column.id"
640                     t-attf-class="oe_list_header_#{column.widget or column.type} #{((options.sortable and column.tag !== 'button') ? 'oe_sortable' : null)}">
641                     <t t-if="column.tag !== 'button'"><t t-esc="column.string"/></t>
642                 </th>
643             </t>
644             <th t-if="options.deletable" class="oe_list_record_delete" width="13px"/>
645         </tr>
646     </thead>
647     <tfoot>
648         <tr>
649             <td t-if="options.selectable"/>
650             <td t-foreach="aggregate_columns" t-as="column" class="oe_list_footer oe_number"
651                 t-att-data-field="column.id" t-att-title="column.label">
652             </td>
653             <td t-if="options.deletable"/>
654         </tr>
655     </tfoot>
656 </table>
657 <div t-name="ListView.buttons" class="oe_list_buttons">
658     <t t-if="!widget.no_leaf and widget.options.action_buttons !== false and widget.options.addable and widget.is_action_enabled('create')">
659         <button type="button" class="oe_button oe_list_add oe_highlight">
660             <t t-esc="widget.options.addable"/>
661         </button>
662     </t>
663 </div>
664 <t t-name="ListView.pager">
665     <div class="oe_list_pager" t-att-colspan="widget.columns_count">
666         <t t-if="!widget.no_leaf and widget.options.pager !== false" t-call="ViewPager">
667             <span class="oe_list_pager_state">
668             </span>
669         </t>
670     </div>
671 </t>
672 <t t-name="ListView.rows" t-foreach="records.length" t-as="index">
673     <t t-call="ListView.row">
674         <t t-set="record" t-value="records.at(index)"/>
675     </t>
676 </t>
677 <tr t-name="ListView.row"
678         t-att-data-id="record.get('id')"
679         t-att-style="view.style_for(record)">
680     <t t-set="asData" t-value="record.toForm().data"/>
681     <t t-foreach="columns" t-as="column">
682         <td t-if="column.meta"> </td>
683     </t>
684     <th t-if="options.selectable" class="oe_list_record_selector" width="1">
685         <t t-set="checked" t-value="options.select_view_id == record.get('id') ? 'checked' : null"/>
686         <input t-if="options.radio" type="radio" name="radiogroup" t-att-checked="checked"/>
687         <input t-if="!options.radio" type="checkbox" name="radiogroup" t-att-checked="checked"/>
688     </th>
689     <t t-foreach="columns" t-as="column">
690         <t t-set="number" t-value="column.type === 'integer' or column.type == 'float'"/>
691         <t t-set="modifiers" t-value="column.modifiers_for(asData)"/>
692         <td t-if="!column.meta and column.invisible !== '1' and !column.reorderable" t-att-title="column.help"
693             t-attf-class="oe_list_field_cell oe_list_field_#{column.widget or column.type} #{number ? 'oe_number' : ''} #{column.tag === 'button' ? 'oe-button' : ''} #{modifiers.readonly ? 'oe_readonly' : ''} #{modifiers.required ? 'oe_required' : ''}"
694             t-att-data-field="column.id"
695             ><t t-raw="render_cell(record, column)"/></td>
696     </t>
697     <td t-if="options.deletable" class='oe_list_record_delete' width="13px">
698         <button type="button" name="delete" class="oe_i">d</button>
699     </td>
700 </tr>
701 <t t-extend="ListView.buttons">
702     <t t-jquery="button.oe_list_add" t-operation="after">
703         <button class="oe_button oe_list_save oe_highlight"
704                 type="button">Save</button>
705         <span class="oe_alternative">
706             <span class="oe_fade">or</span>
707             <a href="#" class="oe_bold oe_list_discard">Discard</a>
708         </span>
709     </t>
710 </t>
711 <button t-name="ListView.row.button" type="button"
712         t-att-title="widget.string" t-att-disabled="disabled || undefined"
713         t-att-class="disabled ? 'oe_list_button_disabled' : undefined"
714     ><img t-attf-src="#{prefix}/web/static/src/img/icons/#{widget.icon}.png"
715          t-att-alt="widget.string" /></button>
716 <t t-extend="ListView.row">
717     <!-- adds back padding to row being rendered after edition, if necessary
718          (if not deletable add back padding), otherwise the row being added is
719          missing columns
720      -->
721     <t t-jquery="&gt; :last" t-operation="after">
722         <td t-if="edited and !options.deletable" class="oe-listview-padding"/>
723     </t>
724 </t>
725
726 <t t-name="FormView">
727     <div class="oe_formview">
728         <div class="oe_form_buttons"/>
729         <div class="oe_form_sidebar"/>
730         <div class="oe_form_pager"/>
731         <div class="oe_form_container"/>
732     </div>
733 </t>
734 <div t-name="FormView.buttons" class="oe_form_buttons">
735     <t t-if="widget.options.action_buttons !== false">
736         <span class="oe_form_buttons_view">
737             <!-- required for the bounce effect on button -->
738             <div t-if="widget.is_action_enabled('edit')" style="display: inline-block;">
739                 <button type="button" class="oe_button oe_form_button_edit" accesskey="E">Edit</button>
740             </div>
741             <button t-if="widget.is_action_enabled('create')"
742                 type="button" class="oe_button oe_form_button_create" accesskey="C">Create</button>
743         </span>
744         <span class="oe_form_buttons_edit">
745             <button type="button" class="oe_button oe_form_button_save oe_highlight" accesskey="S">Save</button>
746             <span class="oe_fade">or</span>
747             <a href="#" class="oe_bold oe_form_button_cancel" accesskey="D">Discard</a>
748         </span>
749     </t>
750 </div>
751 <t t-name="FormView.pager">
752     <div class="oe_form_pager">
753         <t t-if="widget.options.pager !== false" t-call="ViewPager">
754             <span class="oe_form_pager_state"></span>
755         </t>
756     </div>
757 </t>
758 <form t-name="FormView.set_default">
759     <t t-set="args" t-value="widget.dialog_options.args"/>
760     <table style="width: 100%">
761         <tr>
762             <td>
763                 <label for="formview_default_fields"
764                        class="oe_label oe_align_right">
765                     Default:
766                 </label>
767             </td>
768             <td class="oe_form_required">
769                 <select id="formview_default_fields">
770                     <option value=""/>
771                     <option t-foreach="args.fields" t-as="field"
772                             t-att-value="field.name">
773                         <t t-esc="field.string"/> = <t t-esc="field.displayed"/>
774                     </option>
775                 </select>
776             </td>
777         </tr>
778         <tr t-if="args.conditions.length">
779             <td>
780                 <label for="formview_default_conditions"
781                        class="oe_label oe_align_right">
782                     Condition:
783                 </label>
784             </td>
785             <td>
786                 <select id="formview_default_conditions">
787                     <option value=""/>
788                     <option t-foreach="args.conditions" t-as="cond"
789                             t-att-value="cond.name + '=' + cond.value">
790                         <t t-esc="cond.string"/>=<t t-esc="cond.displayed"/>
791                     </option>
792                 </select>
793             </td>
794         </tr>
795         <tr>
796             <td colspan="2">
797                 <input type="radio" id="formview_default_self"
798                        value="self" name="scope" checked="checked"/>
799                 <label for="formview_default_self" class="oe_label"
800                        style="display: inline;">
801                     Only you
802                 </label>
803                 <br/>
804                 <input type="radio" id="formview_default_all"
805                        value="all" name="scope"/>
806                 <label for="formview_default_all" class="oe_label"
807                        style="display: inline;">
808                     All users
809                 </label>
810             </td>
811         </tr>
812     </table>
813 </form>
814
815 <t t-name="FormRenderingForm">
816     <div t-attf-class="#{classnames}">
817     </div>
818 </t>
819 <t t-name="FormRenderingSheet">
820     <div class="oe_form_sheetbg">
821         <div t-attf-class="oe_form_sheet oe_form_sheet_width #{classnames}">
822         </div>
823     </div>
824 </t>
825 <t t-name="FormRenderingGroup">
826     <t t-if="string" t-call="FormRenderingSeparator"/>
827     <table border="0" cellpadding="0" cellspacing="0" t-attf-class="oe_form_group #{classnames}"/>
828 </t>
829 <t t-name="FormRenderingNotebook">
830     <div class="oe_clear">
831         <ul t-attf-class="oe_notebook #{classnames}">
832             <li t-foreach="pages" t-as="page" t-att-modifiers="page.modifiers">
833                 <a t-attf-href="##{page.id}" t-att-accesskey="page.accesskey">
834                     <t t-esc="page.string"/>
835                 </a>
836             </li>
837         </ul>
838     </div>
839 </t>
840 <t t-name="FormRenderingNotebookPage">
841     <div t-attf-class="oe_notebook_page #{classnames}" t-att-id="id">
842     </div>
843 </t>
844 <t t-name="FormRenderingSeparator">
845     <div t-attf-class="oe_horizontal_separator oe_clear #{classnames}">
846         <t t-esc="string"/>
847     </div>
848 </t>
849 <t t-name="FormRenderingLabel">
850     <label  t-att-for="_for"
851             t-att-title="help"
852             t-attf-class="#{classnames} oe_form_label#{help ? '_help' : ''} oe_align_#{align}">
853         <t t-esc="string"/>
854     </label>
855 </t>
856
857 <t t-name="Widget">
858     Unhandled widget
859     <t t-js="dict">console.warn('Unhandled widget', dict.widget);</t>
860 </t>
861 <t t-name="WidgetLabel.tooltip">
862     <div class="oe_tooltip_string" t-if="widget.string">
863         <t t-esc="widget.node.attrs.string"/> <t t-if="debug and widget.nolabel">(nolabel)</t>
864     </div>
865     <p t-if="widget.node.attrs.help or (widget.field and widget.field.help)" class="oe_tooltip_help"><t t-esc="widget.node.attrs.help || widget.field.help"/></p>
866     <ul t-if="debug" class="oe_tooltip_technical">
867         <li data-item="field" t-if="widget.name">
868             <span class="oe_tooltip_technical_title">Field:</span>
869             <t t-esc="widget.name"/>
870         </li>
871         <li data-item="object" t-if="widget.view and widget.view.fields_view">
872             <span class="oe_tooltip_technical_title">Object:</span>
873             <t t-esc="widget.view.fields_view.model"/>
874         </li>
875         <li data-item="type" t-if="widget.field">
876             <span class="oe_tooltip_technical_title">Type:</span>
877             <t t-esc="widget.field.type"/>
878         </li>
879         <li t-if="widget.node.attrs.widget" data-item="widget">
880             <span class="oe_tooltip_technical_title">Widget:</span>
881             <t t-esc="widget.node.attrs.widget"/>
882         </li>
883         <li t-if="widget.node.attrs.size || (widget.field and widget.field.size)" data-item="size">
884             <span class="oe_tooltip_technical_title">Size:</span>
885             <t t-esc="widget.node.attrs.size || widget.field.size"/>
886         </li>
887         <li t-if="widget.node.attrs.context" data-item="context">
888             <span class="oe_tooltip_technical_title">Context:</span>
889             <t t-esc="widget.node.attrs.context_string"/>
890         </li>
891         <li t-if="widget.node.attrs.domain" data-item="domain">
892             <span class="oe_tooltip_technical_title">Domain:</span>
893             <t t-esc="widget.node.attrs.domain_string"/>
894         </li>
895         <li t-if="widget.node.attrs.modifiers and widget.node.attrs.modifiers != '{}'" data-item="modifiers">
896             <span class="oe_tooltip_technical_title">Modifiers:</span>
897             <t t-esc="widget.node.attrs.modifiers"/>
898         </li>
899         <li t-if="widget.field and widget.field.change_default" data-item="change_default">
900             <span class="oe_tooltip_technical_title">Change default:</span>
901             Yes
902         </li>
903         <li t-if="widget.node.attrs.on_change" data-item="on_change">
904             <span class="oe_tooltip_technical_title">On change:</span>
905             <t t-esc="widget.node.attrs.on_change"/>
906         </li>
907         <li t-if="widget.field and widget.field.relation" data-item="relation">
908             <span class="oe_tooltip_technical_title">Relation:</span>
909             <t t-esc="widget.field.relation"/>
910         </li>
911         <li t-if="widget.field and widget.field.selection" data-item="selection">
912             <span class="oe_tooltip_technical_title">Selection:</span>
913             <ul>
914                 <li t-foreach="widget.field.selection" t-as="option">
915                     [<t t-esc="option[0]"/>]
916                     <t t-if="option[1]"> - </t>
917                     <t t-esc="option[1]"/>
918                 </li>
919             </ul>
920         </li>
921     </ul>
922 </t>
923 <t t-name="FieldChar">
924     <span t-att-class="'oe_form_field '+widget.widget_class" t-att-style="widget.node.attrs.style">
925         <t  t-if="!widget.get('effective_readonly')">
926             <input t-att-type="widget.password ? 'password' : 'text'"
927                 t-att-id="widget.id_for_label"
928                 t-att-tabindex="widget.node.attrs.tabindex"
929                 t-att-autofocus="widget.node.attrs.autofocus"
930                 t-att-placeholder="widget.node.attrs.placeholder"
931                 t-att-maxlength="widget.field.size"
932             /><img class="oe_field_translate oe_input_icon" t-if="widget.field.translate" t-att-src='_s + "/web/static/src/img/icons/terp-translate.png"' width="16" height="16" border="0"/>
933         </t>
934     </span>
935 </t>
936 <t t-name="FieldEmail">
937     <span class="oe_form_field oe_form_field_email" t-att-style="widget.node.attrs.style">
938         <a t-if="widget.get('effective_readonly')" href="#" class="oe_form_uri" target="_blank"/>
939         <t t-if="!widget.get('effective_readonly')">
940             <div>
941                 <input type="text"
942                     t-att-id="widget.id_for_label"
943                     t-att-tabindex="widget.node.attrs.tabindex"
944                     t-att-autofocus="widget.node.attrs.autofocus"
945                     t-att-placeholder="widget.node.attrs.placeholder"
946                 t-att-maxlength="widget.field.size"
947                 />
948             </div>
949         </t>
950     </span>
951 </t>
952 <t t-name="FieldUrl" t-extend="FieldEmail">
953     <t t-jquery="span:first">
954         this.removeClass('oe_form_field_email').addClass('oe_form_field_url');
955     </t>
956 </t>
957 <t t-name="FieldText">
958     <div class="oe_form_field oe_form_field_text" t-att-style="widget.node.attrs.style">
959         <textarea rows="6"
960             t-att-name="widget.name"
961             class="field_text"
962             t-att-tabindex="widget.node.attrs.tabindex"
963             t-att-autofocus="widget.node.attrs.autofocus"
964             t-att-placeholder="! widget.get('effective_readonly') ? widget.node.attrs.placeholder : ''"
965             t-att-maxlength="widget.field.size"
966         ></textarea><img class="oe_field_translate oe_input_icon"
967                         t-if="widget.field.translate and !widget.get('effective_readonly')"
968                         t-att-src='_s + "/web/static/src/img/icons/terp-translate.png"' width="16" height="16" border="0"
969         />
970     </div>
971 </t>
972 <t t-name="FieldTextHtml">
973     <div t-att-class="'oe_form_field oe_form_field_html' + (widget.get('effective_readonly') ? ' oe_form_embedded_html' : '')"
974             t-att-style="widget.node.attrs.style">
975         <t t-if="! widget.get('effective_readonly')">
976             <textarea/>
977         </t>
978     </div>
979 </t>
980 <t t-name="web.datepicker">
981     <span>
982         <t t-set="placeholder" t-value="widget.getParent().node and widget.getParent().node.attrs.placeholder"/>
983         <input type="text" class="oe_datepicker_container" disabled="disabled" style="display: none;"/>
984         <input type="text"
985             t-att-name="widget.name"
986             t-att-placeholder="placeholder"
987             class="oe_datepicker_master"
988         /><img class="oe_input_icon oe_datepicker_trigger" t-att-src='_s + "/web/static/src/img/ui/field_calendar.png"'
989              title="Select date" width="16" height="16" border="0"/>
990     </span>
991 </t>
992 <t t-name="FieldDate">
993     <span class="oe_form_field oe_datepicker_root oe_form_field_date" t-att-style="widget.node.attrs.style"/>
994 </t>
995 <t t-name="FieldDatetime">
996     <span class="oe_form_field oe_datepicker_root oe_form_field_datetime" t-att-style="widget.node.attrs.style"/>
997 </t>
998 <t t-name="FieldSelection">
999     <span class="oe_form_field oe_form_field_selection" t-att-style="widget.node.attrs.style">
1000         <select t-if="!widget.get('effective_readonly')"
1001             t-att-name="widget.name"
1002             t-att-tabindex="widget.node.attrs.tabindex"
1003             t-att-autofocus="widget.node.attrs.autofocus"
1004             t-att-id="widget.id_for_label">
1005                 <t t-foreach="widget.values" t-as="option">
1006                     <option><t t-esc="option[1]"/></option>
1007                 </t>
1008         </select>
1009     </span>
1010 </t>
1011 <t t-name="FieldMany2One">
1012     <span class="oe_form_field oe_form_field_many2one oe_form_field_with_button" t-att-style="widget.node.attrs.style">
1013         <t t-if="widget.get('effective_readonly')">
1014             <a t-if="! widget.options.no_open" href="#" class="oe_form_uri"/>
1015             <span t-if="widget.options.no_open" href="#" class="oe_form_uri"/>
1016             <span class="oe_form_m2o_follow"/>
1017         </t>
1018         <t t-if="!widget.get('effective_readonly')">
1019             <a t-if="! widget.options.no_open" href="#" tabindex="-1"
1020                 class="oe_m2o_cm_button oe_e">/</a>
1021             <div>
1022                 <input type="text"
1023                     t-att-id="widget.id_for_label"
1024                     t-att-tabindex="widget.node.attrs.tabindex"
1025                     t-att-autofocus="widget.node.attrs.autofocus"
1026                     t-att-placeholder="widget.node.attrs.placeholder"
1027                 />
1028                 <span class="oe_m2o_drop_down_button">
1029                     <img t-att-src='_s + "/web/static/src/img/down-arrow.png"'/>
1030                 </span>
1031             </div>
1032         </t>
1033     </span>
1034 </t>
1035 <t t-name="FieldMany2ManyTags">
1036     <div class="oe_form_field oe_tags" t-att-style="widget.node.attrs.style">
1037         <t t-if="! widget.get('effective_readonly')">
1038             <textarea rows="1" style="width: 100%"
1039                 t-att-placeholder="widget.node.attrs.placeholder"></textarea>
1040         </t>
1041     </div>
1042 </t>
1043 <t t-name="FieldMany2ManyTag">
1044     <t t-set="i" t-value="0"/>
1045     <t t-foreach="elements" t-as="el">
1046         <span class="oe_tag" t-att-data-index="i">
1047             <t t-esc="el[1]"/>
1048         </span>
1049         <t t-set="i" t-value="i + 1"/>
1050     </t>
1051 </t>
1052 <t t-name="FieldReference">
1053     <table class="oe_form_field oe_form_field_reference" border="0" cellpadding="0" cellspacing="0" t-att-style="widget.node.attrs.style">
1054     <tr>
1055         <td t-attf-class="oe_form_frame_cell oe_form_selection">
1056             <span t-attf-class="oe_form_view_reference_selection"/>
1057         </td>
1058         <td t-attf-class="oe_form_frame_cell oe_form_many2one" nowrap="true">
1059             <span t-attf-class="oe_form_view_reference_m2o"/>
1060         </td>
1061     </tr>
1062     </table>
1063 </t>
1064 <t t-name="FieldBoolean">
1065     <span class="oe_form_field oe_form_field_boolean" t-att-style="widget.node.attrs.style">
1066         <input type="checkbox"
1067             t-att-id="widget.id_for_label"
1068             t-att-name="widget.name"
1069             t-att-tabindex="widget.node.attrs.tabindex"
1070             t-att-autofocus="widget.node.attrs.autofocus"
1071             class="field_boolean"/>
1072     </span>
1073 </t>
1074 <t t-name="FieldProgressBar">
1075     <span class="oe_form_field oe_form_field_progressbar" t-att-style="widget.node.attrs.style">
1076         <span></span>
1077     </span>
1078 </t>
1079 <t t-name="FieldStatus">
1080     <ul t-att-class="'oe_form_field_status ' + (widget.options.clickable ? 'oe_form_status_clickable' : 'oe_form_status')" t-att-style="widget.node.attrs.style"/>
1081 </t>
1082 <t t-name="FieldStatus.content">
1083     <t t-foreach="widget.selection" t-as="i">
1084         <li t-att-class="i[0] === widget.selected_value ? 'oe_active' : ''" t-att-data-id="i[0]">
1085             <span class="label"><t t-esc="i[1]"/></span>
1086             <!-- are you mit ? -->
1087             <span class="arrow"><span></span></span>
1088         </li>
1089     </t>
1090 </t>
1091 <t t-name="FieldBinaryImage">
1092     <span class="oe_form_field oe_form_field_image" t-att-style="widget.node.attrs.style">
1093         <div class="oe_form_field_image_controls oe_edit_only">
1094             <t t-call="HiddenInputFile">
1095                 <t t-set="fileupload_id" t-value="widget.fileupload_id"/>
1096                 Edit 
1097             </t>
1098             <div class="oe_form_binary_progress" style="display: none">
1099                 <img t-att-src='_s + "/web/static/src/img/throbber.gif"' width="16" height="16"/>
1100                 <b>Uploading ...</b>
1101             </div>
1102         </div>
1103     </span>
1104 </t>
1105 <t t-name="FieldBinaryImage-img">
1106     <img t-att-src='url'
1107         t-att-border="widget.readonly ? 0 : 1"
1108         t-att-name="widget.name"
1109         t-att-width="widget.node.attrs.img_width || widget.node.attrs.width"
1110         t-att-height="widget.node.attrs.img_height || widget.node.attrs.height"
1111     />
1112 </t>
1113 <t t-name="FieldBinaryFile">
1114     <t t-if="!widget.get('effective_readonly')">
1115         <table class="oe_form_field oe_form_field_binary" cellpadding="0" cellspacing="0" border="0" t-att-style="widget.node.attrs.style">
1116         <tr>
1117             <td>
1118                 <input type="text" size="1" readonly="readonly"
1119                     t-att-name="widget.name"
1120                     t-att-tabindex="widget.node.attrs.tabindex"
1121                     t-att-autofocus="widget.node.attrs.autofocus"
1122                     class="field_binary"
1123                 />
1124             </td>
1125             <td class="oe_form_binary" nowrap="true">
1126                 <table cellspacing="0" cellpadding="0" border="0">
1127                 <tr>
1128                     <td>
1129                         <t t-call="HiddenInputFile">
1130                             <t t-set="fileupload_id" t-value="widget.fileupload_id"/>
1131                             <t t-set="fileupload_style">width: 83px;</t>
1132                             <button class="oe_button oe_field_button" type="button">
1133                                 <img t-att-src='_s + "/web/static/src/img/icons/STOCK_DIRECTORY.png"'/>
1134                                 <span>Select</span>
1135                             </button>
1136                         </t>
1137                     </td>
1138                     <td>
1139                         <a class="oe_form_binary_file_save_data">
1140                             <button class="oe_button oe_form_binary_file_save" type="button" title="Save As">
1141                                 <img t-att-src='_s + "/web/static/src/img/icons/gtk-save.png"'/>
1142                                 <span>Save As</span>
1143                             </button>
1144                         </a>
1145                     </td>
1146                     <td>
1147                         <button class="oe_button oe_form_binary_file_clear" type="button" title="Clear">
1148                             <img t-att-src='_s + "/web/static/src/img/icons/STOCK_MISSING_IMAGE.png"'/>
1149                             <span>Clear</span>
1150                         </button>
1151                     </td>
1152                 </tr>
1153                 </table>
1154             </td>
1155             <td class="oe_form_binary_progress" style="display: none" nowrap="true">
1156                 <img t-att-src='_s + "/web/static/src/img/throbber.gif"' width="16" height="16"/>
1157                 <b>Uploading ...</b>
1158             </td>
1159         </tr>
1160         </table>
1161     </t>
1162     <t t-if="widget.get('effective_readonly')">
1163         <span t-att-style="widget.node.attrs.style">
1164             <a href="javascript:void(0)" class="oe_form_uri"/>
1165         </span>
1166     </t>
1167 </t>
1168 <t t-name="HiddenInputFile">
1169     <div t-attf-class="oe_hidden_input_file #{fileupload_class or ''}" t-att-style="fileupload_style">
1170         <form class="oe_form_binary_form" t-att-target="fileupload_id"
1171             method="post" enctype="multipart/form-data" t-att-action="fileupload_action || '/web/binary/upload'">
1172             <input type="hidden" name="session_id" value=""/>
1173             <input type="hidden" name="callback" t-att-value="fileupload_id"/>
1174             <t t-raw="__content__"/>
1175             <input type="file" class="oe_form_binary_file" name="ufile"/>
1176         </form>
1177         <iframe t-att-id="fileupload_id" t-att-name="fileupload_id" style="display: none"/>
1178     </div>
1179 </t>
1180 <t t-name="WidgetButton">
1181     <button type="button" class="oe_button oe_form_button"
1182         t-att-style="widget.node.attrs.style"
1183         t-att-tabindex="widget.node.attrs.tabindex"
1184         t-att-autofocus="widget.node.attrs.autofocus"
1185         t-att-accesskey="widget.node.attrs.accesskey">
1186         <img t-if="widget.node.attrs.icon" t-att-src="_s + widget.node.attrs.icon" width="16" height="16"/>
1187         <span t-if="widget.string"><t t-esc="widget.string"/></span>
1188     </button>
1189 </t>
1190 <t t-name="WidgetButton.tooltip" t-extend="WidgetLabel.tooltip">
1191     <t t-jquery="div.oe_tooltip_string" t-operation="replace">
1192         <div class="oe_tooltip_string" t-if="debug || widget.string">
1193             <t t-if="debug">
1194                 Button
1195                 <t t-if="widget.string">: </t>
1196                 <t t-if="!widget.string"> (no string)</t>
1197             </t>
1198             <t t-esc="widget.string"/>
1199         </div>
1200     </t>
1201     <t t-jquery="ul.oe_tooltip_technical" t-operation="append">
1202         <li t-if="widget.node.attrs.special" data-item="special">
1203             <span class="oe_tooltip_technical_title">Special:</span>
1204             <t t-esc="widget.node.attrs.special"/>
1205         </li>
1206         <t t-set="button_type" t-value="widget.node.attrs.type"/>
1207         <li t-if="button_type" data-item="button_type">
1208             <span class="oe_tooltip_technical_title">Button Type:</span>
1209             <t t-esc="button_type"/>
1210         </li>
1211         <li t-if="button_type === 'object'" data-item="button_method">
1212             <span class="oe_tooltip_technical_title">Method:</span>
1213             <t t-esc="widget.node.attrs.name"/>
1214         </li>
1215         <li t-if="button_type === 'action'" data-item="button_action">
1216             <span class="oe_tooltip_technical_title">Action ID:</span>
1217             <t t-esc="widget.node.attrs.name"/>
1218         </li>
1219     </t>
1220 </t>
1221
1222 <t t-name="AbstractFormPopup.render">
1223     <div>
1224         <table style="width:100%">
1225             <tr style="width:100%">
1226                 <td style="width:100%">
1227                     <div class="oe_popup_search" style="width:100%"></div>
1228                 </td>
1229             </tr>
1230             <tr style="width:100%">
1231                 <td style="width:100%">
1232                     <div class="oe_popup_list" style="width:100%"></div>
1233                 </td>
1234             </tr>
1235         </table>
1236         <div class="oe_popup_form" style="width:100%"></div>
1237     </div>
1238 </t>
1239 <t t-name="SelectCreatePopup.search.buttons">
1240     <t t-if="! widget.options.disable_multiple_selection">
1241         <button type="button" class="oe_button oe_selectcreatepopup-search-select" disabled="disabled">Select</button>
1242         or
1243     </t>
1244     <a class="oe_button oe_selectcreatepopup-search-close oe_bold oe_form_button_cancel" href="javascript:void(0)">Cancel</a>
1245 </t>
1246 <t t-name="AbstractFormPopup.buttons">
1247     <t t-if="! readonly">
1248         <t t-if="! multi_select">
1249             <button type="button" class="oe_button oe_abstractformpopup-form-save oe_highlight">Save</button>
1250         </t>
1251         <t t-if="multi_select">
1252             <button type="button" class="oe_button oe_abstractformpopup-form-save oe_highlight">Save &amp; Close</button>
1253             <button type="button" class="oe_button oe_abstractformpopup-form-save-new oe_highlight">Save &amp; New</button>
1254         </t>
1255         or
1256     </t>
1257     <a class="oe_button oe_abstractformpopup-form-close oe_bold oe_form_button_cancel" href="javascript:void(0)">
1258         <t t-if="! readonly">
1259             Discard
1260         </t>
1261         <t t-if="readonly">
1262             Close
1263         </t>
1264     </a>
1265 </t>
1266
1267 <t t-name="One2Many.viewmanager" t-extend="ViewManager">
1268     <t t-jquery=".oe-view-manager-header">
1269         this.attr('t-if', 'views.length != 1');
1270     </t>
1271 </t>
1272 <t t-name="One2Many.formview" t-extend="FormView">
1273     <t t-jquery=".oe_form_buttons" t-operation="inner">
1274         <button type="button" class="oe_button oe_form_button_create">Add</button>
1275     </t>
1276 </t>
1277 <t t-name="One2Many.listview" t-extend="ListView">
1278     <t t-jquery="thead.ui-widget-header > tr:first">
1279         this.removeAttr('t-if');
1280     </t>
1281
1282     <t t-jquery="tfoot &gt; tr:last-child" t-operation="replace"/>
1283
1284     <t t-jquery="td.oe-actions">
1285         this.removeAttr('t-if');
1286     </t>
1287     <t t-jquery="td.oe-actions" t-operation="prepend">
1288         <h3 class="oe_view_title"><t t-esc="fields_view.arch.attrs.string"/></h3>
1289     </t>
1290 </t>
1291
1292 <div t-name="SearchView" class="oe_searchview">
1293     <div class="oe_searchview_facets"/>
1294     <div class="oe_searchview_clear"/>
1295     <div class="oe_searchview_unfold_drawer" title="Advanced Search..."/>
1296     <div class="oe_searchview_drawer"/>
1297     <button type="button" class="oe_searchview_search"
1298             title="Search Again">Search</button>
1299 </div>
1300
1301 <div t-name="SearchView.InputView"
1302      class="oe_searchview_input"
1303      contenteditable="true"/>
1304 <!-- tabindex: makes div focusable -->
1305 <div t-name="SearchView.FacetView"
1306      class="oe_tag oe_tag_dark oe_searchview_facet"
1307      tabindex="0"
1308     ><span class="oe_facet_remove">x</span
1309     ><span class="oe_facet_category oe_i" t-if="widget.model.has('icon')">
1310         <t t-esc="widget.model.get('icon')"/>
1311     </span
1312     ><span class="oe_facet_category" t-if="!widget.model.has('icon')">
1313         <t t-esc="widget.model.get('category')"/>
1314     </span ><span class="oe_facet_values"
1315 /></div>
1316 <span t-name="SearchView.FacetView.Value" class="oe_facet_value">
1317     <t t-esc="widget.model.get('label')"/>
1318 </span>
1319 <t t-name="SearchView.managed-filters">
1320     <option class="oe_search_filters_title" value="">Filters</option>
1321     <optgroup label="-- Filters --">
1322         <t t-foreach="filters" t-as="filter">
1323             <option t-attf-value="get:#{filter_index}"
1324                     t-att-disabled="filter.disabled and 'disabled'"
1325                     t-att-title="filter.disabled and disabled_filter_message">
1326                 <t t-esc="filter.name"/>
1327             </option>
1328         </t>
1329     </optgroup>
1330     <optgroup label="-- Actions --">
1331         <option value="advanced_filter">Add Advanced Filter</option>
1332         <option value="save_filter">Save Filter</option>
1333         <option value="manage_filters">Manage Filters</option>
1334     </optgroup>
1335 </t>
1336 <t t-name="SearchView.managed-filters.add">
1337     <div>
1338         <p>Filter Name:</p>
1339         <input type="text"/>
1340         <p>(Any existing filter with the same name will be replaced)</p>
1341     </div>
1342 </t>
1343 <t t-name="SearchView.render_lines">
1344     <table class="oe_search_render_line" border="0" cellspacing="0" cellpadding="0"
1345            t-foreach="lines" t-as="line">
1346         <tr>
1347             <td t-foreach="line" t-as="widget" class="oe_searchview_field">
1348                 <t t-raw="widget.render(defaults)"/>
1349             </td>
1350         </tr>
1351     </table>
1352 </t>
1353 <button t-name="SearchView.filter" type="button"
1354         t-att-id="element_id"
1355         t-att-title="attrs.help"
1356         t-att-class="classes.join(' ')"
1357         t-att-style="style"
1358         t-att-autofocus="attrs.default_focus === '1' ? 'autofocus' : undefined">
1359     <img t-att-src="_s + '/web/static/src/img/icons/' + (attrs.icon || 'gtk-home') + '.png'" width="16" height="16"/>
1360     <br t-if="attrs.string"/>
1361     <t t-esc="attrs.string"/>
1362 </button>
1363 <ul t-name="SearchView.filters">
1364     <li t-foreach="widget.filters" t-as="filter"
1365             t-att-title="filter.attrs.string ? filter.attrs.help : undefined">
1366         <t t-esc="filter.attrs.string or filter.attrs.help or filter.attrs.name or 'Ω'"/>
1367     </li>
1368 </ul>
1369 <t t-name="SearchView.filters.facet">
1370     <div class="category oe_filter_category"><t t-esc="facet.get('category')"/></div>
1371
1372     <t t-set="val" t-value="facet.get('json')"/>
1373
1374     <div t-if="!(val instanceof Array)" class="search_facet_input_container">
1375         <t t-esc="facet.get('value')"/>
1376     </div>
1377     <t t-if="val instanceof Array">
1378         <div class="search_facet_input_container"
1379                 t-foreach="facet.get('json')" t-as="filter">
1380             <t t-esc="filter.attrs.string || filter.attrs.name"/>
1381         </div>
1382     </t>
1383
1384     <div class="search_facet_remove VS-icon VS-icon-cancel"/>
1385 </t>
1386 <t t-name="SearchView.field">
1387     <label t-att-class="'oe_label' + (attrs.help ? '_help' : '')"
1388            t-att-title="attrs.help"
1389            t-att-for="element_id"
1390            t-att-style="style">
1391         <t t-esc="attrs.string || attrs.name"/>
1392         <span t-if="attrs.help">?</span>
1393     </label>
1394     <div t-att-style="style">
1395         <input type="text" size="15" t-att-name="attrs.name"
1396                t-att-autofocus="attrs.default_focus === '1' ? 'autofocus' : undefined"
1397                t-att-id="element_id"
1398                t-att-value="defaults[attrs.name] || ''"/>
1399         <t t-if="filters.length" t-raw="filters.render(defaults)"/>
1400     </div>
1401 </t>
1402 <t t-name="SearchView.date">
1403     <label t-att-class="'oe_label' + (attrs.help ? '_help' : '')"
1404            t-att-title="attrs.help"
1405            t-att-for="element_id"
1406            t-att-style="style">
1407         <t t-esc="attrs.string || attrs.name"/>
1408         <span t-if="attrs.help">?</span>
1409     </label>
1410     <div t-att-style="style">
1411         <span t-att-id="element_id"/>
1412         <t t-if="filters.length" t-raw="filters.render(defaults)"/>
1413     </div>
1414 </t>
1415 <t t-name="SearchView.field.selection">
1416     <label t-att-title="attrs.help"
1417            t-att-class="'oe_label' + (attrs.help ? '_help' : '')"
1418            t-att-for="element_id"
1419            t-att-style="style">
1420         <t t-esc="attrs.string || attrs.name"/>
1421         <span t-if="attrs.help">?</span>
1422     </label>
1423     <div t-att-style="style">
1424         <select t-att-name="attrs.name" t-att-id="element_id"
1425                 t-att-autofocus="attrs.default_focus === '1' || undefined">
1426             <option t-if="prepend_empty"/>
1427             <t t-foreach="attrs.selection" t-as="option">
1428                 <t t-set="selected" t-value="defaults[attrs.name] === option[0]"/>
1429                 <option t-if="selected"
1430                         t-attf-selected="selected"
1431                         t-att-value="option_index">
1432                     <t t-esc="option[1]"/>
1433                 </option>
1434                 <option t-if="!selected" t-att-value="option_index">
1435                     <t t-esc="option[1]"/>
1436                 </option>
1437             </t>
1438         </select>
1439         <t t-if="filters.length" t-raw="filters.render(defaults)"/>
1440     </div>
1441 </t>
1442 <t t-name="SearchView.util.expand">
1443     <div t-att-class="'searchview_group ' + (expand == '0' ? 'folded' : 'expanded')">
1444         <a t-if="label" class="searchview_group_string" href="#">
1445             <t t-esc="label"/>
1446         </a>
1447         <div class="searchview_group_content">
1448             <t t-raw="content"/>
1449         </div>
1450     </div>
1451 </t>
1452 <t t-name="SearchView.group">
1453     <t t-call="SearchView.util.expand">
1454         <t t-set="expand" t-value="attrs.expand"/>
1455         <t t-set="label" t-value="attrs.string"/>
1456         <t t-set="content">
1457             <t t-call="SearchView.render_lines"/>
1458         </t>
1459     </t>
1460 </t>
1461 <div t-name="SearchView.Filters" class="oe_searchview_filters oe_searchview_section">
1462
1463 </div>
1464 <div t-name="SearchView.CustomFilters" class="oe_searchview_custom oe_searchview_section">
1465     <div>
1466         <h3><span class="oe_i">M</span> Custom Filters</h3>
1467         <ul class="oe_searchview_custom_list"/>
1468         <div class="oe_searchview_custom">
1469           <h4>Save current filter</h4>
1470           <form>
1471             <p><input id="oe_searchview_custom_input" placeholder="Filter name"/></p>
1472             <p><input id="oe_searchview_custom_public" type="checkbox"/>
1473               <label for="oe_searchview_custom_public">Share with all users</label></p>
1474             <button>Save</button>
1475           </form>
1476         </div>
1477     </div>
1478     <div>
1479     </div>
1480 </div>
1481
1482 <div t-name="SearchView.advanced" class="oe_searchview_advanced">
1483     <h4>Advanced Search</h4>
1484     <form>
1485         <ul>
1486
1487         </ul>
1488         <button class="oe_add_condition button" type="button">Add a condition</button><br/>
1489         <button class="oe_apply" type="submit">Apply</button>
1490     </form>
1491 </div>
1492 <t t-name="SearchView.extended_search.proposition">
1493     <li>
1494         <span class="searchview_extended_prop_or">or</span>
1495         <select class="searchview_extended_prop_field">
1496             <t t-foreach="widget.attrs.fields" t-as="field">
1497                 <option t-att="{'selected': field === widget.attrs.selected ? 'selected' : null}"
1498                         t-att-value="field.name">
1499                     <t t-esc="field.string"/>
1500                 </option>
1501             </t>
1502         </select>
1503         <select class="searchview_extended_prop_op"/>
1504         <span class="searchview_extended_prop_value"/>
1505         <a class="searchview_extended_delete_prop button">x</a>
1506     </li>
1507 </t>
1508 <t t-name="SearchView.extended_search.proposition.char">
1509     <input class="field_char"/>
1510 </t>
1511 <t t-name="SearchView.extended_search.proposition.empty">
1512     <span/>
1513 </t>
1514 <t t-name="SearchView.extended_search.proposition.integer">
1515     <input type="number" class="field_integer" step="1"/>
1516 </t>
1517 <t t-name="SearchView.extended_search.proposition.float">
1518     <input type="number" class="field_float" step="0.01"/>
1519 </t>
1520 <t t-name="SearchView.extended_search.proposition.selection">
1521     <select>
1522         <t t-foreach="widget.field.selection" t-as="element">
1523         <option t-att-value="element[0]"><t t-esc="element[1]"/></option>
1524         </t>
1525     </select>
1526 </t>
1527
1528 <t t-name="ExportView">
1529     <a id="exportview" href="javascript: void(0)" style="text-decoration: none;color: #3D3D3D;">Export</a>
1530 </t>
1531 <table t-name="ExportTreeView" class="oe_export"
1532        style="background-color: #F3F3F3;">
1533     <tr>
1534         <td colspan="3">
1535             This wizard will export all data that matches the current search criteria to a CSV file.
1536             You can export all data or only the fields that can be reimported after modification.
1537         </td>
1538     </tr>
1539     <tr>
1540         <td colspan="3">
1541             <label for="import_compat">Export Type:</label>
1542             <select id="import_compat" name="import_compat">
1543                 <option value="yes">Import Compatible Export</option>
1544                 <option value="">Export all Data</option>
1545             </select>
1546
1547             <label for="export_format">Export Formats</label>
1548             <select id="export_format" name="export_format"></select>
1549         </td>
1550     </tr>
1551
1552     <tr>
1553         <th>Available fields</th>
1554         <th/>
1555         <th>
1556             Fields to export
1557             <a style="color: blue; text-decoration: none;" href="#" id="export_new_list">Save fields list</a>
1558             <div id="savenewlist"></div>
1559             <div id="ExistsExportList"></div>
1560         </th>
1561     </tr>
1562     <tr style="height: 400px;">
1563         <td class="oe_export_fields_selector_left">
1564             <div id="left_field_panel">
1565             </div>
1566         </td>
1567         <td class="oe_export_fields_selector_center">
1568             <!-- TODO: replace ids by 'oe_*' classes -->
1569             <button class="oe_button" id="add_field">Add</button>
1570             <button class="oe_button" id="remove_field">Remove</button>
1571             <button class="oe_button" id="remove_all_field">Remove All</button>
1572         </td>
1573         <td class="oe_export_fields_selector_right">
1574             <select name="fields_list" id="fields_list"
1575                     multiple="multiple"></select>
1576         </td>
1577     </tr>
1578 </table>
1579 <table t-name="ExportTreeView-Secondary"
1580        id="field-tree-structure" class="oe_export_fields_selector_export"
1581        cellspacing="0" cellpadding="0">
1582     <tr><th class="oe_export_tree_header"> Name </th></tr>
1583     <t t-call="ExportTreeView-Secondary.children"/>
1584 </table>
1585 <tr t-name="ExportTreeView-Secondary.children"
1586     t-foreach="fields" t-as="field"
1587     t-att-id="'treerow-' + field.id" class="oe_export_row">
1588     <td>
1589         <table class="tree_grid" border="0">
1590             <tr class="oe_export_row">
1591                 <t t-foreach="(field.id).split('/')" t-as="level" >
1592                     <t t-if="(field.id).split('/')[0] != level">
1593                         <td width="18" t-translation="off">&amp;nbsp;</td>
1594                     </t>
1595                 </t>
1596                 <td valign="top" align="left" style="cursor: pointer;" width="18">
1597                     <t t-if="field.children">
1598                         <t t-if="(field.id).split('/').length != 3">
1599                             <img t-att-id="'parentimg-' + field.id" t-att-src='_s + "/web/static/src/img/expand.gif"' width="16" height="16" border="0"/>
1600                         </t>
1601                     </t>
1602                 </td>
1603                 <td id="tree-column" valign="middle" align="left" style="cursor: pointer;">
1604                     <a t-att-id="'export-' + field.id"  t-att-string="field.string" href="javascript: void(0);" style="text-decoration: none;">
1605                         <t t-esc="field.string"/>
1606                     </a>
1607                 </td>
1608             </tr>
1609         </table>
1610     </td>
1611 </tr>
1612 <t t-name="ExportNewList">
1613     <tr>
1614         <th><label>Save as:</label></th>
1615         <td><input size="10" type="text" id="savelist_name"/></td>
1616         <td><button class="oe_button oe_export_button_export" id="add_export_list">Ok</button></td>
1617     </tr>
1618 </t>
1619 <t t-name="Exists.ExportList">
1620     <label for="saved_export_list">Saved exports:</label>
1621
1622     <select id="saved_export_list">
1623         <option></option>
1624         <t t-foreach="existing_exports" t-as="export">
1625             <option t-att-value="export.id"><t t-esc="export.name"/></option>
1626         </t>
1627     </select>
1628     <button class="oe_button oe_export_button_export" id="delete_export_list" type="button">Delete</button>
1629 </t>
1630
1631 <t t-name="ImportView">
1632     <a id="importview" href="javascript: void(0)" style="text-decoration: none;color: #3D3D3D;">Import</a>
1633 </t>
1634 <t t-name="ImportDataView">
1635 <form name="import_data" id="import_data" action="" method="post" enctype="multipart/form-data"
1636         class="oe_import oe_import_no_result">
1637     <input type="hidden" name="session_id" t-att-value="widget.session.session_id"/>
1638     <h2 class="separator horizontal">1. Import a .CSV file</h2>
1639     <p>Select a .CSV file to import. If you need a sample of file to import,
1640        you should use the export tool with the "Import Compatible" option.
1641     </p>
1642     <p>
1643         <label for="csvfile">CSV File:</label>
1644         <input type="file" id="csvfile" size="50" name="csvfile"/>
1645     </p>
1646     <h2 class="separator horizontal oe_import_result">2. Check your file format</h2>
1647     <div id="result" class="oe_import_result"></div>
1648     <fieldset class="oe_closed oe_import_result">
1649         <legend>Import Options</legend>
1650         <table>
1651             <tr>
1652                 <td colspan="4">
1653                     <label for="file_has_headers">Does your file have titles?</label>
1654                     <input type="checkbox" checked="checked"
1655                            id="file_has_headers"/>
1656                 </td>
1657             </tr>
1658             <tr>
1659                 <td><label for="csv_separator">Separator:</label></td>
1660                 <td><input type="text" name="csvsep" id="csv_separator" value=","/></td>
1661                 <td><label for="csv_delimiter">Delimiter:</label></td>
1662                 <td><input type="text" name="csvdel" id="csv_delimiter" value='"'/></td>
1663             </tr>
1664             <tr>
1665                 <td><label for="csv_encoding">Encoding:</label></td>
1666                 <td>
1667                     <select name="csvcode" id="csv_encoding">
1668                         <option value="utf-8">UTF-8</option>
1669                         <option value="latin1">Latin 1</option>
1670                     </select>
1671                 </td>
1672                 <td><label for="csv_skip" title="For use if CSV files have titles on multiple lines, skips more than a single line during import">
1673                     Lines to skip<sup>?</sup>:</label></td>
1674                 <td><input type="number" id="csv_skip" value="0" min="0"/></td>
1675             </tr>
1676         </table>
1677     </fieldset>
1678 </form>
1679 </t>
1680 <t t-name="ImportView.result">
1681     <table class="oe_import_grid" width="100%" style="margin: 5px 0;">
1682         <tr t-if="headers" class="oe_import_grid-header">
1683             <td t-foreach="headers" t-as="header" class="oe_import_grid-cell">
1684                 <t t-esc="header"/></td>
1685         </tr>
1686         <tr>
1687             <td t-foreach="records[0]" t-as="column">
1688                 <input class="sel_fields" placeholder="--- Don't Import ---"/><span class="oe_m2o_drop_down_button">
1689                         <img t-att-src='_s + "/web/static/src/img/down-arrow.png"' /></span>
1690             </td>
1691         </tr>
1692         <tr t-foreach="records" t-as="record" class="oe_import_grid-row">
1693             <td t-foreach="record" t-as="cell" class="oe_import_grid-cell">
1694                 <t t-esc="cell"/></td>
1695         </tr>
1696     </table>
1697 </t>
1698 <t t-name="ImportView.error">
1699     <p style="white-space:pre;">The import failed due to:<t t-esc="error.message"/></p>
1700     <t t-if="error.preview">
1701         <p>Here is a preview of the file we could not import:</p>
1702         <pre><t t-esc="error.preview"/></pre>
1703     </t>
1704 </t>
1705 <div t-name="Many2ManyKanban.quick_create" class="oe_kanban_quick_create">
1706     <input t-att-placeholder="_t('Type name to search')"/>
1707 </div>
1708 <t t-name="Throbber">
1709     <div>
1710         <div class="oe_blockui_spin" style="height: 50px">
1711         </div>
1712         <br />
1713         <div class="oe_throbber_message" style="color:white"></div>
1714     </div>
1715 </t>
1716 <t t-name="M2ODialog">
1717     <div>
1718         Name: <input class="oe_form_m2o_input_name" type="text"/>
1719     </div>
1720 </t>
1721 <t t-name="M2ODialog.buttons">
1722     <button class="oe_form_m2o_qc_button oe_button oe_highlight">Quick Add</button>
1723     <button class="oe_form_m2o_sc_button oe_button">Add All Info...</button>
1724     <button class="oe_form_m2o_cancel_button oe_button">Cancel</button>
1725 </t>
1726 </templates>