[FIX] share: sent share notifications immediately w/o queuing
[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>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>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>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>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>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 src="/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 type="button" id="oe-db-config">Database</button>
293                             <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 src="/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 src="/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 src="/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 src="/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 src="/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 src="/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                         <button type="button" t-att-data-view-type="view.view_type">
427                             <t t-esc="view.view_type"/>
428                         </button>
429                     </t>
430                 </div>
431             </div>
432             <div t-attf-id="#{prefix}_search" t-opentag="true"/>
433             <t t-foreach="views" t-as="view">
434                 <div t-attf-id="#{prefix}_view_#{view.view_type}"/>
435             </t>
436         </td>
437         <td class="view-manager-main-sidebar" height="100%">
438             <t t-foreach="views" t-as="view">
439                 <div t-attf-id="#{prefix}_sidebar_#{view.view_type}" class="sidebar-main-div closed-sidebar" style="display: none"/>
440             </t>
441         </td>
442     </tr>
443     </tbody>
444     </table>
445 </t>
446
447 <t t-extend="ViewManager" t-name="ViewManagerAction">
448     <t t-jquery=".view-manager-main-table tbody" t-operation="prepend">
449         <tr>
450             <td class="oe_view_manager_menu_tips" colspan="2">
451                 <blockquote t-if="self.action.help and !self.flags.low_profile
452                                  and !(self.action.id in self.session.hidden_menutips)">
453                     <p><t t-esc="self.action.help"/></p>
454                     <div>
455                         <button type="button" name="hide">Hide this tip</button>
456                         <button type="button" name="disable">Disable all tips</button>
457                     </div>
458                 </blockquote>
459             </td>
460         </tr>
461     </t>
462     <t t-jquery="h2.oe_view_title" t-operation="prepend">
463         <a t-if="self.flags.display_title !== false" class="oe-shortcut-toggle" title="Add / Remove Shortcut..."
464             href="javascript: void(0)"> </a>
465     </t>
466     <t t-jquery="h2.oe_view_title" t-operation="after">
467         <select t-if="self.session.debug" class="oe_debug_view"/>
468     </t>
469     <t t-jquery=".oe-view-manager-header" t-operation="after">
470         <div class="oe-view-manager-logs oe-folded">
471             <ul></ul>
472             <a class="oe-more-logs" href="#">More…</a>
473             <a class="oe-remove-everything ui-icon ui-icon-closethick"/>
474         </div>
475     </t>
476 </t>
477 <t t-name="ViewManagerDebug">
478     <option value="">Debug View#<t t-esc="view.fields_view.view_id"/></option>
479     <option value="fvg"> - Fields View Get</option>
480     <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>
481     <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>
482     <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>
483 </t>
484 <t t-extend="ViewManager" t-name="One2Many.viewmanager">
485     <t t-jquery="span.oe_view_title_text" t-operation="replace"/>
486
487     <t t-jquery=".oe-view-manager-header">
488         this.attr('t-if', 'views.length != 1');
489     </t>
490 </t>
491
492 <t t-name="Sidebar">
493     <a class="toggle-sidebar"></a>
494     <div class="sidebar-content">
495         <div class="sidebar-actions">
496         </div>
497     </div>
498 </t>
499 <t t-name="Sidebar.section">
500     <div t-att-id="section_id" t-att-class="classname">
501         <h2><t t-esc="name"/></h2>
502     </div>
503 </t>
504 <t t-name="Sidebar.section.items">
505             <li t-foreach="items" t-as="item" t-att-class="item.classname">
506                 <a class="oe_sidebar_action_a" t-att-id="item.element_id" t-att-title="item.title" href="#">
507                     <t t-esc="item.label"/>
508                 </a>
509             </li>
510 </t>
511
512 <t t-name="TranslateDialog">
513     <table t-if="widget.view.translatable_fields" class="oe_frame oe_forms oe_translation_form" border="0" cellpadding="0" cellspacing="0" width="100%">
514     <tr>
515         <td class="oe_form_separator" width="1%" nowrap="nowrap">
516             <div class="separator horizontal">Field</div>
517         </td>
518         <th t-foreach="widget.languages" align="left">
519             <div class="separator horizontal"><t t-esc="name"/></div>
520         </th>
521     </tr>
522     <tr t-foreach="widget.view.translatable_fields" t-as="field" t-att-data-field="field.name">
523         <td class="oe_form_frame_cell" width="1%" nowrap="nowrap">
524             <label class="oe_label"><t t-esc="field.string"/>:</label>
525         </td>
526         <td t-foreach="widget.languages" t-as="lg" class="oe_form_frame_cell">
527             <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%"/>
528             <textarea t-if="field.type == 'text'" t-attf-name="#{lg.code}-#{field.name}" data-value="" class="oe_trad_field" style="width: 100%"></textarea>
529         </td>
530     </tr>
531     </table>
532 </t>
533 <t t-name="TreeView">
534     <select t-if="toolbar" style="width: 30%">
535     </select>
536     <table class="oe-treeview-table">
537         <thead>
538             <tr>
539                 <th t-foreach="fields_view" t-as="field"
540                     t-if="!field.attrs.modifiers.tree_invisible"
541                     class="treeview-header">
542                     <t t-esc="fields[field.attrs.name].string" />
543                 </th>
544             </tr>
545         </thead>
546         <tbody>
547         </tbody>
548     </table>
549 </t>
550 <tr t-name="TreeView.rows"
551         t-foreach="records" t-as="record"
552         t-att-id="'treerow_' + record.id"
553         t-att-data-id="record.id" t-att-data-level="level + 1">
554     <t t-set="children" t-value="record[children_field]"/>
555     <t t-set="class" t-value="children and children.length ? 'treeview-tr' : 'treeview-td'"/>
556
557     <td t-foreach="fields_view" t-as="field"
558         t-if="!field.attrs.modifiers.tree_invisible"
559         t-att-data-id="record.id"
560         t-att-style="color_for(record) + (!field_index ? 'background-position: ' + 19*level + 'px; padding-left: ' + 19*level + 'px;' : '')"
561         t-att-class="class">
562         <span t-if="!field.attrs.modifiers.invisible">
563             <t t-esc="render(record[field.attrs.name], fields[field.attrs.name])" />
564         </span>
565         <t t-set="class" t-value="'treeview-td'"/>
566     </td>
567 </tr>
568
569 <table t-name="ListView" class="oe-listview-content">
570     <t t-set="columns_count" t-value="visible_columns.length + (options.selectable ? 1 : 0) + (options.deletable ? 1 : 0)"/>
571     <thead class="ui-widget-header">
572         <tr t-if="options.action_buttons !== false or options.pager !== false">
573             <th t-att-colspan="columns_count">
574                 <table>
575                     <tr>
576                         <td t-if="options.action_buttons !== false" class="oe-actions">
577                             <button type="button" class="oe-list-add"
578                                     t-if="options.addable">
579                                 <t t-esc="options.addable"/>
580                             </button>
581                             <button type="button" class="oe-list-delete"
582                                     t-if="options.selectable and options.deletable">
583                                 Delete
584                             </button>
585                         </td>
586                         <t t-call="Listview.navigation.button"/>
587                     </tr>
588                 </table>
589             </th>
590         </tr>
591         <tr t-if="options.header" class="oe-listview-header-columns">
592             <t t-foreach="columns" t-as="column">
593                 <th t-if="column.meta">
594                     <t t-esc="column.string"/>
595                 </th>
596             </t>
597             <th t-if="options.selectable" width="1"  >
598                 <input type="checkbox" class="all-record-selector"/> </th>
599             <t t-foreach="columns" t-as="column">
600                 <th t-if="!column.meta and column.invisible !== '1'" t-att-data-id="column.id"
601                     t-att-class="((options.sortable and column.tag !== 'button') ? 'oe-sortable' : null)">
602                     <t t-if="column.tag !== 'button'"
603                         ><t t-esc="column.string"/></t>
604                 </th>
605             </t>
606             <th t-if="options.deletable" width="1"/>
607         </tr>
608     </thead>
609     <tfoot class="ui-widget-header">
610         <tr>
611             <td t-if="options.selectable"/>
612             <td t-foreach="aggregate_columns" t-as="column" class="oe-list-footer oe-number"
613                 t-att-data-field="column.id" t-att-title="column.label">
614             </td>
615             <td t-if="options.deletable"/>
616         </tr>
617         <tr>
618             <t t-call="Listview.navigation.button"/>
619         </tr>
620     </tfoot>
621 </table>
622 <t t-extend="ListView" t-name="One2Many.listview">
623     <t t-jquery="thead.ui-widget-header > tr:first">
624         this.removeAttr('t-if');
625     </t>
626
627     <t t-jquery="tfoot &gt; tr:last-child" t-operation="replace"/>
628
629     <t t-jquery="td.oe-actions">
630         this.removeAttr('t-if');
631         var $title = $(document.createElement('h3')).addClass('oe_view_title');
632         $title.append($(document.createElement('t')).attr(
633             't-esc', 'fields_view.arch.attrs.string'));
634         this.prepend($title);
635     </t>
636 </t>
637 <th t-name="Listview.navigation.button" t-if="options.pager !== false"
638         class="oe-list-pager" t-att-colspan="columns_count">
639     <button type="button" disabled="disabled"
640             data-pager-action="first">First</button>
641     <button type="button" disabled="disabled"
642             data-pager-action="previous">&lt;</button>
643
644     <span class="oe-pager-state">
645     </span>
646
647     <button type="button" disabled="disabled"
648             data-pager-action="next">&gt;</button>
649     <button type="button" disabled="disabled"
650             data-pager-action="last">Last</button>
651 </th>
652 <t t-name="ListView.rows" t-foreach="records.length" t-as="index">
653     <t t-call="ListView.row">
654         <t t-set="record" t-value="records.at(index)"/>
655         <t t-set="row_parity" t-value="index_parity"/>
656     </t>
657 </t>
658 <tr t-name="ListView.row" t-att-class="row_parity"
659         t-att-data-id="record.get('id')"
660         t-att-style="view.color_for(record)">
661     <t t-foreach="columns" t-as="column">
662         <td t-if="column.meta">
663
664         </td>
665     </t>
666     <th t-if="options.selectable" class="oe-record-selector" width="1">
667         <input t-att-type="options.radio? 'radio': 'checkbox'" name ="radiogroup" t-att-checked="options.select_view_id == record.get('id')? true: null"/>
668     </th>
669     <t t-foreach="columns" t-as="column">
670         <t t-set="align" t-value="column.type === 'integer' or column.type == 'float'"/>
671         <td t-if="!column.meta and column.invisible !== '1'" t-att-title="column.help"
672             t-att-class="'oe-field-cell' + (align ? ' oe-number' : '')
673                          + (column.tag === 'button' ? ' oe-button' : '')"
674             t-att-data-field="column.id">
675             <t t-raw="render_cell(record, column)"/>
676         </td>
677     </t>
678     <td t-if="options.deletable" class='oe-record-delete' width="1">
679         <button type="button" name="delete"></button>
680     </td>
681 </tr>
682 <t t-name="ListView.row.form">
683     <t t-raw="frame.render()"/>
684 </t>
685
686 <t t-name="FormView">
687     <div class="oe_form_header">
688         <div class="oe_form_buttons" t-if="widget.options.action_buttons !== false">
689             <button type="button" class="oe_form_button_save">Save</button>
690             <button type="button" class="oe_form_button_cancel">Cancel</button>
691         </div>
692         <div class="oe_form_pager" t-if="widget.options.pager !== false">
693             <button type="button" data-pager-action="first">First</button>
694             <button type="button" data-pager-action="previous">&lt;&lt;</button>
695
696             <span class="oe_pager_index">0</span> / <span class="oe_pager_count">0</span>
697
698             <button type="button" data-pager-action="next">&gt;&gt;</button>
699             <button type="button" data-pager-action="last">Last</button>
700         </div>
701     </div>
702     <t t-raw="frame.render()"/>
703 </t>
704 <t t-name="PageView" t-extend="FormView">
705     <t t-jquery=".oe_form_buttons" t-operation="inner">
706         <button type="button" class="oe_form_button_edit">Edit</button>
707         <button type="button" class="oe_form_button_create">Create</button>
708         <button type="button" class="oe_form_button_duplicate">Duplicate</button>
709         <button type="button" class="oe_form_button_delete">Delete</button>
710     </t>
711 </t>
712 <t t-name="FormView.sidebar.attachments">
713     <div class="oe-sidebar-attachments-toolbar">
714         <div class="oe-binary-file-set" style="float: right">
715             <form class="oe-binary-form" t-attf-target="#{element_id}_iframe"
716                 method="post" enctype="multipart/form-data" action="/web/binary/upload_attachment">
717                 <input type="hidden" name="session_id" t-att-value="session.session_id"/>
718                 <input type="hidden" name="callback" t-attf-value="#{element_id}_iframe"/>
719                 <input type="hidden" name="model" t-att-value="view.dataset.model"/>
720                 <input type="hidden" name="id" t-att-value="view.datarecord.id"/>
721                 <button class="button" type="button">
722                     <img src="/web/static/src/img/throbber.gif" width="16" height="16" style="display: none"/>
723                     <span>Add</span>
724                 </button>
725                 <input type="file" class="oe-binary-file" name="ufile" title="Add attachment"
726                     t-att-onclick="view.datarecord.id ? null : 'alert(\'No record selected ! You can only attach to existing record.\'); return false;'"/>
727             </form>
728             <iframe t-attf-id="#{element_id}_iframe" t-attf-name="#{element_id}_iframe" style="display: none"> </iframe>
729         </div>
730     </div>
731     <br style="clear: both"/>
732     <ul class="oe-sidebar-attachments-items">
733         <li t-foreach="attachments" t-as="attachment">
734             <t t-if="attachment.type == 'binary'" t-set="attachment.url" t-value="'/web/binary/saveas?session_id='
735                 + session.session_id + '&amp;model=ir.attachment&amp;id=' + attachment.id
736                 + '&amp;field=datas&amp;fieldname=name&amp;t=' + (new Date().getTime())"/>
737             <a class="oe-sidebar-attachments-link" t-att-href="attachment.url" target="_blank">
738                 <t t-esc="attachment.name"/>
739             </a>
740             <a href="#" class="oe-sidebar-attachment-delete" t-att-data-id="attachment.id" t-attf-title="Delete the attachment #{attachment.name}">
741                 <img src="/web/static/src/img/attachments-close.png" width="15" height="15" border="0"/>
742             </a>
743         </li>
744     </ul>
745 </t>
746 <t t-name="Widget">
747     Unhandled widget
748     <t t-js="dict">console.warn('Unhandled widget', dict.widget);</t>
749 </t>
750 <t t-name="WidgetFrame">
751     <table border="0" width="100%" cellpadding="0" cellspacing="0" class="oe_frame oe_forms">
752     <tr t-foreach="widget.table" t-as="row">
753         <t t-foreach="row" t-as="td">
754             <td t-att-colspan="td.colspan gt 1 ? td.colspan : undefined"
755                 t-att-width="td.width"
756                 t-att-valign="td.table ? 'top' : undefined"
757                 t-attf-class="oe_form_frame_cell #{td.classname} #{td.element_class}"
758             >
759                 <t t-raw="td.render()"/>
760             </td>
761         </t>
762     </tr>
763     </table>
764 </t>
765 <t t-name="WidgetFrame.readonly" t-extend="WidgetFrame">
766     <t t-jquery="&gt;table">
767         this.attr('class', this.attr('class')+' oe_form_readonly');
768     </t>
769 </t>
770 <t t-name="WidgetGroup">
771     <t t-if="widget.string">
772     <fieldset class="oe_group_box">
773         <legend><t t-esc="widget.string"/></legend>
774         <t t-call="WidgetFrame"/>
775     </fieldset>
776     </t>
777     <t t-if="!widget.string">
778         <t t-call="WidgetFrame"/>
779     </t>
780 </t>
781 <t t-name="WidgetNotebook">
782     <ul>
783         <li t-foreach="widget.pages" t-as="page">
784             <a href="#">
785                 <t t-esc="page.string"/>
786             </a>
787         </li>
788     </ul>
789     <t t-foreach="widget.pages" t-as="page">
790         <t t-raw="page.render()"/>
791     </t>
792 </t>
793 <t t-name="WidgetNotebook.tooltip">
794     <t t-foreach="widget.pages" t-as="page">
795         <div class="oe_tooltip_string">
796             Notebook Page "<t t-esc="page.string"/>"
797         </div>
798         <ul class="oe_tooltip_technical">
799             <li data-item="modifiers">
800                 <span class="oe_tooltip_technical_title">Modifiers:</span>
801                 <t t-esc="page.node.attrs.modifiers"/>
802             </li>
803         </ul>
804     </t>
805 </t>
806 <t t-name="WidgetNotebookPage">
807     <div>
808         <t t-call="WidgetFrame"/>
809     </div>
810 </t>
811 <t t-name="WidgetSeparator">
812     <div t-if="widget.orientation !== 'vertical'" t-att-class="'separator ' + widget.orientation">
813         <t t-esc="widget.string"/>
814     </div>
815 </t>
816 <t t-name="WidgetLabel">
817     <label t-att-for="widget.element_id"
818            t-attf-class="oe_label#{widget.help ? '_help' : ''} oe_align_#{widget.align}">
819         <t t-esc="widget.string"/>
820         <span t-if="widget.help">?</span>
821         <t t-if="widget.string and widget.node.tag != 'label'">:</t>
822     </label>
823 </t>
824 <t t-name="WidgetLabel.tooltip">
825     <div class="oe_tooltip_string" t-if="widget.string">
826         <t t-esc="widget.string"/> <t t-if="debug and widget.nolabel">(nolabel)</t>
827     </div>
828     <p t-if="widget.help" class="oe_tooltip_help">
829         <t t-esc="widget.help"/>
830     </p>
831     <ul t-if="debug" class="oe_tooltip_technical">
832         <li data-item="field" t-if="widget.name">
833             <span class="oe_tooltip_technical_title">Field:</span>
834             <t t-esc="widget.name"/>
835         </li>
836         <li data-item="object" t-if="widget.view and widget.view.fields_view">
837             <span class="oe_tooltip_technical_title">Object:</span>
838             <t t-esc="widget.view.fields_view.model"/>
839         </li>
840         <li data-item="type" t-if="widget.field">
841             <span class="oe_tooltip_technical_title">Type:</span>
842             <t t-esc="widget.field.type"/>
843         </li>
844         <li t-if="widget.node.attrs.widget" data-item="widget">
845             <span class="oe_tooltip_technical_title">Widget:</span>
846             <t t-esc="widget.node.attrs.widget"/>
847         </li>
848         <li t-if="widget.node.attrs.size || (widget.field and widget.field.size)" data-item="size">
849             <span class="oe_tooltip_technical_title">Size:</span>
850             <t t-esc="widget.node.attrs.size || widget.field.size"/>
851         </li>
852         <li t-if="widget.node.attrs.context" data-item="context">
853             <span class="oe_tooltip_technical_title">Context:</span>
854             <t t-esc="widget.node.attrs.context_string"/>
855         </li>
856         <li t-if="widget.node.attrs.domain" data-item="domain">
857             <span class="oe_tooltip_technical_title">Domain:</span>
858             <t t-esc="widget.node.attrs.domain_string"/>
859         </li>
860         <li t-if="widget.node.attrs.modifiers and widget.node.attrs.modifiers != '{}'" data-item="modifiers">
861             <span class="oe_tooltip_technical_title">Modifiers:</span>
862             <t t-esc="widget.node.attrs.modifiers"/>
863         </li>
864         <li t-if="widget.node.attrs.on_change" data-item="on_change">
865             <span class="oe_tooltip_technical_title">On change:</span>
866             <t t-esc="widget.node.attrs.on_change"/>
867         </li>
868         <li t-if="widget.field and widget.field.relation" data-item="relation">
869             <span class="oe_tooltip_technical_title">Relation:</span>
870             <t t-esc="widget.field.relation"/>
871         </li>
872         <li t-if="widget.field and widget.field.selection" data-item="selection">
873             <span class="oe_tooltip_technical_title">Selection:</span>
874             <ul>
875                 <li t-foreach="widget.field.selection" t-as="option">
876                     [<t t-esc="option[0]"/>]
877                     <t t-if="option[1]"> - </t>
878                     <t t-esc="option[1]"/>
879                 </li>
880             </ul>
881         </li>
882     </ul>
883 </t>
884 <t t-name="WidgetParagraph">
885     <p t-attf-class="oe_form_paragraph oe_align_#{widget.align}"><t t-esc="widget.string"/></p>
886 </t>
887 <t t-name="FieldChar">
888     <input t-att-type="widget.password ? 'password' : 'text'" size="1"
889         t-att-name="widget.name"
890         t-att-id="widget.element_id"
891         t-attf-class="field_#{widget.type} #{_(['integer', 'float', 'float_time']).contains(widget.type) ? 'oe-number' : ''}"
892         style="width: 100%"
893     /><img class="oe_field_translate oe_input_icon" t-if="widget.field.translate" src="/web/static/src/img/icons/terp-translate.png" width="16" height="16" border="0"/>
894 </t>
895 <t t-name="FieldChar.readonly">
896     <div
897         t-att-id="widget.element_id"
898         t-attf-class="field_#{widget.type} #{_(['integer', 'float', 'float_time']).contains(widget.type) ? 'oe-number' : ''}">
899     </div>
900 </t>
901 <t t-name="FieldURI.readonly">
902     <a href="#">#</a>
903 </t>
904 <t t-name="FieldEmail">
905     <table cellpadding="0" cellspacing="0" border="0" width="100%">
906     <tr>
907         <td width="100%" style="position: relative">
908             <t t-call="FieldChar"/>
909         </td>
910         <td width="16">
911             <button type="button" class="button" title="Send an e-mail with your default e-mail client">
912                 <img src="/web/static/src/img/icons/terp-mail-message-new.png"/>
913             </button>
914         </td>
915     </tr>
916     </table>
917 </t>
918 <t t-name="FieldUrl">
919     <table cellpadding="0" cellspacing="0" border="0" width="100%">
920     <tr>
921         <td width="100%" style="position: relative">
922             <t t-call="FieldChar"/>
923         </td>
924         <td width="16">
925             <button type="button" class="button" title="Open this resource">
926                 <img src="/web/static/src/img/icons/gtk-ok.png"/>
927             </button>
928         </td>
929     </tr>
930     </table>
931 </t>
932 <t t-name="FieldText">
933     <textarea rows="6"
934         t-att-name="widget.name"
935         t-att-id="widget.element_id"
936         t-attf-class="field_#{widget.type}"
937         style="width: 100%"
938     ></textarea><img class="oe_field_translate oe_input_icon" t-if="widget.field.translate" src="/web/static/src/img/icons/terp-translate.png" width="16" height="16" border="0"/>
939 </t>
940 <t t-name="web.datetimepicker">
941     <div class="oe_datepicker_root">
942         <input type="text" size="1" class="oe_datepicker_container" disabled="disabled" style="display: none;"/>
943         <input type="text" size="1" style="width: 100%"
944             t-att-name="widget.name"
945             t-attf-class="oe_datepicker_master field_#{widget.type_of_date}"
946         /><img class="oe_input_icon oe_datepicker_trigger" src="/web/static/src/img/ui/field_calendar.png"
947              title="Select date" width="16" height="16" border="0"/>
948     </div>
949 </t>
950 <t t-name="FieldSelection">
951     <select
952         t-att-name="widget.name"
953         t-att-id="widget.element_id"
954         t-attf-class="field_#{widget.type}"
955         style="width: 100%">
956             <t t-foreach="widget.values" t-as="option">
957                 <option><t t-esc="option[1]"/></option>
958             </t>
959     </select>
960 </t>
961 <t t-name="FieldMany2One">
962     <div class="oe-m2o">
963         <input type="text" size="1" style="width: 100%;"
964                 t-att-id="widget.element_id"/>
965         <span class="oe-m2o-drop-down-button">
966             <img src="/web/static/src/img/down-arrow.png" /></span>
967         <span class="oe-m2o-cm-button" t-att-id="widget.name + '_open'">
968             <img src="/web/static/src/img/icons/gtk-index.png"/></span>
969         <div t-att-id="widget.cm_id" class="contextMenu" style="display:none">
970         </div>
971     </div>
972 </t>
973 <t t-name="FieldMany2One.context_menu">
974     <ul>
975         <li t-att-id="widget.cm_id + '_open'" style="color:grey" class="oe_m2o_menu_item_mandatory">Open...</li>
976         <li t-att-id="widget.cm_id + '_create'" class="oe_m2o_menu_item_noreadonly">Create...</li>
977         <li t-att-id="widget.cm_id + '_search'" class="oe_m2o_menu_item_noreadonly">Search...</li>
978         <t t-set="i" t-value="0"/>
979         <t t-foreach="widget.related_entries" t-as="entry">
980             <li t-att-id="widget.cm_id + '_related_' + i" style="color:grey" class="oe_m2o_menu_item_mandatory">
981                 ... <t t-esc="(entry[2] || {})['name'] || ''"/>
982             </li>
983             <t t-set="i" t-value="i+1"/>
984         </t>
985     </ul>
986 </t>
987 <t t-name="FieldOne2Many">
988 </t>
989 <t t-name="FieldMany2Many">
990     <div t-att-id="widget.list_id"></div>
991 </t>
992 <t t-name="FieldReference">
993     <table border="0" width="100%" cellpadding="0" cellspacing="0" class="oe_frame oe_forms">
994     <tr>
995         <td t-attf-class="oe_form_frame_cell oe_form_selection #{widget.selection.element_class}">
996             <t t-raw="widget.selection.render()"/>
997         </td>
998         <td t-attf-class="oe_form_frame_cell oe_form_many2one #{widget.m2o.element_class}" nowrap="true" style="display: none">
999             <t t-raw="widget.m2o.render()"/>
1000         </td>
1001     </tr>
1002     </table>
1003 </t>
1004 <t t-name="FieldBoolean">
1005     <input type="checkbox"
1006         t-att-name="widget.name"
1007         t-att-id="widget.element_id"
1008         t-attf-class="field_#{widget.type}"/>
1009 </t>
1010 <t t-name="FieldProgressBar">
1011     <div t-opentag="true" class="oe-progressbar">
1012         <span></span>
1013     </div>
1014 </t>
1015 <t t-name="FieldBinaryImage">
1016     <table cellpadding="0" cellspacing="0" border="0">
1017     <tr>
1018         <td align="center">
1019             <img src="/web/static/src/img/placeholder.png" class="oe-binary-image"
1020                 t-att-border="widget.readonly ? 0 : 1"
1021                 t-att-id="widget.element_id + '_field'"
1022                 t-att-name="widget.name"
1023                 t-attf-class="field_#{widget.type}"
1024                 t-att-width="widget.node.attrs.img_width || widget.node.attrs.width"
1025                 t-att-height="widget.node.attrs.img_height || widget.node.attrs.height"
1026             />
1027         </td>
1028     </tr>
1029     <tr>
1030         <td align="center" valign="bottom" height="25">
1031             <div class="oe-binary">
1032                 <table cellspacing="0" cellpadding="0" border="0">
1033                 <tr>
1034                     <td>
1035                         <div class="oe-binary-file-set" style="width: 40px; height:22px;">
1036                             <form class="oe-binary-form" t-att-target="widget.iframe"
1037                                 method="post" enctype="multipart/form-data" action="/web/binary/upload">
1038                                 <input type="hidden" name="session_id" value=""/>
1039                                 <input type="hidden" name="callback" t-att-value="widget.iframe"/>
1040                                 <button class="button" type="button" title="Set Image">
1041                                     <img src="/web/static/src/img/icons/STOCK_DIRECTORY.png"/>
1042                                 </button>
1043                                 <input type="file" class="oe-binary-file" name="ufile"/>
1044                             </form>
1045                         </div>
1046                     </td>
1047                     <td>
1048                         <button class="button oe-binary-file-clear" type="button" title="Clear">
1049                             <img src="/web/static/src/img/icons/STOCK_MISSING_IMAGE.png"/>
1050                         </button>
1051                     </td>
1052                 </tr>
1053                 </table>
1054             </div>
1055             <div class="oe-binary-progress" style="display: none">
1056                 <img src="/web/static/src/img/throbber.gif" width="16" height="16"/>
1057                 <b>Uploading ...</b>
1058             </div>
1059             <iframe t-att-id="widget.iframe" t-att-name="widget.iframe" style="display: none"> </iframe>
1060         </td>
1061     </tr>
1062     </table>
1063 </t>
1064 <t t-name="FieldBinaryFile">
1065     <table cellpadding="0" cellspacing="0" border="0" width="100%">
1066     <tr>
1067         <td width="100%">
1068             <input type="text" size="1"
1069                 t-att-name="widget.name"
1070                 t-att-id="widget.element_id + '_field'"
1071                 t-attf-class="field_#{widget.type}" style="width: 100%"
1072             />
1073         </td>
1074         <td class="oe-binary" nowrap="true">
1075             <table cellspacing="0" cellpadding="0" border="0">
1076             <tr>
1077                 <td>
1078                     <div class="oe-binary-file-set" style="width: 80px; height:22px;">
1079                         <form class="oe-binary-form" t-att-target="widget.iframe"
1080                             method="post" enctype="multipart/form-data" action="/web/binary/upload">
1081                             <input type="hidden" name="session_id" value=""/>
1082                             <input type="hidden" name="callback" t-att-value="widget.iframe"/>
1083                             <button class="button" type="button" title="Set Image">
1084                                 <img src="/web/static/src/img/icons/STOCK_DIRECTORY.png"/>
1085                                 <span>Select</span>
1086                             </button>
1087                             <input type="file" class="oe-binary-file" name="ufile"/>
1088                         </form>
1089                     </div>
1090                 </td>
1091                 <td>
1092                     <button class="button oe-binary-file-save" type="button" title="Save As">
1093                         <img src="/web/static/src/img/icons/gtk-save.png"/>
1094                         <span>Save As</span>
1095                     </button>
1096                 </td>
1097                 <td>
1098                     <button class="button oe-binary-file-clear" type="button" title="Clear">
1099                         <img src="/web/static/src/img/icons/STOCK_MISSING_IMAGE.png"/>
1100                         <span>Clear</span>
1101                     </button>
1102                 </td>
1103             </tr>
1104             </table>
1105         </td>
1106         <td class="oe-binary-progress" style="display: none" nowrap="true">
1107             <img src="/web/static/src/img/throbber.gif" width="16" height="16"/>
1108             <b>Uploading ...</b>
1109             <iframe t-att-id="widget.iframe" t-att-name="widget.iframe" style="display: none"> </iframe>
1110         </td>
1111     </tr>
1112     </table>
1113 </t>
1114 <t t-name="WidgetButton">
1115     <button type="button" class="oe_button">
1116         <img t-if="widget.node.attrs.icon" t-att-src="'/web/static/src/img/icons/' + widget.node.attrs.icon + '.png'" width="16" height="16"/>
1117         <span t-if="widget.string"><t t-esc="widget.string"/></span>
1118     </button>
1119 </t>
1120 <t t-name="WidgetButton.tooltip" t-extend="WidgetLabel.tooltip">
1121     <t t-jquery="div.oe_tooltip_string" t-operation="replace">
1122         <div class="oe_tooltip_string" t-if="debug || widget.string">
1123             <t t-if="debug">
1124                 Button
1125                 <t t-if="widget.string">: </t>
1126                 <t t-if="!widget.string"> (no string)</t>
1127             </t>
1128             <t t-esc="widget.string"/>
1129         </div>
1130     </t>
1131     <t t-jquery="ul.oe_tooltip_technical" t-operation="append">
1132         <li t-if="widget.node.attrs.special" data-item="special">
1133             <span class="oe_tooltip_technical_title">Special:</span>
1134             <t t-esc="widget.node.attrs.special"/>
1135         </li>
1136         <t t-set="button_type" t-value="widget.node.attrs.type"/>
1137         <li t-if="button_type" data-item="button_type">
1138             <span class="oe_tooltip_technical_title">Button Type:</span>
1139             <t t-esc="button_type"/>
1140         </li>
1141         <li t-if="button_type === 'object'" data-item="button_method">
1142             <span class="oe_tooltip_technical_title">Method:</span>
1143             <t t-esc="widget.node.attrs.name"/>
1144         </li>
1145         <li t-if="button_type === 'action'" data-item="button_action">
1146             <span class="oe_tooltip_technical_title">Action ID:</span>
1147             <t t-esc="widget.node.attrs.name"/>
1148         </li>
1149     </t>
1150 </t>
1151
1152 <t t-name="SearchView">
1153     <form class="oe_forms">
1154         <t t-call="SearchView.render_lines"/>
1155         <div class="oe_search-view-buttons">
1156             <button>Search</button>
1157             <button type="reset">Clear</button>
1158             <select class="oe_search-view-filters-management">
1159             </select>
1160         </div>
1161     </form>
1162 </t>
1163 <t t-name="SearchView.managed-filters">
1164     <option/>
1165     <optgroup label="-- Filters --">
1166         <t t-foreach="filters" t-as="filter">
1167             <option t-attf-value="get:#{filter_index}"><t t-esc="filter.name"/></option>
1168         </t>
1169     </optgroup>
1170     <optgroup label="-- Actions --">
1171         <option value="advanced_filter">Advanced Filter</option>
1172         <option value="save_filter">Save Filter</option>
1173         <option value="add_to_dashboard">Add to Dashboard</option>
1174         <option value="manage_filters">Manage Filters</option>
1175     </optgroup>
1176 </t>
1177 <t t-name="SearchView.managed-filters.add">
1178     <div>
1179         <p>Filter Name:</p>
1180         <input type="text"/>
1181         <p>(Any existing filter with the same name will be replaced)</p>
1182     </div>
1183 </t>
1184 <t t-name="SearchView.add_to_dashboard">
1185     <div class="oe_forms">
1186         <p><b>Select Dashboard to add this filter to:</b></p>
1187         <select style="width: 100%; margin-right: 1em;">
1188             <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>
1189         </select>
1190         <p><b>Title of new Dashboard item:</b></p>
1191         <input type="text" style="width: 100%; margin-right: 1em;"/>
1192     </div>
1193 </t>
1194 <t t-name="SearchView.render_lines">
1195     <table class="oe-searchview-render-line" border="0" cellspacing="0" cellpadding="0"
1196            t-foreach="lines" t-as="line">
1197         <tr>
1198             <td t-foreach="line" t-as="widget" class="oe_searchview_field">
1199                 <t t-raw="widget.render(defaults)"/>
1200             </td>
1201         </tr>
1202     </table>
1203 </t>
1204 <button t-name="SearchView.filter" type="button"
1205         t-att-id="element_id"
1206         t-att-title="attrs.help"
1207         t-att-class="classes.join(' ')"
1208         t-att-autofocus="attrs.default_focus === '1' ? 'autofocus' : undefined">
1209     <img t-att-src="'/web/static/src/img/icons/' + (attrs.icon || 'gtk-home') + '.png'" width="16" height="16"/>
1210     <br t-if="attrs.string"/>
1211     <t t-esc="attrs.string"/>
1212 </button>
1213 <span t-name="SearchView.filters" class="filter_label_group"
1214     ><t t-foreach="filters" t-as="filter"
1215         ><t t-raw="filter.render(defaults)"/></t
1216 ></span>
1217 <t t-name="SearchView.field">
1218     <label t-att-class="'oe_label' + (attrs.help ? '_help' : '')"
1219            t-att-title="attrs.help"
1220            t-att-for="element_id">
1221         <t t-esc="attrs.string || attrs.name"/>
1222         <span t-if="attrs.help">?</span>
1223     </label>
1224     <div>
1225         <input type="text" size="15" t-att-name="attrs.name"
1226                t-att-autofocus="attrs.default_focus === '1' ? 'autofocus' : undefined"
1227                t-att-id="element_id"
1228                t-att-value="defaults[attrs.name] || ''"/>
1229         <t t-if="filters.length" t-raw="filters.render(defaults)"/>
1230     </div>
1231 </t>
1232 <t t-name="SearchView.date">
1233     <label t-att-class="'oe_label' + (attrs.help ? '_help' : '')"
1234            t-att-title="attrs.help"
1235            t-att-for="element_id">
1236         <t t-esc="attrs.string || attrs.name"/>
1237         <span t-if="attrs.help">?</span>
1238     </label>
1239     <div>
1240         <span t-att-id="element_id"></span>
1241         <t t-if="filters.length" t-raw="filters.render(defaults)"/>
1242     </div>
1243 </t>
1244 <t t-name="SearchView.field.selection">
1245     <label t-att-title="attrs.help"
1246            t-att-class="'oe_label' + (attrs.help ? '_help' : '')"
1247            t-att-for="element_id">
1248         <t t-esc="attrs.string || attrs.name"/>
1249         <span t-if="attrs.help">?</span>
1250     </label>
1251     <div>
1252         <select t-att-name="attrs.name" t-att-id="element_id"
1253                 t-att-autofocus="attrs.default_focus === '1' || undefined">
1254             <option t-if="prepend_empty"/>
1255             <t t-foreach="attrs.selection" t-as="option">
1256                 <t t-set="selected" t-value="defaults[attrs.name] === option[0]"/>
1257                 <option t-if="selected"
1258                         t-att-value="option_index" selected="selected">
1259                     <t t-esc="option[1]"/>
1260                 </option>
1261                 <option t-if="!selected" t-att-value="option_index">
1262                     <t t-esc="option[1]"/>
1263                 </option>
1264             </t>
1265         </select>
1266         <t t-if="filters.length" t-raw="filters.render(defaults)"/>
1267     </div>
1268 </t>
1269 <t t-name="SearchView.util.expand">
1270     <div t-att-class="'searchview_group ' + (expand == '0' ? 'folded' : 'expanded')"
1271          t-att-id="element_id">
1272         <a t-if="label" class="searchview_group_string" href="#">
1273             <t t-esc="label"/>
1274         </a>
1275         <div class="searchview_group_content">
1276             <t t-raw="content"/>
1277         </div>
1278     </div>
1279 </t>
1280 <t t-name="SearchView.group">
1281     <t t-call="SearchView.util.expand">
1282         <t t-set="expand" t-value="attrs.expand"/>
1283         <t t-set="label" t-value="attrs.string"/>
1284         <t t-set="content">
1285             <t t-call="SearchView.render_lines"/>
1286         </t>
1287     </t>
1288 </t>
1289 <t t-name="SearchView.extended_search">
1290     <t t-call="SearchView.util.expand">
1291         <t t-set="expand" t-value="false"/>
1292         <t t-set="label" t-value="'Advanced Filters'"/>
1293         <t t-set="content">
1294             <div class="searchview_extended_groups_list">
1295             </div>
1296         </t>
1297     </t>
1298 </t>
1299 <t t-name="SearchView.extended_search.group">
1300     <div t-att-id="element_id" class="searchview_extended_group">
1301         <select class="searchview_extended_group_choice">
1302             <option value="any">Any of the following conditions must match</option>
1303             <option value="all">All the following conditions must match</option>
1304             <option value="none">None of the following conditions must match</option>
1305         </select>
1306         <a class="searchview_extended_delete_group"
1307                 href="javascript:void(0)"><span></span></a>
1308         <div class="searchview_extended_propositions_list">
1309         </div>
1310         <a class="searchview_extended_add_proposition" href="javascript:void(0)">
1311             <span>Add condition</span></a>
1312         <div class="oe_adv_filters_and"><span>and</span></div>
1313     </div>
1314 </t>
1315 <t t-name="SearchView.extended_search.proposition">
1316     <div t-att-id="element_id">
1317         <select class="searchview_extended_prop_field">
1318             <t t-foreach="attrs.fields" t-as="field">
1319                 <option t-if="typeof field.store === 'undefined' || field.store || field.fnct_search"
1320                         t-att="{'selected': field === attrs.selected ? 'selected' : null}"
1321                         t-att-value="field.name">
1322                     <t t-esc="field.string"/>
1323                 </option>
1324             </t>
1325         </select>
1326         <select class="searchview_extended_prop_op"/>
1327         <span class="searchview_extended_prop_value"/>
1328         <a class="searchview_extended_delete_prop"
1329                 href="javascript:void(0)"><span> </span></a>
1330     </div>
1331 </t>
1332 <t t-name="SearchView.extended_search.proposition.char">
1333     <input t-att-id="element_id" class="field_char"/>
1334 </t>
1335 <t t-name="SearchView.extended_search.proposition.empty">
1336     <span t-att-id="element_id"></span>
1337 </t>
1338 <t t-name="SearchView.extended_search.proposition.integer">
1339     <input type="number" t-att-id="element_id" class="field_integer" step="1"/>
1340 </t>
1341 <t t-name="SearchView.extended_search.proposition.float">
1342     <input type="number" t-att-id="element_id" class="field_float" step="0.01"/>
1343 </t>
1344 <t t-name="SearchView.extended_search.proposition.boolean">
1345 </t>
1346 <t t-name="SearchView.extended_search.proposition.selection">
1347     <select t-att-id="element_id">
1348         <t t-foreach="field.selection" t-as="element">
1349         <option t-att-value="element[0]"><t t-esc="element[1]"/></option>
1350         </t>
1351     </select>
1352 </t>
1353 <t t-name="DialogWarning">
1354     <table cellspacing="0" cellpadding="0" border="0" class="oe-dialog-warning">
1355     <tr>
1356         <td><img src="/web/static/src/img/warning.png" class="oe-dialog-icon"/></td>
1357         <td>
1358             <p>
1359                 <t t-js="d">
1360                     var message = d.message ? d.message : d.error.data.fault_code;
1361                     d.html_error = context.engine.tools.html_escape(message)
1362                         .replace(/\n/g, '<br/>');
1363                 </t>
1364                 <t t-raw="html_error"/>
1365             </p>
1366         </td>
1367     </tr>
1368     </table>
1369 </t>
1370 <t t-name="DialogTraceback">
1371     <pre><t t-esc="error.message"/></pre>
1372     <hr/>
1373     <pre><t t-esc="error.data.debug"/></pre>
1374 </t>
1375 <t t-name="SelectCreatePopup">
1376     <div t-att-id="element_id">
1377         <table style="width:100%">
1378             <tr style="width:100%">
1379                 <td style="width:100%">
1380                     <div t-att-id="element_id + '_search'" style="width:100%"></div>
1381                 </td>
1382             </tr>
1383             <tr style="width:100%">
1384                 <td style="width:100%">
1385                     <div t-att-id="element_id + '_view_list'" style="width:100%"></div>
1386                 </td>
1387             </tr>
1388         </table>
1389         <div t-att-id="element_id + '_view_form'" style="width:100%"></div>
1390     </div>
1391 </t>
1392 <t t-name="SelectCreatePopup.search.buttons">
1393     <button type="button" class="oe_selectcreatepopup-search-select" disabled="disabled">Select</button>
1394     <button type="button" class="oe_selectcreatepopup-search-close">Cancel</button>
1395 </t>
1396 <t t-name="SelectCreatePopup.form.buttons">
1397     <t t-if="widget.options.disable_multiple_selection">
1398         <button type="button" class="oe_selectcreatepopup-form-save">Save</button>
1399     </t>
1400     <t t-if="! widget.options.disable_multiple_selection">
1401         <button type="button" class="oe_selectcreatepopup-form-save-new">Save &amp; New</button>
1402         <button type="button" class="oe_selectcreatepopup-form-save">Save &amp; Close</button>
1403     </t>
1404     <button type="button" class="oe_selectcreatepopup-form-close">Cancel</button>
1405 </t>
1406 <t t-name="FormOpenPopup">
1407     <div t-att-id="element_id">
1408         <div t-att-id="element_id + '_view_form'" style="width:100%"></div>
1409     </div>
1410 </t>
1411 <t t-name="FormOpenPopup.form.buttons">
1412     <button type="button" class="oe_formopenpopup-form-save">Save</button>
1413     <button type="button" class="oe_formopenpopup-form-close">Cancel</button>
1414 </t>
1415 <t t-extend="ListView.row">
1416     <!-- adds front & back padding to row being rendered after edition, if
1417          necessary (if not selectable add front padding and if not deletable
1418          add back padding), otherwise the row being added is missing columns
1419      -->
1420     <t t-jquery="&gt; :first" t-operation="before">
1421         <td t-if="edited and !options.selectable" class="oe-listview-padding"/>
1422     </t>
1423     <t t-jquery="&gt; :last" t-operation="after">
1424         <td t-if="edited and !options.deletable" class="oe-listview-padding"/>
1425     </t>
1426 </t>
1427 <t t-name="ListView.row.frame" t-extend="WidgetFrame">
1428     <t t-jquery="tr">
1429         $(document.createElement('t'))
1430             .append(this.contents())
1431             .attr({
1432                 't-foreach': this.attr('t-foreach'),
1433                 't-as': this.attr('t-as')
1434             })
1435             .replaceAll(this)
1436             .after($(document.createElement('td')).append(
1437                 $(document.createElement('button')).attr({
1438                     'class': 'oe-edit-row-save', 'type': 'button'})
1439                   .html(' ')))
1440             .unwrap();
1441     </t>
1442 </t>
1443 <t t-name="view_editor">
1444     <table class="oe_view_editor">
1445         <t t-call="view_editor.row"/>
1446     </table>
1447 </t>
1448 <t t-name="view_editor.row">
1449     <tr  class="oe_view_editor_row" t-att-id="'viewedit-' + rec.id"  t-att-level="rec.level" t-foreach="data" t-as="rec">
1450         <td class="oe_view_editor_colum"  width="85%">
1451             <table class="oe_view_editor_tree_grid">
1452                 <tr>
1453                     <td width="16px" t-att-style="'background-position: ' + 20*rec.level + 'px; padding-left: ' + 20*rec.level + 'px'">
1454                         <img t-if="rec.child_id.length" t-att-id="'parentimg-' + rec.id"
1455                             src="/web/static/src/img/collapse.gif" width="16" height="16" border="0"/>
1456                     </td>
1457                     <td style="cursor: pointer;">
1458                         <a style="text-decoration:none" href="javascript:void(0);">
1459                             <t t-esc="rec.name"/>
1460                         </a>
1461                     </td>
1462                 </tr>
1463             </table>
1464         </td>
1465         <td align="left" class="oe_view_editor_colum"  width="15%">
1466             <table width="100%">
1467                 <tr>
1468                     <td width="20%">
1469                         <img t-if="rec.att_list.length"
1470                             id="side-add" src="/web/static/src/img/icons/gtk-add.png" style="cursor: pointer;"/>
1471                     </td>
1472                     <td width="20%">
1473                         <img  id="side-remove" src="/web/static/src/img/icons/gtk-remove.png" style="cursor: pointer;"/>
1474                     </td>
1475                     <td width="20%">
1476                         <img t-if="rec.att_list.length and !_.include(no_properties, rec.att_list[0])"
1477                             id="side-edit" src="/web/static/src/img/icons/gtk-edit.png" style="cursor: pointer;"/>
1478                     </td>
1479                     <td width="20%">
1480                         <img t-if="rec.att_list.length"
1481                             id="side-up" src="/web/static/src/img/icons/gtk-go-up.png" style="cursor: pointer;"/>
1482                     </td>
1483                     <td width="20%">
1484                         <img t-if="rec.att_list.length"
1485                             id="side-down" src="/web/static/src/img/icons/gtk-go-down.png" style="cursor: pointer;"/>
1486                     </td>
1487                 </tr>
1488             </table>
1489         </td>
1490         <t t-if="rec.child_id.length">
1491             <t t-set="data" t-value="rec.child_id"/>
1492             <t t-call="view_editor.row"/>
1493         </t>
1494     </tr>
1495 </t>
1496 <t t-name="vieweditor_char">
1497     <input type="text" t-att-id="widget.name" class="field_char" size="50"/>
1498 </t>
1499 <t t-name="vieweditor_selection">
1500     <select t-att-id="widget.name" >
1501         <t t-if="widget.selection" t-foreach="widget.selection" t-as="option">
1502             <option
1503                 t-att-value="typeof option === 'object' ? option[0] : option">
1504                 <t t-esc="typeof option === 'object' ? option[1] : option"/>
1505             </option>
1506         </t>
1507     </select>
1508 </t>
1509 <t t-name="vieweditor_boolean">
1510     <input type="checkbox" t-att-id="widget.name"/>
1511 </t>
1512 <t t-name="ExportView">
1513     <a id="exportview" href="javascript: void(0)" style="text-decoration: none;color: #3D3D3D;">Export</a>
1514 </t>
1515 <table t-name="ExportTreeView" class="oe-export"
1516        style="background-color: #F3F3F3;">
1517     <tr>
1518         <td colspan="3">
1519             This wizard will export all data that matches the current search criteria to a CSV file.
1520             You can export all data or only the fields that can be reimported after modification.
1521         </td>
1522     </tr>
1523     <tr>
1524         <td colspan="3">
1525             <label for="import_compat">Export Type:</label>
1526             <select id="import_compat" name="import_compat">
1527                 <option value="yes">Import Compatible Export</option>
1528                 <option value="">Export all Data</option>
1529             </select>
1530
1531             <label for="export_format">Export Formats</label>
1532             <select id="export_format" name="export_format"></select>
1533         </td>
1534     </tr>
1535
1536     <tr>
1537         <th>Available fields</th>
1538         <th/>
1539         <th>
1540             Fields to export
1541             <a style="color: blue; text-decoration: none;" href="#" id="export_new_list">Save fields list</a>
1542             <div id="savenewlist"></div>
1543             <div id="ExistsExportList"></div>
1544         </th>
1545     </tr>
1546     <tr style="height: 400px;">
1547         <td class="oe_export_fields_selector_left">
1548             <div id="left_field_panel">
1549             </div>
1550         </td>
1551         <td class="oe_export_fields_selector_center">
1552             <button id="add_field">Add</button>
1553             <button id="remove_field">Remove</button>
1554             <button id="remove_all_field">Remove All</button>
1555         </td>
1556         <td class="oe_export_fields_selector_right">
1557             <select name="fields_list" id="fields_list"
1558                     multiple="multiple"></select>
1559         </td>
1560     </tr>
1561 </table>
1562
1563 <table t-name="ExportTreeView-Secondary"
1564        id="field-tree-structure" class="oe_export_fields_selector_export"
1565        cellspacing="0" cellpadding="0">
1566     <tr><th class="oe_export_tree_header"> Name </th></tr>
1567     <t t-call="ExportTreeView-Secondary.children"/>
1568 </table>
1569 <tr t-name="ExportTreeView-Secondary.children"
1570     t-foreach="fields" t-as="field"
1571     t-att-id="'treerow-' + field.id" class="oe_export_row">
1572     <td>
1573         <table class="tree_grid" border="0">
1574             <tr class="oe_export_row">
1575                 <t t-foreach="(field.id).split('/')" t-as="level" >
1576                     <t t-if="(field.id).split('/')[0] != level">
1577                         <td width="18">&amp;nbsp;</td>
1578                     </t>
1579                 </t>
1580                 <td valign="top" align="left" style="cursor: pointer;" width="18">
1581                     <t t-if="field.children">
1582                         <t t-if="(field.id).split('/').length != 3">
1583                             <img t-att-id="'parentimg-' + field.id" src="/web/static/src/img/expand.gif" width="16" height="16" border="0"/>
1584                         </t>
1585                     </t>
1586                 </td>
1587                 <td id="tree-column" valign="middle" align="left" style="cursor: pointer;">
1588                     <a t-att-id="'export-' + field.id"  t-att-string="field.string" href="javascript: void(0);" style="text-decoration: none;">
1589                         <t t-esc="field.string"/>
1590                     </a>
1591                 </td>
1592             </tr>
1593         </table>
1594     </td>
1595 </tr>
1596
1597 <t t-name="ExportNewList">
1598     <tr>
1599         <th><label>Save as:</label></th>
1600         <td><input size="10" type="text" id="savelist_name"/></td>
1601         <td><button class="oe_export_button_export" id="add_export_list">Ok</button></td>
1602     </tr>
1603 </t>
1604
1605 <t t-name="Exists.ExportList">
1606     <label for="saved_export_list">Saved exports:</label>
1607
1608     <select id="saved_export_list">
1609         <option></option>
1610         <t t-foreach="existing_exports" t-as="export">
1611             <option t-att-value="export.id"><t t-esc="export.name"/></option>
1612         </t>
1613     </select>
1614     <button class="oe_export_button_export" id="delete_export_list" type="button">Delete</button>
1615 </t>
1616 <t t-name="Change_Pwd">
1617     <form name="change_password_form" class="oe_forms" method="POST">
1618         <table align="center">
1619             <tr>
1620                 <td><label for="old_pwd">Old Password:</label></td>
1621                 <td><input type="password" name="old_pwd"
1622                            minlength="1" autofocus="autofocus"/></td>
1623             </tr>
1624             <tr>
1625             <td><label for="new_password">New Password:</label></td>
1626             <td><input type="password" name="new_password"
1627                        minlength="1" autofocus="autofocus"/></td>
1628             </tr>
1629             <tr>
1630                 <td><label for="confirm_pwd">Confirm Password:</label></td>
1631                 <td><input type="password" name="confirm_pwd"
1632                              minlength="1"/></td>
1633             </tr>
1634             <tr>
1635                 <td colspan="2" align="right"><button>Change Password</button></td>
1636             </tr>
1637         </table>
1638     </form>
1639 </t>
1640
1641 <t t-name="ImportView">
1642     <a id="importview" href="javascript: void(0)" style="text-decoration: none;color: #3D3D3D;">Import</a>
1643 </t>
1644 <t t-name="ImportDataView">
1645 <form name="import_data" id="import_data" action="" method="post" enctype="multipart/form-data"
1646         class="oe-import oe-import-no-result">
1647     <input type="hidden" name="session_id" t-att-value="session.session_id"/>
1648     <h2 class="separator horizontal">1. Import a .CSV file</h2>
1649     <p>Select a .CSV file to import. If you need a sample of file to import,
1650        you should use the export tool with the "Import Compatible" option.
1651     </p>
1652     <p>
1653         <label for="csvfile">CSV File:</label>
1654         <input type="file" id="csvfile" size="50" name="csvfile"/>
1655     </p>
1656     <h2 class="separator horizontal oe-import-result">2. Check your file format</h2>
1657     <div id="result" class="oe-import-result"></div>
1658     <fieldset class="oe-closed oe-import-result">
1659         <legend>Import Options</legend>
1660         <table>
1661             <tr>
1662                 <td colspan="4">
1663                     <label for="file_has_headers">Does your file have titles?</label>
1664                     <input type="checkbox" checked="checked"
1665                            id="file_has_headers"/>
1666                 </td>
1667             </tr>
1668             <tr>
1669                 <td><label for="csv_separator">Separator:</label></td>
1670                 <td><input type="text" name="csvsep" id="csv_separator" value=","/></td>
1671                 <td><label for="csv_delimiter">Delimiter:</label></td>
1672                 <td><input type="text" name="csvdel" id="csv_delimiter" value='"'/></td>
1673             </tr>
1674             <tr>
1675                 <td><label for="csv_encoding">Encoding:</label></td>
1676                 <td>
1677                     <select name="csvcode" id="csv_encoding">
1678                         <option value="utf-8">UTF-8</option>
1679                         <option value="latin1">Latin 1</option>
1680                     </select>
1681                 </td>
1682                 <td><label for="csv_skip" title="For use if CSV files have titles on multiple lines, skips more than a single line during import">
1683                     Lines to skip<sup>?</sup>:</label></td>
1684                 <td><input type="number" id="csv_skip" value="0" min="0"/></td>
1685             </tr>
1686         </table>
1687     </fieldset>
1688 </form>
1689 </t>
1690 <t t-name="ImportView.result">
1691     <table class="oe_import_grid" width="100%" style="margin: 5px 0;">
1692         <tr t-if="headers" class="oe_import_grid-header">
1693             <td t-foreach="headers" t-as="header" class="oe_import_grid-cell">
1694                 <t t-esc="header"/></td>
1695         </tr>
1696         <tr>
1697             <td t-foreach="records[0]" t-as="column">
1698                 <input class="sel_fields" placeholder="--- Don't Import ---"/><span class="oe-m2o-drop-down-button">
1699                         <img src="/web/static/src/img/down-arrow.png" /></span>
1700             </td>
1701         </tr>
1702         <tr t-foreach="records" t-as="record" class="oe_import_grid-row">
1703             <td t-foreach="record" t-as="cell" class="oe_import_grid-cell">
1704                 <t t-esc="cell"/></td>
1705         </tr>
1706     </table>
1707 </t>
1708 <t t-name="ImportView.error">
1709     <p style="white-space:pre;">The import failed due to:<t t-esc="error.message"/></p>
1710     <t t-if="error.preview">
1711         <p>Here is a preview of the file we could not import:</p>
1712         <pre><t t-esc="error.preview"/></pre>
1713     </t>
1714 </t>
1715
1716 <t t-name="About-Page">
1717     <div>
1718         <h1>OpenERP Web</h1>
1719         <h3 style="padding:0 5px 5px">Version <t t-esc="version_info.version"/></h3>
1720         <p>
1721             Copyright © 2011-TODAY OpenERP SA. All Rights Reserved.<br />
1722             OpenERP is a trademark of the <a target="_blank" href="http://openerp.com/" style="text-decoration: underline;">OpenERP SA Company</a>.
1723         </p>
1724         <p>
1725             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>
1726         </p>
1727         <br />
1728         <h1>About OpenERP</h1>
1729         <p>
1730             <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
1731             productivity and profit through data integration. It connects, improves and
1732             manages business processes in areas such as sales, finance, supply chain,
1733             project management, production, services, CRM, etc...
1734         </p>
1735         <p>
1736             The system is platform-independent, and can be installed on Windows, Mac OS X,
1737             and various Linux and other Unix-based distributions. Its architecture enables
1738             new functionality to be rapidly created, modifications to be made to a
1739             production system and migration to a new version to be straightforward.
1740         </p>
1741         <p>
1742             Depending on your needs, OpenERP is available through a web or application client.
1743         </p>
1744     </div>
1745 </t>
1746 <t t-name="FieldStatus.content">
1747     <ul class="oe-arrow-list">
1748         <t t-set="size" t-value="widget.to_show.length"/>
1749         <t t-foreach="_.range(size)" t-as="i">
1750             <li t-att-class="widget.to_show[i][0] === widget.selected_value ? 'oe-arrow-list-selected' : ''">
1751                 <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>
1752             </li>
1753         </t>
1754     </ul>
1755 </t>
1756 <t t-name="EmptyComponent">
1757     <div></div>
1758 </t>
1759 </templates>