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