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