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