[WIP] Update Menu [More...]
[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_cropdown_toggle oe_cropdown_arrow">
277             More
278             <ul class="oe_menu_more oe_cropdown_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_cropdown_toggle oe_cropdown_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_cropdown_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="33%"/>
403             <col width="33%"/>
404             <col width="34%"/>
405             <tr class="oe_header_row oe_header_row_top">
406                 <td colspan="2">
407                         <h2 class="oe_view_title" t-if="widget.flags.display_title !== false">
408                             <span class="oe_view_title_text"><t t-esc="widget.display_title()"/></span>
409                         </h2>
410                 </td>
411                 <td>
412                         <div class="oe_view_manager_view_search" t-opentag="true"/>
413                 </td>
414             </tr>
415             <tr class="oe_header_row">
416                 <td>
417                         <div class="oe_view_manager_buttons"/>
418                 </td>
419                 <td>
420                         <div class="oe_view_manager_sidebar"/>
421                 </td>
422                 <td>
423                     <ul class="oe_view_manager_switch oe_button_group oe_right">
424                         <t t-if="widget.views_src.length > 2" t-foreach="widget.views_src" t-as="view">
425                           <li t-if="view.view_type != 'form'" 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)">
426                             </a></li>
427                         </t>
428                     </ul>
429                     <div class="oe_view_manager_pager oe_right"/>
430                 </td>
431             </tr>
432         </table>
433
434         <div class="oe_view_manager_body">
435             <t t-foreach="widget.views_src" t-as="view">
436                 <div t-attf-class="oe_view_manager_view_#{view.view_type}"/>
437             </t>
438         </div>
439     </div>
440 </t>
441
442 <t t-name="ViewManagerAction" t-extend="ViewManager">
443     <t t-jquery="h2.oe_view_title" t-operation="before">
444         <select t-if="widget.session.debug" class="oe_debug_view"/>
445     </t>
446 </t>
447 <t t-name="ViewManagerDebug">
448     <option value="">Debug View#<t t-esc="view.fields_view.view_id"/></option>
449     <option t-if="view_manager.active_view === 'form'" value="perm_read" data-views="form,page">View Log (perm_read)</option>
450     <option t-if="view_manager.active_view === 'form'" value="toggle_layout_outline">Toggle Form Layout Outline</option>
451     <option value="fields">View Fields</option>
452     <option value="fvg">Fields View Get</option>
453     <option value="manage_filters">Manage Filters</option>
454     <t t-if="view_manager.session.uid === 1">
455         <option value="manage_views">Manage Views</option>
456         <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>
457         <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>
458         <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>
459         <option value="edit_workflow">Edit Workflow</option>
460     </t>
461 </t>
462 <t t-name="ViewManagerDebugViewLog">
463     <div class="oe_debug_view_log">
464         <label>ID:</label>
465         <span><t t-esc="perm.id"/></span>
466
467         <label>XML ID:</label>
468         <span><t t-esc="perm.xmlid"/></span>
469
470         <label>Creation User:</label>
471         <span><t t-esc="format(perm.create_uid, { 'type' : 'many2one' }, '/')"/></span>
472
473         <label>Creation Date:</label>
474         <span><t t-esc="format(perm.create_date, { 'type' : 'datetime' }, '/')"/></span>
475
476         <label>Latest Modification by:</label>
477         <span><t t-esc="format(perm.write_uid, { 'type' : 'many2one' }, '/')"/></span>
478
479         <label>Latest Modification Date:</label>
480         <span><t t-esc="format(perm.write_date, { 'type' : 'datetime' }, '/')"/></span>
481     </div>
482 </t>
483 <t t-name="ViewPager">
484     <div class="oe_pager_value">
485         <t t-raw="__content__"/>
486     </div>
487     <ul class="oe_pager_group">
488         <!--
489         <button class="oe_button oe_button_pager" type="button" data-pager-action="first">
490             <img t-att-src='_s + "/web/static/src/img/pager_first.png"'/>
491         </button>
492         -->
493         <li>
494             <a class="oe_i" type="button" data-pager-action="previous">(</a>
495         </li>
496         <li>
497             <a class="oe_i" type="button" data-pager-action="next">)</a>
498         </li>
499         <!--
500         <button class="oe_button oe_button_pager" type="button" data-pager-action="last">
501             <img t-att-src='_s + "/web/static/src/img/pager_last.png"'/>
502         </button>
503         -->
504     </ul>
505 </t>
506
507 <t t-name="Sidebar">
508     <div class="oe_sidebar">
509         <t t-foreach="widget.sections" t-as="section">
510             <div class="oe_form_dropdown_section">
511                 <button class="oe_dropdown_toggle"><t t-esc="section.label"/></button>
512                 <ul class="oe_dropdown_menu">
513                     <li t-foreach="widget.items[section.name]" t-as="item" t-att-class="item.classname">
514                         <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">
515                             <t t-raw="item.label"/>
516                         </a>
517                         <a t-if="section.name == 'files'" class="oe_sidebar_delete_item" t-att-data-id="item.id" title="Delete this attachment">x</a>
518                     </li>
519                     <li t-if="section.name == 'files'" class="oe_sidebar_add_attachment">
520                         <t t-call="HiddenInputFile">
521                             <t t-set="fileupload_id" t-value="widget.fileupload_id"/>
522                             <t t-set="fileupload_action">/web/binary/upload_attachment</t>
523                             <input type="hidden" name="model" t-att-value="widget.dataset and widget.dataset.model"/>
524                             <input type="hidden" name="id" t-att-value="widget.model_id"/>
525                             <input type="hidden" name="session_id" t-att-value="widget.session.session_id"/>
526                             <span>Add...</span>
527                         </t>
528                     </li>
529                 </ul>
530             </div>
531         </t>
532     </div>
533 </t>
534
535 <t t-name="TreeView">
536     <select t-if="toolbar" style="width: 30%">
537     </select>
538     <table class="oe-treeview-table">
539         <thead>
540             <tr>
541                 <th t-foreach="fields_view" t-as="field"
542                     t-if="!field.attrs.modifiers.tree_invisible"
543                     class="treeview-header">
544                     <t t-esc="fields[field.attrs.name].string" />
545                 </th>
546             </tr>
547         </thead>
548         <tbody>
549         </tbody>
550     </table>
551 </t>
552 <tr t-name="TreeView.rows"
553         t-foreach="records" t-as="record"
554         t-att-id="'treerow_' + record.id"
555         t-att-data-id="record.id" t-att-data-level="level + 1">
556     <t t-set="children" t-value="record[children_field]"/>
557     <t t-set="class" t-value="children and children.length ? 'treeview-tr' : 'treeview-td'"/>
558     <t t-set="rank" t-value="'oe-treeview-first'"/>
559     <t t-set="style" t-value="'background-position: ' + 19*level + 'px; padding-left: ' + 19*level + 'px;'"/>
560
561     <td t-foreach="fields_view" t-as="field"
562         t-if="!field.attrs.modifiers.tree_invisible"
563         t-att-data-id="record.id"
564         t-att-style="color_for(record) + style "
565         t-attf-class="#{class} #{rank} #{(fields[field.attrs.name].type === 'float') or (fields[field.attrs.name].type === 'integer') ? 'oe_number' : ''}">
566
567         <span t-if="!field.attrs.modifiers.invisible" >
568             <t t-esc="render(record[field.attrs.name], fields[field.attrs.name])" />
569         </span>
570
571         <t t-set="class" t-value="'treeview-td'"/>
572         <t t-set="rank" t-value="''"/>
573         <t t-set="style" t-value="''"/>
574     </td>
575 </tr>
576
577 <table t-name="ListView" class="oe-listview-content">
578     <t t-set="columns_count" t-value="visible_columns.length + (options.selectable ? 1 : 0) + (options.deletable ? 1 : 0)"/>
579     <thead>
580         <tr t-if="(!!options.action_buttons and !options.$buttons) or (!!options.pager and !options.$pager)">
581             <th t-att-colspan="columns_count">
582                 <div class="oe_list_buttons"/>
583                 <div class="oe_list_sidebar"/>
584                 <div class="oe_list_pager"/>
585             </th>
586         </tr>
587         <tr t-if="options.header" class="oe-listview-header-columns">
588             <t t-foreach="columns" t-as="column">
589                 <th t-if="column.meta">
590                     <t t-esc="column.string"/>
591                 </th>
592             </t>
593             <th t-if="options.selectable" width="1"  >
594                 <input type="checkbox" class="all-record-selector"/>
595             </th>
596             <t t-foreach="columns" t-as="column">
597                 <th t-if="!column.meta and column.invisible !== '1'" t-att-data-id="column.id"
598                     t-att-class="((options.sortable and column.tag !== 'button') ? 'oe-sortable' : null)">
599                     <t t-if="column.tag !== 'button'"><t t-esc="column.string"/></t>
600                 </th>
601             </t>
602             <th t-if="options.deletable" width="1"/>
603         </tr>
604     </thead>
605     <tfoot>
606         <tr>
607             <td t-if="options.selectable"/>
608             <td t-foreach="aggregate_columns" t-as="column" class="oe-list-footer oe_number"
609                 t-att-data-field="column.id" t-att-title="column.label">
610             </td>
611             <td t-if="options.deletable"/>
612         </tr>
613     </tfoot>
614 </table>
615 <div t-name="ListView.buttons" class="oe_list_buttons">
616     <t t-if="!widget.no_leaf and widget.options.action_buttons !== false and widget.options.addable">
617         <button type="button" class="oe_button oe_list_add oe_highlight">
618             <t t-esc="widget.options.addable"/>
619         </button>
620         <span class="oe_fade">or</span> <a href="#" class="oe_bold oe_list_button_import">Import</a>
621     </t>
622 </div>
623 <t t-name="ListView.pager">
624     <div class="oe_list_pager" t-att-colspan="widget.columns_count">
625         <t t-if="!widget.no_leaf and widget.options.pager !== false" t-call="ViewPager">
626             <span class="oe-pager-state">
627             </span>
628         </t>
629     </div>
630 </t>
631 <t t-name="ListView.rows" t-foreach="records.length" t-as="index">
632     <t t-call="ListView.row">
633         <t t-set="record" t-value="records.at(index)"/>
634         <t t-set="row_parity" t-value="index_parity"/>
635     </t>
636 </t>
637 <tr t-name="ListView.row" t-att-class="row_parity"
638         t-att-data-id="record.get('id')"
639         t-att-style="view.style_for(record)">
640     <t t-foreach="columns" t-as="column">
641         <td t-if="column.meta">
642
643         </td>
644     </t>
645     <th t-if="options.selectable" class="oe-record-selector" width="1">
646         <t t-set="checked" t-value="options.select_view_id == record.get('id') ? 'checked' : null"/>
647         <input t-if="options.radio" type="radio" name="radiogroup" t-att-checked="checked"/>
648         <input t-if="!options.radio" type="checkbox" name="radiogroup" t-att-checked="checked"/>
649     </th>
650     <t t-foreach="columns" t-as="column">
651         <t t-set="align" t-value="column.type === 'integer' or column.type == 'float'"/>
652         <td t-if="!column.meta and column.invisible !== '1'" t-att-title="column.help"
653             t-att-class="'oe-field-cell' + (align ? ' oe_number' : '')
654                          + (column.tag === 'button' ? ' oe-button' : '')"
655             t-att-data-field="column.id">
656             <t t-raw="render_cell(record, column)"/>
657         </td>
658     </t>
659     <td t-if="options.deletable" class='oe-record-delete' width="1">
660         <button type="button" name="delete" class="oe_i">d</button>
661     </td>
662 </tr>
663
664 <t t-name="ListView.row.save">
665     <td>
666         <button class='oe_i oe-edit-row-save' type='button' name='save'>S</button>
667     </td>
668 </t>
669
670 <t t-name="FormView">
671     <div class="oe_formview">
672         <div class="oe_form_buttons"/>
673         <div class="oe_form_sidebar"/>
674         <div class="oe_form_pager"/>
675         <div class="oe_form_container"/>
676     </div>
677 </t>
678 <div t-name="FormView.buttons" class="oe_form_buttons">
679     <t t-if="widget.options.action_buttons !== false">
680         <span class="oe_form_buttons_view">
681             <button type="button" class="oe_button oe_form_button_edit">Edit</button>
682             <button type="button" class="oe_button oe_form_button_create">Create</button>
683         </span>
684         <span class="oe_form_buttons_edit">
685             <button type="button" class="oe_button oe_form_button_save">Save</button> <span class="oe_fade">or</span> <a href="#" class="oe_bold oe_form_button_cancel">Discard</a>
686         </span>
687     </t>
688 </div>
689 <t t-name="FormView.pager">
690     <div class="oe_form_pager">
691         <t t-if="widget.options.pager !== false" t-call="ViewPager">
692             <span class="oe_pager_index">0</span><span class="oe_pager_separator"> / </span><span class="oe_pager_count">0</span>
693         </t>
694     </div>
695 </t>
696 <form t-name="FormView.set_default">
697     <t t-set="args" t-value="widget.dialog_options.args"/>
698     <table style="width: 100%">
699         <tr>
700             <td>
701                 <label for="formview_default_fields"
702                        class="oe_label oe_align_right">
703                     Default:
704                 </label>
705             </td>
706             <td class="oe_form_required">
707                 <select id="formview_default_fields">
708                     <option value=""/>
709                     <option t-foreach="args.fields" t-as="field"
710                             t-att-value="field.name">
711                         <t t-esc="field.string"/> = <t t-esc="field.displayed"/>
712                     </option>
713                 </select>
714             </td>
715         </tr>
716         <tr t-if="args.conditions.length">
717             <td>
718                 <label for="formview_default_conditions"
719                        class="oe_label oe_align_right">
720                     Condition:
721                 </label>
722             </td>
723             <td>
724                 <select id="formview_default_conditions">
725                     <option value=""/>
726                     <option t-foreach="args.conditions" t-as="cond"
727                             t-att-value="cond.name + '=' + cond.value">
728                         <t t-esc="cond.string"/>=<t t-esc="cond.displayed"/>
729                     </option>
730                 </select>
731             </td>
732         </tr>
733         <tr>
734             <td colspan="2">
735                 <input type="radio" id="formview_default_self"
736                        value="self" name="scope" checked="checked"/>
737                 <label for="formview_default_self" class="oe_label"
738                        style="display: inline;">
739                     Only you
740                 </label>
741                 <br/>
742                 <input type="radio" id="formview_default_all"
743                        value="all" name="scope"/>
744                 <label for="formview_default_all" class="oe_label"
745                        style="display: inline;">
746                     All users
747                 </label>
748             </td>
749         </tr>
750     </table>
751 </form>
752
753 <t t-name="FormRenderingForm">
754     <div t-attf-class="#{classnames}">
755     </div>
756 </t>
757 <t t-name="FormRenderingSheet">
758     <div class="oe_form_sheetbg">
759         <div t-attf-class="oe_form_sheet oe_form_sheet_width #{classnames}">
760         </div>
761     </div>
762 </t>
763 <t t-name="FormRenderingGroup">
764     <t t-if="string" t-call="FormRenderingSeparator"/>
765     <table border="0" cellpadding="0" cellspacing="0" t-attf-class="oe_form_group #{classnames}"/>
766 </t>
767 <t t-name="FormRenderingNotebook">
768     <div>
769         <ul t-attf-class="oe_notebook #{classnames}">
770             <li t-foreach="pages" t-as="page" t-att-modifiers="page.modifiers">
771                 <a t-attf-href="##{page.id}">
772                     <t t-esc="page.string"/>
773                 </a>
774             </li>
775         </ul>
776     </div>
777 </t>
778 <t t-name="FormRenderingNotebookPage">
779     <div t-attf-class="oe_notebook_page #{classnames}" t-att-id="id">
780     </div>
781 </t>
782 <t t-name="FormRenderingSeparator">
783     <div t-attf-class="oe_horizontal_separator #{classnames}">
784         <t t-esc="string"/>
785     </div>
786 </t>
787 <t t-name="FormRenderingLabel">
788     <label  t-att-for="_for"
789             t-att-title="help"
790             t-attf-class="#{classnames} oe_form_label#{help ? '_help' : ''} oe_align_#{align}">
791         <t t-esc="string"/>
792     </label>
793 </t>
794
795 <t t-name="Widget">
796     Unhandled widget
797     <t t-js="dict">console.warn('Unhandled widget', dict.widget);</t>
798 </t>
799 <t t-name="WidgetLabel.tooltip">
800     <div class="oe_tooltip_string" t-if="widget.string">
801         <t t-esc="widget.node.attrs.string"/> <t t-if="debug and widget.nolabel">(nolabel)</t>
802     </div>
803     <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>
804     <ul t-if="debug" class="oe_tooltip_technical">
805         <li data-item="field" t-if="widget.name">
806             <span class="oe_tooltip_technical_title">Field:</span>
807             <t t-esc="widget.name"/>
808         </li>
809         <li data-item="object" t-if="widget.view and widget.view.fields_view">
810             <span class="oe_tooltip_technical_title">Object:</span>
811             <t t-esc="widget.view.fields_view.model"/>
812         </li>
813         <li data-item="type" t-if="widget.field">
814             <span class="oe_tooltip_technical_title">Type:</span>
815             <t t-esc="widget.field.type"/>
816         </li>
817         <li t-if="widget.node.attrs.widget" data-item="widget">
818             <span class="oe_tooltip_technical_title">Widget:</span>
819             <t t-esc="widget.node.attrs.widget"/>
820         </li>
821         <li t-if="widget.node.attrs.size || (widget.field and widget.field.size)" data-item="size">
822             <span class="oe_tooltip_technical_title">Size:</span>
823             <t t-esc="widget.node.attrs.size || widget.field.size"/>
824         </li>
825         <li t-if="widget.node.attrs.context" data-item="context">
826             <span class="oe_tooltip_technical_title">Context:</span>
827             <t t-esc="widget.node.attrs.context_string"/>
828         </li>
829         <li t-if="widget.node.attrs.domain" data-item="domain">
830             <span class="oe_tooltip_technical_title">Domain:</span>
831             <t t-esc="widget.node.attrs.domain_string"/>
832         </li>
833         <li t-if="widget.node.attrs.modifiers and widget.node.attrs.modifiers != '{}'" data-item="modifiers">
834             <span class="oe_tooltip_technical_title">Modifiers:</span>
835             <t t-esc="widget.node.attrs.modifiers"/>
836         </li>
837         <li t-if="widget.field and widget.field.change_default" data-item="change_default">
838             <span class="oe_tooltip_technical_title">Change default:</span>
839             Yes
840         </li>
841         <li t-if="widget.node.attrs.on_change" data-item="on_change">
842             <span class="oe_tooltip_technical_title">On change:</span>
843             <t t-esc="widget.node.attrs.on_change"/>
844         </li>
845         <li t-if="widget.field and widget.field.relation" data-item="relation">
846             <span class="oe_tooltip_technical_title">Relation:</span>
847             <t t-esc="widget.field.relation"/>
848         </li>
849         <li t-if="widget.field and widget.field.selection" data-item="selection">
850             <span class="oe_tooltip_technical_title">Selection:</span>
851             <ul>
852                 <li t-foreach="widget.field.selection" t-as="option">
853                     [<t t-esc="option[0]"/>]
854                     <t t-if="option[1]"> - </t>
855                     <t t-esc="option[1]"/>
856                 </li>
857             </ul>
858         </li>
859     </ul>
860 </t>
861 <t t-name="FieldChar">
862     <span t-att-class="'oe_form_field '+widget.widget_class">
863         <t  t-if="!widget.get('effective_readonly')">
864             <input t-att-type="widget.password ? 'password' : 'text'"
865                 t-att-id="widget.id_for_label"
866                 t-att-tabindex="widget.node.attrs.tabindex"
867                 t-att-autofocus="widget.node.attrs.autofocus"
868                 t-att-placeholder="widget.node.attrs.placeholder"
869             /><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"/>
870         </t>
871     </span>
872 </t>
873 <t t-name="FieldEmail">
874     <span class="oe_form_field oe_form_field_email oe_form_field_with_button">
875         <a t-if="widget.get('effective_readonly')" href="#" class="oe_form_uri"/>
876         <t t-if="!widget.get('effective_readonly')">
877             <div>
878                 <input type="text"
879                     t-att-id="widget.id_for_label"
880                     t-att-tabindex="widget.node.attrs.tabindex"
881                     t-att-autofocus="widget.node.attrs.autofocus"
882                     t-att-placeholder="widget.node.attrs.placeholder"
883                 />
884             </div>
885         </t>
886     </span>
887 </t>
888 <t t-name="FieldUrl" t-extend="FieldEmail">
889     <t t-jquery="span:first">
890         this.removeClass('oe_form_field_email').addClass('oe_form_field_url');
891     </t>
892     <t t-jquery="button.oe_button" t-operation="replace">
893         <button class="oe_button" tabindex="-1" type="button" title="Open this resource">
894             <img t-att-src='_s + "/web/static/src/img/icons/gtk-ok.png"'/>
895         </button>
896     </t>
897 </t>
898 <t t-name="FieldText">
899     <div class="oe_form_field oe_form_field_text">
900         <textarea rows="6"
901             t-att-name="widget.name"
902             class="field_text"
903             t-att-tabindex="widget.node.attrs.tabindex"
904             t-att-autofocus="widget.node.attrs.autofocus"
905             t-att-placeholder="widget.node.attrs.placeholder"
906         ></textarea>
907         <img class="oe_field_translate oe_input_icon" t-if="widget.field.translate"
908             t-att-src='_s + "/web/static/src/img/icons/terp-translate.png"' width="16" height="16" border="0"/>
909     </div>
910 </t>
911 <t t-name="web.datepicker">
912     <span>
913         <t t-set="placeholder" t-value="widget.getParent().node and widget.getParent().node.attrs.placeholder"/>
914         <input type="text" class="oe_datepicker_container" disabled="disabled" style="display: none;"/>
915         <input type="text"
916             t-att-name="widget.name"
917             t-att-placeholder="placeholder"
918             class="oe_datepicker_master"
919         /><img class="oe_input_icon oe_datepicker_trigger" t-att-src='_s + "/web/static/src/img/ui/field_calendar.png"'
920              title="Select date" width="16" height="16" border="0"/>
921     </span>
922 </t>
923 <t t-name="FieldDate">
924     <span class="oe_form_field oe_datepicker_root oe_form_field_date"/>
925 </t>
926 <t t-name="FieldDatetime">
927     <span class="oe_form_field oe_datepicker_root oe_form_field_datetime"/>
928 </t>
929 <t t-name="FieldSelection">
930     <span class="oe_form_field oe_form_field_selection">
931         <select t-if="!widget.get('effective_readonly')"
932             t-att-name="widget.name"
933             t-att-tabindex="widget.node.attrs.tabindex"
934             t-att-autofocus="widget.node.attrs.autofocus"
935             t-att-id="widget.id_for_label">
936                 <t t-foreach="widget.values" t-as="option">
937                     <option><t t-esc="option[1]"/></option>
938                 </t>
939         </select>
940     </span>
941 </t>
942 <t t-name="FieldMany2One">
943     <span class="oe_form_field oe_form_field_many2one oe_form_field_with_button">
944         <a t-if="widget.get('effective_readonly')" href="#" class="oe_form_uri"/>
945         <t t-if="!widget.get('effective_readonly')">
946             <button class="oe_button oe-m2o-cm-button" title="Open Resource">
947                 <img t-att-src='_s + "/web/static/src/img/icons/terp-folder-yellow.png"'/>
948             </button>
949             <div>
950                 <input type="text"
951                     t-att-id="widget.id_for_label"
952                     t-att-tabindex="widget.node.attrs.tabindex"
953                     t-att-autofocus="widget.node.attrs.autofocus"
954                     t-att-placeholder="widget.node.attrs.placeholder"
955                 />
956                 <span class="oe-m2o-drop-down-button">
957                     <img t-att-src='_s + "/web/static/src/img/down-arrow.png"'/>
958                 </span>
959             </div>
960         </t>
961     </span>
962 </t>
963 <t t-name="FieldMany2ManyTags">
964     <div class="oe_form_field oe_form_field_many2manytags">
965         <t t-if="! widget.get('effective_readonly')">
966             <textarea rows="1" style="width: 100%"></textarea>
967         </t>
968     </div>
969 </t>
970 <t t-name="FieldMany2ManyTags.box">
971     <t t-set="i" t-value="0"/>
972     <t t-foreach="elements" t-as="el">
973         <span class="oe_form_field_many2manytags_box" t-att-data-index="i">
974             <t t-esc="el[1]"/>
975         </span>
976         <t t-set="i" t-value="i + 1"/>
977     </t>
978 </t>
979 <t t-name="FieldReference">
980     <table class="oe_form_field oe_form_field_reference oe_form" border="0" cellpadding="0" cellspacing="0">
981     <tr>
982         <td t-attf-class="oe_form_frame_cell oe_form_selection">
983             <span t-attf-class="oe_form_view_reference_selection"/>
984         </td>
985         <td t-attf-class="oe_form_frame_cell oe_form_many2one" nowrap="true">
986             <span t-attf-class="oe_form_view_reference_m2o"/>
987         </td>
988     </tr>
989     </table>
990 </t>
991 <t t-name="FieldBoolean">
992     <span class="oe_form_field oe_form_field_boolean">
993         <input type="checkbox"
994             t-att-id="widget.id_for_label"
995             t-att-name="widget.name"
996             t-att-tabindex="widget.node.attrs.tabindex"
997             t-att-autofocus="widget.node.attrs.autofocus"
998             class="field_boolean"/>
999     </span>
1000 </t>
1001 <t t-name="FieldProgressBar">
1002     <span class="oe_form_field oe_form_field_progressbar" t-opentag="true">
1003         <span></span>
1004     </span>
1005 </t>
1006 <t t-name="FieldStatus.content">
1007     <ul class="oe_form_steps">
1008         <t t-set="size" t-value="widget.to_show.length"/>
1009         <t t-foreach="_.range(size)" t-as="i">
1010             <li t-att-class="widget.to_show[i][0] === widget.selected_value ? 'oe_form_steps_active' : ''">
1011                 <span><t t-esc="widget.to_show[i][1]"/></span>
1012                 <img t-att-src='_s + "/web/static/src/img/form_steps.png"' class="oe_form_steps_arrow" t-if="i &lt; size - 1"/>
1013             </li>
1014         </t>
1015     </ul>
1016     <div class="oe_clear"/>
1017 </t>
1018 <t t-name="FieldBinaryImage">
1019     <span class="oe_form_field oe_form_field_image">
1020         <div class="oe_form_field_image_controls oe_edit_only">
1021             <t t-call="HiddenInputFile">
1022                 <t t-set="fileupload_id" t-value="widget.fileupload_id"/>
1023                 <button class="oe_button" type="button" title="Set Image">
1024                     <img t-att-src='_s + "/web/static/src/img/icons/STOCK_DIRECTORY.png"'/>
1025                 </button>
1026             </t>
1027             <button class="oe_button oe-binary-file-clear" type="button" title="Clear">
1028                 <img t-att-src='_s + "/web/static/src/img/icons/STOCK_MISSING_IMAGE.png"'/>
1029             </button>
1030             <div class="oe-binary-progress" style="display: none">
1031                 <img t-att-src='_s + "/web/static/src/img/throbber.gif"' width="16" height="16"/>
1032                 <b>Uploading ...</b>
1033             </div>
1034         </div>
1035     </span>
1036 </t>
1037 <t t-name="FieldBinaryImage-img">
1038     <img t-att-src='url'
1039         t-att-border="widget.readonly ? 0 : 1"
1040         t-att-name="widget.name"
1041         t-att-width="widget.node.attrs.img_width || widget.node.attrs.width"
1042         t-att-height="widget.node.attrs.img_height || widget.node.attrs.height"
1043     />
1044 </t>
1045 <t t-name="FieldBinaryFile">
1046     <t t-if="!widget.get('effective_readonly')">
1047         <table class="oe_form_field oe_form_field_binary" cellpadding="0" cellspacing="0" border="0">
1048         <tr>
1049             <td>
1050                 <input type="text" size="1" readonly="readonly"
1051                     t-att-name="widget.name"
1052                     t-att-tabindex="widget.node.attrs.tabindex"
1053                     t-att-autofocus="widget.node.attrs.autofocus"
1054                     class="field_binary"
1055                 />
1056             </td>
1057             <td class="oe-binary" nowrap="true">
1058                 <table cellspacing="0" cellpadding="0" border="0">
1059                 <tr>
1060                     <td>
1061                         <t t-call="HiddenInputFile">
1062                             <t t-set="fileupload_id" t-value="widget.fileupload_id"/>
1063                             <t t-set="fileupload_style">width: 83px;</t>
1064                             <button class="oe_button oe_field_button" type="button" title="Set Image">
1065                                 <img t-att-src='_s + "/web/static/src/img/icons/STOCK_DIRECTORY.png"'/>
1066                                 <span>Select</span>
1067                             </button>
1068                         </t>
1069                     </td>
1070                     <td>
1071                         <a class="oe_binary_file_save_data">
1072                             <button class="oe_button oe_binary_file_save" type="button" title="Save As">
1073                                 <img t-att-src='_s + "/web/static/src/img/icons/gtk-save.png"'/>
1074                                 <span>Save As</span>
1075                             </button>
1076                         </a>
1077                     </td>
1078                     <td>
1079                         <button class="oe_button oe-binary-file-clear" type="button" title="Clear">
1080                             <img t-att-src='_s + "/web/static/src/img/icons/STOCK_MISSING_IMAGE.png"'/>
1081                             <span>Clear</span>
1082                         </button>
1083                     </td>
1084                 </tr>
1085                 </table>
1086             </td>
1087             <td class="oe-binary-progress" style="display: none" nowrap="true">
1088                 <img t-att-src='_s + "/web/static/src/img/throbber.gif"' width="16" height="16"/>
1089                 <b>Uploading ...</b>
1090             </td>
1091         </tr>
1092         </table>
1093     </t>
1094     <t t-if="widget.get('effective_readonly')">
1095         <span>
1096             <a href="javascript:void(0)" class="oe_form_uri"/>
1097         </span>
1098     </t>
1099 </t>
1100 <t t-name="HiddenInputFile">
1101     <div t-attf-class="oe_hidden_input_file #{fileupload_class or ''}" t-att-style="fileupload_style">
1102         <form class="oe-binary-form" t-att-target="fileupload_id"
1103             method="post" enctype="multipart/form-data" t-att-action="fileupload_action || '/web/binary/upload'">
1104             <input type="hidden" name="session_id" value=""/>
1105             <input type="hidden" name="callback" t-att-value="fileupload_id"/>
1106             <t t-raw="__content__"/>
1107             <input type="file" class="oe-binary-file" name="ufile"/>
1108         </form>
1109         <iframe t-att-id="fileupload_id" t-att-name="fileupload_id" style="display: none"/>
1110     </div>
1111 </t>
1112 <t t-name="WidgetButton">
1113     <button type="button" class="oe_button oe_form_button"
1114         t-att-tabindex="widget.node.attrs.tabindex"
1115         t-att-autofocus="widget.node.attrs.autofocus">
1116         <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"/>
1117         <span t-if="widget.string"><t t-esc="widget.string"/></span>
1118     </button>
1119 </t>
1120 <t t-name="WidgetButton.tooltip" t-extend="WidgetLabel.tooltip">
1121     <t t-jquery="div.oe_tooltip_string" t-operation="replace">
1122         <div class="oe_tooltip_string" t-if="debug || widget.string">
1123             <t t-if="debug">
1124                 Button
1125                 <t t-if="widget.string">: </t>
1126                 <t t-if="!widget.string"> (no string)</t>
1127             </t>
1128             <t t-esc="widget.string"/>
1129         </div>
1130     </t>
1131     <t t-jquery="ul.oe_tooltip_technical" t-operation="append">
1132         <li t-if="widget.node.attrs.special" data-item="special">
1133             <span class="oe_tooltip_technical_title">Special:</span>
1134             <t t-esc="widget.node.attrs.special"/>
1135         </li>
1136         <t t-set="button_type" t-value="widget.node.attrs.type"/>
1137         <li t-if="button_type" data-item="button_type">
1138             <span class="oe_tooltip_technical_title">Button Type:</span>
1139             <t t-esc="button_type"/>
1140         </li>
1141         <li t-if="button_type === 'object'" data-item="button_method">
1142             <span class="oe_tooltip_technical_title">Method:</span>
1143             <t t-esc="widget.node.attrs.name"/>
1144         </li>
1145         <li t-if="button_type === 'action'" data-item="button_action">
1146             <span class="oe_tooltip_technical_title">Action ID:</span>
1147             <t t-esc="widget.node.attrs.name"/>
1148         </li>
1149     </t>
1150 </t>
1151
1152 <t t-name="TranslateDialog">
1153     <table t-if="widget.view.translatable_fields" class="oe_form oe_translation_form" border="0" cellpadding="0" cellspacing="0" width="100%">
1154     <tr>
1155         <td class="oe_form_separator" width="1%" nowrap="nowrap">
1156             <div class="oe_horizontal_separator">Field</div>
1157         </td>
1158         <th t-foreach="widget.languages" align="left">
1159             <div class="oe_horizontal_separator"><t t-esc="name"/></div>
1160         </th>
1161     </tr>
1162     <tr t-foreach="widget.view.translatable_fields" t-as="field" t-att-data-field="field.name">
1163         <td class="oe_form_group_cell" width="1%" nowrap="nowrap">
1164             <label class="oe_label"><t t-esc="field.node.attrs.string"/>:</label>
1165         </td>
1166         <td t-foreach="widget.languages" t-as="lg" class="oe_form_group_cell">
1167             <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%"/>
1168             <textarea t-if="field.type == 'text'" t-attf-name="#{lg.code}-#{field.name}" data-value="" class="oe_trad_field" style="width: 100%"></textarea>
1169         </td>
1170     </tr>
1171     </table>
1172 </t>
1173
1174 <t t-name="One2Many.viewmanager" t-extend="ViewManager">
1175     <t t-jquery=".oe-view-manager-header">
1176         this.attr('t-if', 'views.length != 1');
1177     </t>
1178 </t>
1179 <t t-name="One2Many.formview" t-extend="FormView">
1180     <t t-jquery=".oe_form_buttons" t-operation="inner">
1181         <button type="button" class="oe_button oe_form_button_create">Add</button>
1182     </t>
1183 </t>
1184 <t t-name="One2Many.listview" t-extend="ListView">
1185     <t t-jquery="thead.ui-widget-header > tr:first">
1186         this.removeAttr('t-if');
1187     </t>
1188
1189     <t t-jquery="tfoot &gt; tr:last-child" t-operation="replace"/>
1190
1191     <t t-jquery="td.oe-actions">
1192         this.removeAttr('t-if');
1193     </t>
1194     <t t-jquery="td.oe-actions" t-operation="prepend">
1195         <h3 class="oe_view_title"><t t-esc="fields_view.arch.attrs.string"/></h3>
1196     </t>
1197 </t>
1198
1199 <div t-name="SearchView" class="oe_searchview">
1200     <div class="oe_searchview_facets"/>
1201     <div class="oe_searchview_clear"/>
1202     <div class="oe_searchview_unfold_drawer"/>
1203     <div class="oe_searchview_drawer"/>
1204 </div>
1205
1206 <div t-name="SearchView.InputView"
1207      class="oe_searchview_input"
1208      contenteditable="true"/>
1209 <!-- tabindex: makes div focusable -->
1210 <div t-name="SearchView.FacetView"
1211      class="oe_searchview_facet"
1212      tabindex="0"
1213     ><span class="oe_facet_remove">x</span
1214     ><span class="oe_facet_category oe_i" t-if="widget.model.has('icon')">
1215         <t t-esc="widget.model.get('icon')"/>
1216     </span
1217     ><span class="oe_facet_category" t-if="!widget.model.has('icon')">
1218         <t t-esc="widget.model.get('category')"/>
1219     </span ><span class="oe_facet_values"
1220 /></div>
1221 <span t-name="SearchView.FacetView.Value" class="oe_facet_value">
1222     <t t-esc="widget.model.get('label')"/>
1223 </span>
1224
1225 <t t-name="SearchView.managed-filters">
1226     <option class="oe-filters-title" value="">Filters</option>
1227     <optgroup label="-- Filters --">
1228         <t t-foreach="filters" t-as="filter">
1229             <option t-attf-value="get:#{filter_index}"
1230                     t-att-disabled="filter.disabled and 'disabled'"
1231                     t-att-title="filter.disabled and disabled_filter_message">
1232                 <t t-esc="filter.name"/>
1233             </option>
1234         </t>
1235     </optgroup>
1236     <optgroup label="-- Actions --">
1237         <option value="advanced_filter">Add Advanced Filter</option>
1238         <option value="save_filter">Save Filter</option>
1239         <option value="add_to_dashboard">Add to Dashboard</option>
1240         <option value="manage_filters">Manage Filters</option>
1241     </optgroup>
1242 </t>
1243 <t t-name="SearchView.managed-filters.add">
1244     <div>
1245         <p>Filter Name:</p>
1246         <input type="text"/>
1247         <p>(Any existing filter with the same name will be replaced)</p>
1248     </div>
1249 </t>
1250 <t t-name="SearchView.add_to_dashboard">
1251     <div class="oe_form">
1252         <p><b>Select Dashboard to add this filter to:</b></p>
1253         <select style="width: 100%; margin-right: 1em;">
1254             <option t-foreach="dashboards" t-as="menu" t-att-value="menu.id" t-att-selected="(menu.id == selected_menu_id) || undefined"><t t-esc="menu.name"/></option>
1255         </select>
1256         <p><b>Title of new Dashboard item:</b></p>
1257         <input type="text" style="width: 100%; margin-right: 1em;"/>
1258     </div>
1259 </t>
1260 <t t-name="SearchView.render_lines">
1261     <table class="oe-searchview-render-line" border="0" cellspacing="0" cellpadding="0"
1262            t-foreach="lines" t-as="line">
1263         <tr>
1264             <td t-foreach="line" t-as="widget" class="oe_searchview_field">
1265                 <t t-raw="widget.render(defaults)"/>
1266             </td>
1267         </tr>
1268     </table>
1269 </t>
1270 <button t-name="SearchView.filter" type="button"
1271         t-att-id="element_id"
1272         t-att-title="attrs.help"
1273         t-att-class="classes.join(' ')"
1274         t-att-style="style"
1275         t-att-autofocus="attrs.default_focus === '1' ? 'autofocus' : undefined">
1276     <img t-att-src="_s + '/web/static/src/img/icons/' + (attrs.icon || 'gtk-home') + '.png'" width="16" height="16"/>
1277     <br t-if="attrs.string"/>
1278     <t t-esc="attrs.string"/>
1279 </button>
1280 <ul t-name="SearchView.filters">
1281     <li t-foreach="widget.filters" t-as="filter"
1282             t-att-title="filter.attrs.string ? filter.attrs.help : undefined">
1283         <t t-esc="filter.attrs.string or filter.attrs.help or filter.attrs.name or 'Ω'"/>
1284     </li>
1285 </ul>
1286 <t t-name="SearchView.filters.facet">
1287     <div class="category oe_filter_category"><t t-esc="facet.get('category')"/></div>
1288
1289     <t t-set="val" t-value="facet.get('json')"/>
1290
1291     <div t-if="!(val instanceof Array)" class="search_facet_input_container">
1292         <t t-esc="facet.get('value')"/>
1293     </div>
1294     <t t-if="val instanceof Array">
1295         <div class="search_facet_input_container"
1296                 t-foreach="facet.get('json')" t-as="filter">
1297             <t t-esc="filter.attrs.string || filter.attrs.name"/>
1298         </div>
1299     </t>
1300
1301     <div class="search_facet_remove VS-icon VS-icon-cancel"/>
1302 </t>
1303 <t t-name="SearchView.field">
1304     <label t-att-class="'oe_label' + (attrs.help ? '_help' : '')"
1305            t-att-title="attrs.help"
1306            t-att-for="element_id"
1307            t-att-style="style">
1308         <t t-esc="attrs.string || attrs.name"/>
1309         <span t-if="attrs.help">?</span>
1310     </label>
1311     <div t-att-style="style">
1312         <input type="text" size="15" t-att-name="attrs.name"
1313                t-att-autofocus="attrs.default_focus === '1' ? 'autofocus' : undefined"
1314                t-att-id="element_id"
1315                t-att-value="defaults[attrs.name] || ''"/>
1316         <t t-if="filters.length" t-raw="filters.render(defaults)"/>
1317     </div>
1318 </t>
1319 <t t-name="SearchView.date">
1320     <label t-att-class="'oe_label' + (attrs.help ? '_help' : '')"
1321            t-att-title="attrs.help"
1322            t-att-for="element_id"
1323            t-att-style="style">
1324         <t t-esc="attrs.string || attrs.name"/>
1325         <span t-if="attrs.help">?</span>
1326     </label>
1327     <div t-att-style="style">
1328         <span t-att-id="element_id"/>
1329         <t t-if="filters.length" t-raw="filters.render(defaults)"/>
1330     </div>
1331 </t>
1332 <t t-name="SearchView.field.selection">
1333     <label t-att-title="attrs.help"
1334            t-att-class="'oe_label' + (attrs.help ? '_help' : '')"
1335            t-att-for="element_id"
1336            t-att-style="style">
1337         <t t-esc="attrs.string || attrs.name"/>
1338         <span t-if="attrs.help">?</span>
1339     </label>
1340     <div t-att-style="style">
1341         <select t-att-name="attrs.name" t-att-id="element_id"
1342                 t-att-autofocus="attrs.default_focus === '1' || undefined">
1343             <option t-if="prepend_empty"/>
1344             <t t-foreach="attrs.selection" t-as="option">
1345                 <t t-set="selected" t-value="defaults[attrs.name] === option[0]"/>
1346                 <option t-if="selected"
1347                         t-attf-selected="selected"
1348                         t-att-value="option_index">
1349                     <t t-esc="option[1]"/>
1350                 </option>
1351                 <option t-if="!selected" t-att-value="option_index">
1352                     <t t-esc="option[1]"/>
1353                 </option>
1354             </t>
1355         </select>
1356         <t t-if="filters.length" t-raw="filters.render(defaults)"/>
1357     </div>
1358 </t>
1359 <t t-name="SearchView.util.expand">
1360     <div t-att-class="'searchview_group ' + (expand == '0' ? 'folded' : 'expanded')">
1361         <a t-if="label" class="searchview_group_string" href="#">
1362             <t t-esc="label"/>
1363         </a>
1364         <div class="searchview_group_content">
1365             <t t-raw="content"/>
1366         </div>
1367     </div>
1368 </t>
1369 <t t-name="SearchView.group">
1370     <t t-call="SearchView.util.expand">
1371         <t t-set="expand" t-value="attrs.expand"/>
1372         <t t-set="label" t-value="attrs.string"/>
1373         <t t-set="content">
1374             <t t-call="SearchView.render_lines"/>
1375         </t>
1376     </t>
1377 </t>
1378 <div t-name="SearchView.Filters" class="oe_searchview_filters oe_searchview_section">
1379
1380 </div>
1381 <div t-name="SearchView.CustomFilters" class="oe_searchview_custom oe_searchview_section">
1382     <div>
1383         <h3><span class="oe_i">M</span> Custom Filters</h3>
1384         <ul class="oe_searchview_custom_list"/>
1385         <div class="oe_searchview_custom">
1386           <h4>Save current filter</h4>
1387           <form>
1388             <p><input id="oe_searchview_custom_input" placeholder="Filter name"/></p>
1389             <p><input id="oe_searchview_custom_public" type="checkbox"/>
1390               <label for="oe_searchview_custom_public">Share with all users</label></p>
1391             <button>Save</button>
1392           </form>
1393         </div>
1394     </div>
1395     <div>
1396     </div>
1397 </div>
1398 <div t-name="SearchView.advanced" class="oe_searchview_advanced">
1399     <h4>Advanced Search</h4>
1400     <form>
1401         <ul>
1402
1403         </ul>
1404         <button class="oe_add_condition button" type="button">Add a condition</button><br/>
1405         <button class="oe_apply" type="submit">Apply</button>
1406     </form>
1407 </div>
1408 <t t-name="SearchView.extended_search.proposition">
1409     <li>
1410         <select class="searchview_extended_prop_field">
1411             <t t-foreach="widget.attrs.fields" t-as="field">
1412                 <option t-if="typeof field.store === 'undefined' || field.store || field.fnct_search"
1413                         t-att="{'selected': field === widget.attrs.selected ? 'selected' : null}"
1414                         t-att-value="field.name">
1415                     <t t-esc="field.string"/>
1416                 </option>
1417             </t>
1418         </select>
1419         <select class="searchview_extended_prop_op"/>
1420         <span class="searchview_extended_prop_value"/>
1421         <a class="searchview_extended_delete_prop button">x</a>
1422     </li>
1423 </t>
1424 <t t-name="SearchView.extended_search.proposition.char">
1425     <input class="field_char"/>
1426 </t>
1427 <t t-name="SearchView.extended_search.proposition.empty">
1428     <span/>
1429 </t>
1430 <t t-name="SearchView.extended_search.proposition.integer">
1431     <input type="number" class="field_integer" step="1"/>
1432 </t>
1433 <t t-name="SearchView.extended_search.proposition.float">
1434     <input type="number" class="field_float" step="0.01"/>
1435 </t>
1436 <t t-name="SearchView.extended_search.proposition.selection">
1437     <select>
1438         <t t-foreach="widget.field.selection" t-as="element">
1439         <option t-att-value="element[0]"><t t-esc="element[1]"/></option>
1440         </t>
1441     </select>
1442 </t>
1443 <t t-name="AbstractFormPopup.render">
1444     <div>
1445         <table style="width:100%">
1446             <tr style="width:100%">
1447                 <td style="width:100%">
1448                     <div class="oe-select-create-popup-view-search" style="width:100%"></div>
1449                 </td>
1450             </tr>
1451             <tr style="width:100%">
1452                 <td style="width:100%">
1453                     <div class="oe-select-create-popup-view-list" style="width:100%"></div>
1454                 </td>
1455             </tr>
1456         </table>
1457         <div class="oe-form-view-popup-form-placeholder oe-select-create-popup-view-form" style="width:100%"></div>
1458     </div>
1459 </t>
1460 <t t-name="SelectCreatePopup.search.buttons">
1461     <button type="button" class="oe_button oe_selectcreatepopup-search-select" disabled="disabled">Select</button>
1462     <button type="button" class="oe_button oe_selectcreatepopup-search-close">Cancel</button>
1463 </t>
1464 <t t-name="AbstractFormPopup.buttons">
1465     <t t-if="! multi_select">
1466         <button type="button" class="oe_button oe_abstractformpopup-form-save">Save</button>
1467     </t>
1468     <t t-if="multi_select">
1469         <button type="button" class="oe_button oe_abstractformpopup-form-save-new">Save &amp; New</button>
1470         <button type="button" class="oe_button oe_abstractformpopup-form-save">Save &amp; Close</button>
1471     </t>
1472     <button type="button" class="oe_button oe_abstractformpopup-form-close">Cancel</button>
1473 </t>
1474 <t t-extend="ListView.row">
1475     <!-- adds back padding to row being rendered after edition, if necessary
1476          (if not deletable add back padding), otherwise the row being added is
1477          missing columns
1478      -->
1479     <t t-jquery="&gt; :last" t-operation="after">
1480         <td t-if="edited and !options.deletable" class="oe-listview-padding"/>
1481     </t>
1482 </t>
1483
1484 <t t-name="view_editor">
1485     <table class="oe_view_editor">
1486         <t t-call="view_editor.row"/>
1487     </table>
1488 </t>
1489 <t t-name="view_editor.row">
1490     <tr  t-att-id="'viewedit-' + rec.id"  t-att-level="rec.level" t-foreach="data" t-as="rec">
1491         <td width="90%">
1492             <table class="oe_view_editor_field">
1493                 <tr>
1494                     <td width="16px" t-att-style="'background-position: ' + 20*rec.level + 'px; padding-left: ' + 20*rec.level + 'px'">
1495                         <img t-if="rec.child_id.length" t-att-id="'parentimg-' + rec.id"
1496                             src="/web/static/src/img/collapse.gif" width="16" height="16" border="0"/>
1497                     </td>
1498                     <td style="cursor: pointer;">
1499                         <a style="text-decoration:none" href="javascript:void(0);">
1500                             <t t-esc="rec.name"/>
1501                         </a>
1502                     </td>
1503                 </tr>
1504             </table>
1505         </td>
1506         <td width="2%">
1507             <img t-if="rec.att_list.length"
1508                 id="side-add" src="/web/static/src/img/icons/gtk-add.png" style="cursor: pointer;"/>
1509         </td>
1510         <td width="2%">
1511             <img  id="side-remove" src="/web/static/src/img/icons/gtk-remove.png" style="cursor: pointer;"/>
1512         </td>
1513         <td width="2%">
1514             <img t-if="rec.att_list.length and !_.include(no_properties, rec.att_list[0])"
1515                 id="side-edit" src="/web/static/src/img/icons/gtk-edit.png" style="cursor: pointer;"/>
1516         </td>
1517         <td width="2%">
1518             <img t-if="rec.att_list.length"
1519                 id="side-up" src="/web/static/src/img/icons/gtk-go-up.png" style="cursor: pointer;"/>
1520         </td>
1521         <td width="2%">
1522             <img t-if="rec.att_list.length"
1523                 id="side-down" src="/web/static/src/img/icons/gtk-go-down.png" style="cursor: pointer;"/>
1524         </td>
1525         <t t-if="rec.child_id.length">
1526             <t t-set="data" t-value="rec.child_id"/>
1527             <t t-call="view_editor.row"/>
1528         </t>
1529     </tr>
1530 </t>
1531 <t t-name="vieweditor_char">
1532     <input type="text" t-att-id="widget.name" class="field_char" size="50"/>
1533 </t>
1534 <t t-name="vieweditor_selection">
1535     <select t-att-id="widget.name" >
1536         <t t-if="widget.selection" t-foreach="widget.selection" t-as="option">
1537             <option
1538                 t-att-value="typeof option === 'object' ? option[0] : option">
1539                 <t t-esc="typeof option === 'object' ? option[1] : option"/>
1540             </option>
1541         </t>
1542     </select>
1543 </t>
1544 <t t-name="vieweditor_boolean">
1545     <input type="checkbox" t-att-id="widget.name"/>
1546 </t>
1547
1548 <t t-name="ExportView">
1549     <a id="exportview" href="javascript: void(0)" style="text-decoration: none;color: #3D3D3D;">Export</a>
1550 </t>
1551 <table t-name="ExportTreeView" class="oe-export"
1552        style="background-color: #F3F3F3;">
1553     <tr>
1554         <td colspan="3">
1555             This wizard will export all data that matches the current search criteria to a CSV file.
1556             You can export all data or only the fields that can be reimported after modification.
1557         </td>
1558     </tr>
1559     <tr>
1560         <td colspan="3">
1561             <label for="import_compat">Export Type:</label>
1562             <select id="import_compat" name="import_compat">
1563                 <option value="yes">Import Compatible Export</option>
1564                 <option value="">Export all Data</option>
1565             </select>
1566
1567             <label for="export_format">Export Formats</label>
1568             <select id="export_format" name="export_format"></select>
1569         </td>
1570     </tr>
1571
1572     <tr>
1573         <th>Available fields</th>
1574         <th/>
1575         <th>
1576             Fields to export
1577             <a style="color: blue; text-decoration: none;" href="#" id="export_new_list">Save fields list</a>
1578             <div id="savenewlist"></div>
1579             <div id="ExistsExportList"></div>
1580         </th>
1581     </tr>
1582     <tr style="height: 400px;">
1583         <td class="oe_export_fields_selector_left">
1584             <div id="left_field_panel">
1585             </div>
1586         </td>
1587         <td class="oe_export_fields_selector_center">
1588             <!-- TODO: replace ids by 'oe_*' classes -->
1589             <button class="oe_button" id="add_field">Add</button>
1590             <button class="oe_button" id="remove_field">Remove</button>
1591             <button class="oe_button" id="remove_all_field">Remove All</button>
1592         </td>
1593         <td class="oe_export_fields_selector_right">
1594             <select name="fields_list" id="fields_list"
1595                     multiple="multiple"></select>
1596         </td>
1597     </tr>
1598 </table>
1599 <table t-name="ExportTreeView-Secondary"
1600        id="field-tree-structure" class="oe_export_fields_selector_export"
1601        cellspacing="0" cellpadding="0">
1602     <tr><th class="oe_export_tree_header"> Name </th></tr>
1603     <t t-call="ExportTreeView-Secondary.children"/>
1604 </table>
1605 <tr t-name="ExportTreeView-Secondary.children"
1606     t-foreach="fields" t-as="field"
1607     t-att-id="'treerow-' + field.id" class="oe_export_row">
1608     <td>
1609         <table class="tree_grid" border="0">
1610             <tr class="oe_export_row">
1611                 <t t-foreach="(field.id).split('/')" t-as="level" >
1612                     <t t-if="(field.id).split('/')[0] != level">
1613                         <td width="18" t-translation="off">&amp;nbsp;</td>
1614                     </t>
1615                 </t>
1616                 <td valign="top" align="left" style="cursor: pointer;" width="18">
1617                     <t t-if="field.children">
1618                         <t t-if="(field.id).split('/').length != 3">
1619                             <img t-att-id="'parentimg-' + field.id" t-att-src='_s + "/web/static/src/img/expand.gif"' width="16" height="16" border="0"/>
1620                         </t>
1621                     </t>
1622                 </td>
1623                 <td id="tree-column" valign="middle" align="left" style="cursor: pointer;">
1624                     <a t-att-id="'export-' + field.id"  t-att-string="field.string" href="javascript: void(0);" style="text-decoration: none;">
1625                         <t t-esc="field.string"/>
1626                     </a>
1627                 </td>
1628             </tr>
1629         </table>
1630     </td>
1631 </tr>
1632 <t t-name="ExportNewList">
1633     <tr>
1634         <th><label>Save as:</label></th>
1635         <td><input size="10" type="text" id="savelist_name"/></td>
1636         <td><button class="oe_button oe_export_button_export" id="add_export_list">Ok</button></td>
1637     </tr>
1638 </t>
1639 <t t-name="Exists.ExportList">
1640     <label for="saved_export_list">Saved exports:</label>
1641
1642     <select id="saved_export_list">
1643         <option></option>
1644         <t t-foreach="existing_exports" t-as="export">
1645             <option t-att-value="export.id"><t t-esc="export.name"/></option>
1646         </t>
1647     </select>
1648     <button class="oe_button oe_export_button_export" id="delete_export_list" type="button">Delete</button>
1649 </t>
1650
1651 <t t-name="ImportView">
1652     <a id="importview" href="javascript: void(0)" style="text-decoration: none;color: #3D3D3D;">Import</a>
1653 </t>
1654 <t t-name="ImportDataView">
1655 <form name="import_data" id="import_data" action="" method="post" enctype="multipart/form-data"
1656         class="oe-import oe-import-no-result">
1657     <input type="hidden" name="session_id" t-att-value="widget.session.session_id"/>
1658     <h2 class="separator horizontal">1. Import a .CSV file</h2>
1659     <p>Select a .CSV file to import. If you need a sample of file to import,
1660        you should use the export tool with the "Import Compatible" option.
1661     </p>
1662     <p>
1663         <label for="csvfile">CSV File:</label>
1664         <input type="file" id="csvfile" size="50" name="csvfile"/>
1665     </p>
1666     <h2 class="separator horizontal oe-import-result">2. Check your file format</h2>
1667     <div id="result" class="oe-import-result"></div>
1668     <fieldset class="oe-closed oe-import-result">
1669         <legend>Import Options</legend>
1670         <table>
1671             <tr>
1672                 <td colspan="4">
1673                     <label for="file_has_headers">Does your file have titles?</label>
1674                     <input type="checkbox" checked="checked"
1675                            id="file_has_headers"/>
1676                 </td>
1677             </tr>
1678             <tr>
1679                 <td><label for="csv_separator">Separator:</label></td>
1680                 <td><input type="text" name="csvsep" id="csv_separator" value=","/></td>
1681                 <td><label for="csv_delimiter">Delimiter:</label></td>
1682                 <td><input type="text" name="csvdel" id="csv_delimiter" value='"'/></td>
1683             </tr>
1684             <tr>
1685                 <td><label for="csv_encoding">Encoding:</label></td>
1686                 <td>
1687                     <select name="csvcode" id="csv_encoding">
1688                         <option value="utf-8">UTF-8</option>
1689                         <option value="latin1">Latin 1</option>
1690                     </select>
1691                 </td>
1692                 <td><label for="csv_skip" title="For use if CSV files have titles on multiple lines, skips more than a single line during import">
1693                     Lines to skip<sup>?</sup>:</label></td>
1694                 <td><input type="number" id="csv_skip" value="0" min="0"/></td>
1695             </tr>
1696         </table>
1697     </fieldset>
1698 </form>
1699 </t>
1700 <t t-name="ImportView.result">
1701     <table class="oe_import_grid" width="100%" style="margin: 5px 0;">
1702         <tr t-if="headers" class="oe_import_grid-header">
1703             <td t-foreach="headers" t-as="header" class="oe_import_grid-cell">
1704                 <t t-esc="header"/></td>
1705         </tr>
1706         <tr>
1707             <td t-foreach="records[0]" t-as="column">
1708                 <input class="sel_fields" placeholder="--- Don't Import ---"/><span class="oe-m2o-drop-down-button">
1709                         <img t-att-src='_s + "/web/static/src/img/down-arrow.png"' /></span>
1710             </td>
1711         </tr>
1712         <tr t-foreach="records" t-as="record" class="oe_import_grid-row">
1713             <td t-foreach="record" t-as="cell" class="oe_import_grid-cell">
1714                 <t t-esc="cell"/></td>
1715         </tr>
1716     </table>
1717 </t>
1718 <t t-name="ImportView.error">
1719     <p style="white-space:pre;">The import failed due to:<t t-esc="error.message"/></p>
1720     <t t-if="error.preview">
1721         <p>Here is a preview of the file we could not import:</p>
1722         <pre><t t-esc="error.preview"/></pre>
1723     </t>
1724 </t>
1725 <div t-name="Many2ManyKanban.quick_create" class="oe_kanban_quick_create">
1726     <input t-att-placeholder="_t('Type name to search')"/>
1727 </div>
1728
1729 </templates>