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