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