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