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