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