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