1a5721d28f8726fc2b2b1beb40125c3dea32a39b
[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="EmptyComponent">
6     <div></div>
7 </t>
8 <t t-name="Loading">
9     <div class="oe_loading">
10         Loading...
11     </div>
12 </t>
13 <t t-name="Notification">
14     <div class="oe_notification" t-translation="off">
15         <div id="oe_notification_default">
16             <a class="ui-notify-cross ui-notify-close" href="#">x</a>
17             <h1>#{title}</h1>
18             <p>#{text}</p>
19         </div>
20         <div id="oe_notification_alert" class="ui-state-error">
21             <a class="ui-notify-cross ui-notify-close" href="#">x</a>
22             <span style="float:left; margin:2px 5px 0 0;" class="ui-icon ui-icon-alert"></span>
23             <h1>#{title}</h1>
24             <p>#{text}</p>
25         </div>
26     </div>
27 </t>
28 <t t-name="Tipsy.alert">
29     <a class="oe_tooltip_close oe_e">[</a>
30     <span style="float:left; margin:2px 5px 0 0;" class="ui-icon ui-icon-alert ui-state-error"></span>
31     <div class="oe_tooltip_message">
32         <t t-esc="message"/>
33     </div>
34 </t>
35
36 <t t-name="CrashManager.warning">
37     <table cellspacing="0" cellpadding="0" border="0" class="oe_dialog_warning">
38     <tr>
39         <td class="oe_dialog_icon"><img t-att-src='_s + "/web/static/src/img/warning.png"'/></td>
40         <td>
41             <p>
42                 <t t-js="d">
43                     var message = d.message ? d.message : d.error.data.message;
44                     d.html_error = context.engine.tools.html_escape(message)
45                         .replace(/\n/g, '<br/>');
46                 </t>
47                 <t t-raw="html_error"/>
48             </p>
49         </td>
50     </tr>
51     </table>
52 </t>
53 <t t-name="CrashManager.error">
54     <div class="oe_error_detail">
55         <pre><t t-esc="error.message"/></pre>
56         <hr/>
57         <pre><t t-esc="error.data.debug"/></pre>
58     </div>
59 </t>
60
61 <t t-name="DatabaseManager">
62     <div class="oe_view_manager_view_form">
63         <div class="oe_form">
64             <form id="db_create" name="create_db_form" style="display: block;">
65                 <div class="oe_view_manager oe_view_manager_current">
66                     <div class="oe_view_manager_header" style="padding: 8px;">
67                         <div class="oe_header_row">
68                             <h2 class="oe_view_title">
69                                 <span class="oe_view_title_text oe_breadcrumb_title">Create a New Database</span>
70                             </h2>
71                         </div>
72                     </div>
73                 </div>
74                 <p class="oe_grey" style="margin: 10px">
75                     Fill in this form to create an OpenERP database. You can
76                     create databases for different companies or for different
77                     goals (testing, production). Once the database is created,
78                     you will be able to install your first application.
79                 </p>
80                 <p class="oe_grey" style="margin: 10px">
81                     By default, the master password is 'admin'. This password
82                     is required to created, delete dump or restore databases.
83                 </p>
84                 <table class="db_option_table" style="margin: 10px">
85                     <tr>
86                         <td><label for="super_admin_pwd">Master password:</label></td>
87                         <td>
88                             <input type="password" name="super_admin_pwd" class="required" value="admin"/>
89                         </td>
90                     </tr>
91                     <tr>
92                         <td><label for="db_name">Select a database name:</label></td>
93                         <td>
94                             <input type="text" name="db_name" class="required" matches="^[a-zA-Z0-9][a-zA-Z0-9_-]+$" autofocus="true" placeholder="e.g. mycompany"/> 
95                         </td>
96                     </tr>
97                     <tr>
98                         <td><label for="demo_data">Load demonstration data:</label></td>
99                         <td class="oe_form_group_cell">
100                             <span class="oe_form_field oe_form_field_boolean oe_grey" >
101                                 <input type="checkbox" name="demo_data" />
102                                 Check this box to evaluate OpenERP.
103                             </span>
104                         </td>
105                     </tr>
106                     <tr>
107                         <td><label for="db_lang">Default language:</label></td>
108                         <td class="oe_form_field oe_form_field_selection">
109                             <select name="db_lang" t-if="widget.lang_list" class="oe_inline">
110                                 <t t-foreach="widget.lang_list" t-as="lang">
111                                     <option t-att-value="lang[0]" t-att-selected="lang[0] === 'en_US' ? 'selected' : undefined">
112                                         <t t-esc="lang[1]" />
113                                     </option>
114                                 </t>
115                             </select>
116                         </td>
117                     </tr>
118                     <tr>
119                         <td><label for="create_admin_pwd">Choose a password:</label></td>
120                         <td><input type="password" name="create_admin_pwd" class="required" /></td>
121                     </tr>
122                     <tr>
123                         <td><label for="create_confirm_pwd">Confirm password:</label></td>
124                         <td><input type="password" name="create_confirm_pwd" class="required" equalTo="input[name=create_admin_pwd]"/></td>
125                     </tr>
126                     <tr>
127                         <td></td>
128                         <td><button type="submit" class="oe_button oe_highlight db_create">Create Database</button></td>
129                     </tr>
130                 </table>
131             </form>
132             <form id="db_duplicate" name="duplicate_db_form" style="display: none;">
133                 <div class="oe_view_manager oe_view_manager_current">
134                     <div class="oe_view_manager_header" style="padding: 8px;">
135                         <div class="oe_header_row">
136                             <h2 class="oe_view_title">
137                                 <span class="oe_view_title_text oe_breadcrumb_title">Duplicate Database</span>
138                             </h2>
139                             <button type="submit" class="oe_button oe_highlight db_duplicate">Duplicate</button>
140                         </div>
141                     </div>
142                 </div>
143                 <table align="center" class="db_option_table">
144                     <tr>
145                         <td><label for="super_admin_pwd">Master password:</label></td>
146                         <td><input type="password" name="super_admin_pwd" class="required" value="admin" /></td>
147                     </tr>
148                     <tr>
149                         <td><label for="db_original_name">Original database name:</label></td>
150                         <td><input type="text" name="db_original_name" class="required" matches="^[a-zA-Z][a-zA-Z0-9_-]+$" autofocus="true"/></td>
151                     </tr>
152                     <tr>
153                         <td><label for="db_name">New database name:</label></td>
154                         <td><input type="text" name="db_name" class="required" matches="^[a-zA-Z][a-zA-Z0-9_-]+$" /></td>
155                     </tr>
156                 </table>
157             </form>
158             <form id="db_drop" name="drop_db_form" style="display: none; ">
159                 <div class="oe_view_manager oe_view_manager_current">
160                     <div class="oe_view_manager_header" style="padding: 8px;">
161                         <div class="oe_header_row">
162                             <h2 class="oe_view_title">
163                                 <span class="oe_view_title_text oe_breadcrumb_title">Drop Database</span>
164                             </h2>
165                             <button type="submit" class="oe_button oe_highlight db_drop">Drop</button>
166                         </div>
167                     </div>
168                 </div>
169                 <table align="center" class="db_option_table">
170                     <tr>
171                         <td><label for="drop_db">Database:</label></td>
172                         <td class="oe_form_field oe_form_field_selection">
173                             <select t-if="widget.db_list" name="drop_db" autofocus="autofocus">
174                                 <t t-foreach="widget.db_list" t-as="db">
175                                     <option t-att-value="db">
176                                         <t t-esc="db" />
177                                     </option>
178                                 </t>
179                             </select>
180                             <input t-if="!widget.db_list" name="drop_db" class="required" type="text" autofocus="autofocus"/>
181                         </td>
182                     </tr>
183                     <tr>
184                         <td><label for="drop_password">Master Password:</label></td>
185                         <td><input type="password" name="drop_pwd" class="required" /></td>
186                     </tr>
187                 </table>
188             </form>
189             <form id="db_backup" name="backup_db_form" target="backup-target" action="/web/database/backup" style="display: none;">
190                 <div class="oe_view_manager oe_view_manager_current">
191                     <div class="oe_view_manager_header" style="padding: 8px;">
192                         <div class="oe_header_row">
193                             <h2 class="oe_view_title">
194                                 <span class="oe_view_title_text oe_breadcrumb_title">Backup Database</span>
195                             </h2>
196                             <button type="submit" class="oe_button oe_highlight db_backup">Backup</button>
197                         </div>
198                     </div>
199                 </div>
200                 <input type="hidden" name="token" />
201                 <table align="center" class="db_option_table">
202                     <tr>
203                         <td><label for="backup_db">Database:</label></td>
204                         <td class="oe_form_field oe_form_field_selection ">
205                             <select t-if="widget.db_list" name="backup_db" autofocus="autofocus">
206                                 <t t-foreach="widget.db_list" t-as="db">
207                                     <option t-att-value="db">
208                                         <t t-esc="db" />
209                                     </option>
210                                 </t>
211                             </select>
212                             <input t-if="!widget.db_list" name="backup_db" class="required" type="text" autofocus="autofocus"/>
213                         </td>
214                     </tr>
215                     <tr>
216                         <td><label for="backup_pwd">Master Password:</label></td>
217                         <td><input type="password" name="backup_pwd" class="required" /></td>
218                     </tr>
219                 </table>
220             </form>
221             <form id="db_restore" name="restore_db_form" style="display: none; ">
222                 <div class="oe_view_manager oe_view_manager_current">
223                     <div class="oe_view_manager_header" style="padding: 8px;">
224                         <div class="oe_header_row">
225                             <h2 class="oe_view_title">
226                                 <span class="oe_view_title_text oe_breadcrumb_title">Restore Database</span>
227                             </h2>
228                             <button type="submit" class="oe_button oe_highlight db_restore">Restore</button>
229                         </div>
230                     </div>
231                 </div>
232                 <table align="center" class="db_option_table">
233                     <tr>
234                         <td><label for="restore_pwd">Master Password:</label></td>
235                         <td><input type="password" name="restore_pwd" class="required" autofocus="autofocus"/></td>
236                     </tr>
237                     <tr>
238                         <td><label for="restore_db">File:</label></td>
239                         <td><input type="file" name="db_file" class="required"/></td>
240                     </tr>
241                     <tr>
242                         <td><label for="new_db">New database name:</label></td>
243                         <td><input type="text" name="new_db" class="required"/></td>
244                     </tr>
245                     <tr>
246                         <td><label for="mode">Mode:</label></td>
247                         <td><select name="mode" class="required">
248                             <option value="restore">Backup Restore</option>
249                             <option value="copy">Copy of an existing database</option>
250                         </select></td>
251                     </tr>
252                 </table>
253             </form>
254             <form id="db_change_password" name="change_pwd_form" style="display: none;">
255                 <div class="oe_view_manager oe_view_manager_current">
256                     <div class="oe_view_manager_header" style="padding: 8px;">
257                         <div class="oe_header_row">
258                             <h2 class="oe_view_title">
259                                 <span class="oe_view_title_text oe_breadcrumb_title">Change Master Password</span>
260                             </h2>
261                             <button type="submit" class="oe_button oe_highlight db-change-password">Change Password</button>
262                         </div>
263                     </div>
264                 </div>
265                 <table align="center" class="db_option_table">
266                     <tr>
267                         <td><label for="old_pwd">Master password:</label></td>
268                         <td><input type="password" name="old_pwd" class="required" minlength="1" autofocus="autofocus"/></td>
269                     </tr>
270                     <tr>
271                         <td><label for="new_pwd">New master password:</label></td>
272                         <td><input type="password" name="new_pwd" class="required" minlength="1"/></td>
273                     </tr>
274                     <tr>
275                         <td><label for="confirm_pwd">Confirm new master password:</label></td>
276                         <td><input type="password" name="confirm_pwd" class="required" equalTo="input[name=new_pwd]" minlength="1"/> </td>
277                     </tr>
278                 </table>
279             </form>
280         </div>
281     </div>
282 </t>
283 <t t-name="DatabaseManager.user_menu">
284     <span class="oe_right">
285          <a id="back-to-login" href="#"><span class="oe_topbar_item oe_topbar_name">Back to Login</span></a>
286     </span>
287 </t>
288 <t t-name="DatabaseManager.menu">
289     <div class="oe_secondary_menu_section">Database Management</div>
290     <ul class="oe_secondary_submenu nav nav-pills nav-stacked">
291         <li><a href="#db_create">Create</a></li>
292         <li><a href="#db_duplicate">Duplicate</a></li>
293         <li><a href="#db_drop">Drop</a></li>
294         <li><a href="#db_backup">Backup</a></li>
295         <li><a href="#db_restore">Restore</a></li>
296         <li><a href="#db_change_password">Password</a></li>
297     </ul>
298 </t>
299
300 <t t-name="ChangePassword">
301     <form name="change_password_form" method="POST">
302       <div class="oe_form">
303         <table align="center">
304             <tr>
305                 <td class="oe_form_group_cell oe_form_group_cell_label"><label for="old_pwd" class="oe_form_label">Old Password:</label></td>
306                 <td class="oe_form_group_cell"><input type="password" name="old_pwd"
307                            minlength="1" autofocus="autofocus"/></td>
308             </tr>
309             <tr>
310             <td class="oe_form_group_cell oe_form_group_cell_label"><label for="new_password" class="oe_form_label">New Password:</label></td>
311             <td class="oe_form_group_cell"><input type="password" name="new_password"
312                        minlength="1"/></td>
313             </tr>
314             <tr>
315                 <td class="oe_form_group_cell oe_form_group_cell_label"><label for="confirm_pwd" class="oe_form_label">Confirm New Password:</label></td>
316                 <td class="oe_form_group_cell"><input type="password" name="confirm_pwd"
317                              minlength="1"/></td>
318             </tr>
319             <tr>
320                 <td colspan="2" align="right">
321                     <button class='oe_button oe_form_button'>Change Password</button>
322                     <span class="oe_fade oe_form_button"> or </span>
323                     <button type="button" class="oe_button oe_form_button_cancel oe_form_button oe_link" href="javascript:void(0)"><span>Cancel</span></button>
324                 </td>
325             </tr>
326         </table>
327       </div>
328     </form>
329 </t>
330
331 <t t-name="Menu">
332     <ul class="nav navbar-nav navbar-left" t-if="widget.data">
333         <li t-foreach="widget.data.data.children" t-as="menu">
334             <t t-call="Menu.link"/>
335         </li>
336         <li id="menu_more_container" class="dropdown" style="display: none;">
337             <a href="#" class="dropdown-toggle" data-toggle="dropdown">More <b class="caret"></b></a>
338             <ul id="menu_more" class="dropdown-menu"></ul>
339         </li>
340     </ul>
341 </t>
342 <t t-name="Menu.secondary">
343     <div t-foreach="widget.data.data.children" t-as="menu" style="display: none" class="oe_secondary_menu" t-att-data-menu-parent="menu.id">
344         <t t-foreach="menu.children" t-as="menu">
345             <div class="oe_secondary_menu_section">
346                 <t t-esc="menu.name"/>
347                 <!--
348                     Shall the section be still clickable ?
349                     <t t-call="Menu.link"/>
350                 -->
351             </div>
352             <t t-call="Menu.secondary.submenu"/>
353         </t>
354     </div>
355 </t>
356 <t t-name="Menu.secondary.submenu">
357     <ul t-if="menu.children.length" class="oe_secondary_submenu nav nav-pills nav-stacked">
358         <li t-foreach="menu.children" t-as="menu">
359             <t t-call="Menu.link"/>
360             <!--<span class="oe_menu_label">8</span>-->
361             <t t-call="Menu.secondary.submenu"/>
362         </li>
363     </ul>
364 </t>
365 <t t-name="Menu.link">
366     <a t-attf-href="#menu_id=#{menu.id}&amp;action=#{menu.action ? menu.action.split(',')[1] : ''}"
367         t-att-class="menu.children.length ? 'oe_menu_toggler' : 'oe_menu_leaf'"
368         t-att-data-menu="menu.id"
369         t-att-data-action-model="menu.action ? menu.action.split(',')[0] : ''"
370         t-att-data-action-id="menu.action ? menu.action.split(',')[1] : ''">
371         <span class="oe_menu_text">
372             <t t-esc="menu.name"/>
373         </span>
374     </a>
375 </t>
376
377 <t t-name="Menu.needaction_counter">
378     <div id="menu_counter" class="badge pull-right">
379         <t t-if="widget.needaction_counter &gt; 99"> 99+ </t>
380         <t t-if="widget.needaction_counter &lt;= 99"> <t t-esc="widget.needaction_counter"/> </t>
381     </div>
382 </t>
383
384 <t t-name="UserMenu">
385     <ul class="nav navbar-nav navbar-right">
386         <li class="dropdown">
387             <a href="#" class="dropdown-toggle" data-toggle="dropdown">
388                 <img class="oe_topbar_avatar" t-att-data-default-src="_s + '/web/static/src/img/user_menu_avatar.png'"/>
389                 <span class="oe_topbar_name"/> <b class="caret"></b>
390             </a>
391             <ul class="dropdown-menu">
392                 <li><a href="#" data-menu="settings">Preferences</a></li>
393                 <li><a href="#" data-menu="account">My OpenERP.com account</a></li>
394                 <li><a href="#" data-menu="about">About OpenERP</a></li>
395                 <li><a href="#" data-menu="help">Help</a></li>
396                 <li><a href="#" data-menu="logout">Log out</a></li>
397             </ul>
398         </li>
399     </ul>
400 </t>
401 <t t-name="UserMenu.about">
402
403     <div class="oe_about">
404       <a class="oe_activate_debug_mode oe_right" href="?debug" style="background-color: white; padding:2px 6px; border-radius: 10px;">Activate the developer mode</a>
405       <img class="oe_logo" src="/web/static/src/img/logo2.png"/>
406       <h3>Version <t t-esc="version_info.server_version"/></h3>
407
408       <div class="oe_bottom">
409         <p>Copyright Â© 2004-TODAY OpenERP SA. All Rights Reserved.<br />
410             OpenERP is a trademark of the <a target="_blank" href="http://openerp.com/" style="text-decoration: underline;">OpenERP SA Company</a>.</p>
411         <p>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></p>
412         <p>For more information visit <a target="_blank" href="http://openerp.com/" style="text-decoration: underline;">OpenERP.com</a></p>
413       </div>
414     </div>
415
416 </t>
417
418 <t t-name="WebClient">
419     <div class="openerp openerp_webclient_container">
420     <table class="oe_webclient">
421         <tr>
422             <td colspan="2" class="navbar navbar-default navbar-static-top oe_navbar" role="navigation">
423                 <div class="oe_menu_placeholder"/>
424                 <div class="oe_user_menu_placeholder"/>
425                 <div class="oe_systray"/>
426             </td>
427         </tr>
428         <tr>
429             <td class="oe_leftbar" valign="top">
430                 <t t-set="debug" t-value="__debug__ ? '&amp;debug' : ''"/>
431                 <a class="oe_logo" t-attf-href="/web?#{debug}">
432                     <span class="oe_logo_edit">Edit Company data</span>
433                     <img t-att-src='widget.session.url("/web/binary/company_logo")'/>
434                 </a>
435                 <div class="oe_secondary_menus_container"/>
436                 <div class="oe_footer">
437                     Powered by <a href="http://www.openerp.com" target="_blank"><span>OpenERP</span></a>
438                 </div>
439             </td>
440             <td class="oe_application">
441             </td>
442         </tr>
443     </table>
444     </div>
445 </t>
446 <t t-name="WebClient.timezone_notification">
447     <div class="oe_webclient_timezone_notification">
448         <p>Your user's preference timezone does not match your browser timezone:</p>
449
450         <dl>
451             <dt>User's timezone</dt>
452             <dd><t t-esc="user_timezone"/> (<t t-esc="user_offset"/>)</dd>
453             <dt>Browser's timezone</dt>
454             <dd><t t-esc="browser_offset"/></dd>
455         </dl>
456
457         <p><a href="#">Click here to change your user's timezone.</a></p>
458     </div>
459 </t>
460 <t t-name="WebClient.timezone_systray">
461     <div class="oe_topbar_item oe_timezone_systray" title="Timezone mismatch">
462         <span class="ui-icon ui-state-error ui-icon-alert"/>
463     </div>
464 </t>
465
466 <t t-name="EmbedClient">
467     <div class="openerp">
468         <div class="oe_application"></div>
469     </div>
470 </t>
471
472 <t t-name="ViewManager">
473     <div class="oe_view_manager">
474         <table class="oe_view_manager_header">
475             <col width="20%"/>
476             <col width="35%"/>
477             <col width="15%"/>
478             <col width="30%"/>
479             <tr class="oe_header_row oe_header_row_top">
480                 <td colspan="2">
481                         <h2 class="oe_view_title" t-if="widget.flags.display_title !== false">
482                             <span class="oe_view_title_text oe_breadcrumb_title"/>
483                         </h2>
484                 </td>
485                 <td colspan="2">
486                         <div class="oe_view_manager_view_search" t-opentag="true"/>
487                 </td>
488             </tr>
489             <tr class="oe_header_row">
490                 <td>
491                         <div class="oe_view_manager_buttons"/>
492                 </td>
493                 <td colspan="2">
494                         <div class="oe_view_manager_sidebar"/>
495                 </td>
496                 <td>
497                     <ul class="oe_view_manager_switch oe_button_group oe_right">
498                         <t t-if="widget.views_src.length > 1" t-foreach="widget.views_src" t-as="view">
499                           <li class="oe_e">
500                             <a t-attf-class="oe_vm_switch_#{view.view_type}" t-att-data-view-type="view.view_type"
501                                t-att-title="view.button_label"/>
502                           </li>
503                         </t>
504                     </ul>
505                     <div class="oe_view_manager_pager oe_right"/>
506                 </td>
507             </tr>
508         </table>
509
510         <div class="oe_view_manager_body">
511             <t t-foreach="widget.views_src" t-as="view">
512                 <div t-attf-class="oe_view_manager_view_#{view.view_type}"/>
513             </t>
514         </div>
515     </div>
516 </t>
517
518 <t t-name="ViewManagerAction" t-extend="ViewManager">
519     <t t-jquery="h2.oe_view_title" t-operation="before">
520         <select t-if="widget.session.debug" class="oe_debug_view"/>
521     </t>
522 </t>
523 <t t-name="ViewManagerDebug">
524     <option value="">Debug View#<t t-esc="view.fields_view.view_id"/></option>
525     <t t-if="view_manager.active_view === 'form'">
526         <option value="perm_read">View Log (perm_read)</option>
527         <option value="toggle_layout_outline">Toggle Form Layout Outline</option>
528         <option value="set_defaults">Set Defaults</option>
529     </t>
530     <option value="tests">JS Tests</option>
531     <option value="fields">View Fields</option>
532     <option value="fvg">Fields View Get</option>
533     <option value="manage_filters">Manage Filters</option>
534     <t t-if="view_manager.session.uid === 1">
535         <option value="translate">Technical translation</option>
536         <option value="manage_views">Manage Views</option>
537         <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>
538         <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>
539         <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>
540         <option value="edit_workflow">Edit Workflow</option>
541         <option value="print_workflow">Print Workflow</option>
542     </t>
543 </t>
544 <t t-name="ViewManagerDebugViewLog">
545     <div class="oe_debug_view_log">
546         <table class="table table-condensed table-striped">
547             <tr>
548                 <th>ID:</th>
549                 <td><t t-esc="perm.id"/></td>
550             </tr>
551             <tr>
552                 <th>XML ID:</th>
553                 <td><t t-esc="perm.xmlid or '/'"/></td>
554             </tr>
555             <tr>
556                 <th>Creation User:</th>
557                 <td><t t-esc="format(perm.create_uid, { 'type' : 'many2one' }, '/')"/></td>
558             </tr>
559             <tr>
560                 <th>Creation Date:</th>
561                 <td><t t-esc="format(perm.create_date, { 'type' : 'datetime' }, '/')"/></td>
562             </tr>
563             <tr>
564                 <th>Latest Modification by:</th>
565                 <td><t t-esc="format(perm.write_uid, { 'type' : 'many2one' }, '/')"/></td>
566             </tr>
567             <tr>
568                 <th>Latest Modification Date:</th>
569                 <td><t t-esc="format(perm.write_date, { 'type' : 'datetime' }, '/')"/></td>
570             </tr>
571         </table>
572     </div>
573 </t>
574 <t t-name="ViewPager">
575     <div class="oe_pager_value">
576         <t t-raw="__content__"/>
577     </div>
578     <ul class="oe_pager_group">
579         <!--
580         <button class="oe_button oe_button_pager" type="button" data-pager-action="first">
581             <img t-att-src='_s + "/web/static/src/img/pager_first.png"'/>
582         </button>
583         -->
584         <li>
585             <a class="oe_i" type="button" data-pager-action="previous">(</a>
586         </li>
587         <li>
588             <a class="oe_i" type="button" data-pager-action="next">)</a>
589         </li>
590         <!--
591         <button class="oe_button oe_button_pager" type="button" data-pager-action="last">
592             <img t-att-src='_s + "/web/static/src/img/pager_last.png"'/>
593         </button>
594         -->
595     </ul>
596 </t>
597
598 <t t-name="Sidebar">
599     <div class="oe_sidebar">
600         <t t-foreach="widget.sections" t-as="section">
601             <div class="oe_form_dropdown_section">
602                 <button class="oe_dropdown_toggle oe_dropdown_arrow">
603                     <t t-if="section.name == 'files'" t-raw="widget.items[section.name].length || ''"/>
604                     <t t-esc="section.label"/>
605                 </button>
606                 <ul class="oe_dropdown_menu">
607                     <li t-foreach="widget.items[section.name]" t-as="item" t-att-class="item.classname">
608                         <t t-if="section.name == 'files'">
609                             <t t-set="item.title">
610                                 <b>Attachment : </b><br/>
611                                 <t t-raw="item.name"/>
612                             </t>
613                             <t t-if="item.create_uid and item.create_uid[0]" t-set="item.title">
614                                 <t t-raw="item.title"/><br/>
615                                 <b>Created by : </b><br/>
616                                 <t t-raw="item.create_uid[1] + ' ' + item.create_date"/>
617                             </t>
618                             <t t-if="item.create_uid and item.write_uid and item.create_uid[0] != item.write_uid[0]" t-set="item.title">
619                                 <t t-raw="item.title"/><br/>
620                                 <b>Modified by : </b><br/>
621                                 <t t-raw="item.write_uid[1] + ' ' + item.write_date"/>
622                             </t>
623                         </t>
624                         <a class="oe_sidebar_action_a" t-att-title="item.title or ''" t-att-data-section="section.name" t-att-data-index="item_index" t-att-href="item.url" target="_blank">
625                             <t t-raw="item.label"/>
626                         </a>
627                          <a t-if="section.name == 'files' and !item.callback" class="oe_sidebar_delete_item" t-att-data-id="item.id" title="Delete this attachment">x</a>
628                     </li>
629                     <li t-if="section.name == 'files'" class="oe_sidebar_add_attachment">
630                         <t t-call="HiddenInputFile">
631                             <t t-set="fileupload_id" t-value="widget.fileupload_id"/>
632                             <t t-set="fileupload_action" t-translation="off">/web/binary/upload_attachment</t>
633                             <input type="hidden" name="model" t-att-value="widget.dataset and widget.dataset.model"/>
634                             <input type="hidden" name="id" t-att-value="widget.model_id"/>
635                             <input type="hidden" name="session_id" t-att-value="widget.session.session_id" t-if="widget.session.override_session"/>
636                             <span>Add...</span>
637                         </t>
638                     </li>
639                 </ul>
640             </div>
641         </t>
642     </div>
643 </t>
644
645 <t t-name="TreeView">
646     <select t-if="toolbar" style="width: 30%">
647     </select>
648     <table class="oe_tree_table oe-treeview-table">
649         <thead>
650             <tr>
651                 <th t-foreach="fields_view" t-as="field"
652                     t-if="!field.attrs.modifiers.tree_invisible"
653                     class="treeview-header">
654                     <t t-esc="field_value.attrs.string || fields[field.attrs.name].string" />
655                 </th>
656             </tr>
657         </thead>
658         <tbody>
659         </tbody>
660     </table>
661 </t>
662 <tr t-name="TreeView.rows"
663         t-foreach="records" t-as="record"
664         t-att-id="'treerow_' + record.id"
665         t-att-data-id="record.id" t-att-data-level="level + 1"
666         t-att-data-row-parent-id="row_parent_id">
667     <t t-set="children" t-value="record[children_field]"/>
668     <t t-set="class" t-value="children and children.length ? 'treeview-tr' : 'treeview-td'"/>
669     <t t-set="rank" t-value="'oe-treeview-first'"/>
670     <t t-set="style" t-value="'background-position: ' + 19*(level) + 'px; padding-left: ' + (4 + 19*(level)) + 'px;'"/>
671
672     <td t-foreach="fields_view" t-as="field"
673         t-if="!field.attrs.modifiers.tree_invisible"
674         t-att-data-id="record.id"
675         t-att-style="color_for(record) + style "
676         t-attf-class="#{class} #{rank} #{(fields[field.attrs.name].type === 'float') or (fields[field.attrs.name].type === 'integer') ? 'oe_number' : ''}">
677
678         <span t-if="!field.attrs.modifiers.invisible" >
679             <t t-esc="render(record[field.attrs.name], fields[field.attrs.name])" />
680         </span>
681
682         <t t-set="class" t-value="'treeview-td'"/>
683         <t t-set="rank" t-value="''"/>
684         <t t-set="style" t-value="''"/>
685     </td>
686 </tr>
687
688 <table t-name="ListView" class="oe_list_content">
689     <t t-set="columns_count" t-value="visible_columns.length + (options.selectable ? 1 : 0) + (options.deletable ? 1 : 0)"/>
690     <thead>
691         <tr t-if="(!!options.action_buttons and !options.$buttons) or (!!options.pager and !options.$pager)">
692             <th t-att-colspan="columns_count">
693                 <div class="oe_list_buttons"/>
694                 <div class="oe_list_sidebar"/>
695                 <div class="oe_list_pager"/>
696             </th>
697         </tr>
698         <tr t-if="options.header" class="oe_list_header_columns">
699             <t t-foreach="columns" t-as="column">
700                 <th t-if="column.meta">
701                     <t t-esc="column.string"/>
702                 </th>
703             </t>
704             <th t-if="options.selectable" width="1"  >
705                 <input type="checkbox" class="oe_list_record_selector"/>
706             </th>
707             <t t-foreach="columns" t-as="column">
708                 <th t-if="!column.meta and column.invisible !== '1'" t-att-data-id="column.id"
709                     t-attf-class="oe_list_header_#{column.widget or column.type} #{((options.sortable and column.tag !== 'button') ? 'oe_sortable' : null)}"><div>
710                     <t t-if="column.tag !== 'button'"><t t-esc="column.string"/></t>
711                 </div></th>
712             </t>
713             <th t-if="options.deletable" class="oe_list_record_delete" width="13px"/>
714         </tr>
715     </thead>
716     <tfoot>
717         <tr>
718             <td t-if="options.selectable"/>
719             <td t-foreach="aggregate_columns" t-as="column" class="oe_list_footer oe_number"
720                 t-att-data-field="column.id" t-att-title="column.label">
721             </td>
722             <td t-if="options.deletable" class="oe_list_record_delete"/>
723         </tr>
724     </tfoot>
725 </table>
726 <t t-name="ListView.buttons">
727     <div class="oe_list_buttons">
728     <t t-if="!widget.no_leaf and widget.options.action_buttons !== false and widget.options.addable and widget.is_action_enabled('create')">
729         <button type="button" class="oe_button oe_list_add oe_highlight">
730             <t t-esc="widget.options.addable"/>
731         </button>
732     </t>
733     </div>
734 </t>
735 <t t-name="ListView.pager">
736     <div class="oe_list_pager" t-att-colspan="widget.columns_count">
737         <t t-if="!widget.no_leaf and widget.options.pager !== false" t-call="ViewPager">
738             <span class="oe_list_pager_state">
739             </span>
740         </t>
741     </div>
742 </t>
743 <t t-name="ListView.rows" t-foreach="records.length" t-as="index">
744     <t t-call="ListView.row">
745         <t t-set="record" t-value="records.at(index)"/>
746     </t>
747 </t>
748 <tr t-name="ListView.row"
749         t-att-data-id="record.get('id')"
750         t-att-style="view.style_for(record)">
751     <t t-set="asData" t-value="record.toForm().data"/>
752     <t t-foreach="columns" t-as="column">
753         <td t-if="column.meta"> </td>
754     </t>
755     <th t-if="options.selectable" class="oe_list_record_selector" width="1">
756         <t t-set="checked" t-value="options.select_view_id == record.get('id') ? 'checked' : null"/>
757         <input t-if="options.radio" type="radio" name="radiogroup" t-att-checked="checked"/>
758         <input t-if="!options.radio" type="checkbox" name="radiogroup" t-att-checked="checked"/>
759     </th>
760     <t t-foreach="columns" t-as="column">
761         <t t-set="number" t-value="column.type === 'integer' or column.type == 'float'"/>
762         <t t-set="modifiers" t-value="column.modifiers_for(asData)"/>
763         <td t-if="!column.meta and column.invisible !== '1'" t-att-title="column.help"
764             t-attf-class="oe_list_field_cell oe_list_field_#{column.widget or column.type} #{number ? 'oe_number' : ''} #{column.tag === 'button' ? 'oe-button' : ''} #{modifiers.readonly ? 'oe_readonly' : ''} #{modifiers.required ? 'oe_required' : ''}"
765             t-att-data-field="column.id"
766             ><t t-raw="render_cell(record, column)"/></td>
767     </t>
768     <td t-if="options.deletable" class='oe_list_record_delete' width="13px">
769         <button type="button" name="delete" class="oe_i">d</button>
770     </td>
771 </tr>
772 <t t-extend="ListView.buttons">
773     <t t-jquery="button.oe_list_add" t-operation="after">
774         <button class="oe_button oe_list_save oe_highlight"
775                 type="button">Save</button>
776         <span class="oe_alternative">
777             <span class="oe_fade">or</span>
778             <a href="#" class="oe_bold oe_list_discard">Discard</a>
779         </span>
780     </t>
781 </t>
782 <button t-name="ListView.row.button" type="button"
783         t-att-title="widget.string" t-att-disabled="disabled || undefined"
784         t-att-class="disabled ? 'oe_list_button_disabled' : undefined"
785     ><img t-attf-src="#{prefix}/web/static/src/img/icons/#{widget.icon}.png"
786          t-att-alt="widget.string"/></button>
787 <t t-extend="ListView.row">
788     <!-- adds back padding to row being rendered after edition, if necessary
789          (if not deletable add back padding), otherwise the row being added is
790          missing columns
791      -->
792     <t t-jquery="&gt; :last" t-operation="after">
793         <td t-if="edited and !options.deletable" class="oe-listview-padding"/>
794     </t>
795 </t>
796
797 <t t-name="FormView">
798     <div class="oe_formview">
799         <div class="oe_form_buttons"/>
800         <div class="oe_form_sidebar"/>
801         <div class="oe_form_pager"/>
802         <div class="oe_form_container"/>
803     </div>
804 </t>
805 <div t-name="FormView.buttons" class="oe_form_buttons">
806     <t t-if="widget.options.action_buttons !== false">
807         <span class="oe_form_buttons_view">
808             <!-- required for the bounce effect on button -->
809             <div t-if="widget.is_action_enabled('edit')" style="display: inline-block;">
810                 <button type="button" class="oe_button oe_form_button_edit" accesskey="E">Edit</button>
811             </div>
812             <button t-if="widget.is_action_enabled('create')"
813                 type="button" class="oe_button oe_form_button_create" accesskey="C">Create</button>
814         </span>
815         <span class="oe_form_buttons_edit">
816             <button type="button" class="oe_button oe_form_button_save oe_highlight" accesskey="S">Save</button>
817             <span class="oe_fade">or</span>
818             <a href="#" class="oe_bold oe_form_button_cancel" accesskey="D">Discard</a>
819         </span>
820     </t>
821 </div>
822 <t t-name="FormView.pager">
823     <div class="oe_form_pager">
824         <t t-if="widget.options.pager !== false" t-call="ViewPager">
825             <span class="oe_form_pager_state"></span>
826         </t>
827     </div>
828 </t>
829 <form t-name="FormView.set_default">
830     <t t-set="args" t-value="widget.dialog_options.args"/>
831     <table style="width: 100%">
832         <tr>
833             <td>
834                 <label for="formview_default_fields"
835                        class="oe_label oe_align_right">
836                     Default:
837                 </label>
838             </td>
839             <td class="oe_form_required">
840                 <select id="formview_default_fields">
841                     <option value=""/>
842                     <option t-foreach="args.fields" t-as="field"
843                             t-att-value="field.name">
844                         <t t-esc="field.string"/> = <t t-esc="field.displayed"/>
845                     </option>
846                 </select>
847             </td>
848         </tr>
849         <tr t-if="args.conditions.length">
850             <td>
851                 <label for="formview_default_conditions"
852                        class="oe_label oe_align_right">
853                     Condition:
854                 </label>
855             </td>
856             <td>
857                 <select id="formview_default_conditions">
858                     <option value=""/>
859                     <option t-foreach="args.conditions" t-as="cond"
860                             t-att-value="cond.name + '=' + cond.value">
861                         <t t-esc="cond.string"/>=<t t-esc="cond.displayed"/>
862                     </option>
863                 </select>
864             </td>
865         </tr>
866         <tr>
867             <td colspan="2">
868                 <input type="radio" id="formview_default_self"
869                        value="self" name="scope" checked="checked"/>
870                 <label for="formview_default_self" class="oe_label"
871                        style="display: inline;">
872                     Only you
873                 </label>
874                 <br/>
875                 <input type="radio" id="formview_default_all"
876                        value="all" name="scope"/>
877                 <label for="formview_default_all" class="oe_label"
878                        style="display: inline;">
879                     All users
880                 </label>
881             </td>
882         </tr>
883     </table>
884 </form>
885
886 <t t-name="FormRenderingForm">
887     <div t-attf-class="#{classnames}">
888     </div>
889 </t>
890 <t t-name="FormRenderingSheet">
891     <div class="oe_form_sheetbg">
892         <div t-attf-class="oe_form_sheet oe_form_sheet_width #{classnames}">
893         </div>
894     </div>
895 </t>
896 <t t-name="FormRenderingGroup">
897     <t t-if="string" t-call="FormRenderingSeparator"/>
898     <table border="0" cellpadding="0" cellspacing="0" t-attf-class="oe_form_group #{classnames}"/>
899 </t>
900 <t t-name="FormRenderingNotebook">
901     <div class="oe_clear">
902         <ul t-attf-class="oe_notebook #{classnames}">
903             <li t-foreach="pages" t-as="page" t-att-modifiers="page.modifiers">
904                 <a t-attf-href="##{page.id}" t-att-accesskey="page.accesskey">
905                     <t t-esc="page.string"/>
906                 </a>
907             </li>
908         </ul>
909     </div>
910 </t>
911 <t t-name="FormRenderingNotebookPage">
912     <div t-attf-class="oe_notebook_page #{classnames}" t-att-id="id">
913     </div>
914 </t>
915 <t t-name="FormRenderingSeparator">
916     <div t-attf-class="oe_horizontal_separator oe_clear #{classnames}">
917         <t t-esc="string"/>
918     </div>
919 </t>
920 <t t-name="FormRenderingLabel">
921     <label  t-att-for="_for"
922             t-att-title="help"
923             t-attf-class="#{classnames} oe_form_label#{help ? '_help' : ''} oe_align_#{align}">
924         <t t-esc="string"/>
925     </label>
926 </t>
927
928 <t t-name="Widget">
929     Unhandled widget
930     <t t-js="dict">console.warn('Unhandled widget', dict.widget);</t>
931 </t>
932 <t t-name="WidgetLabel.tooltip">
933     <div class="oe_tooltip_string" t-if="widget.string">
934         <t t-esc="widget.node.attrs.string"/> <t t-if="debug and widget.nolabel">(nolabel)</t>
935     </div>
936     <p t-if="widget.node.attrs.help or (widget.field and widget.field.help)" class="oe_tooltip_help"><t t-esc="widget.node.attrs.help || widget.field.help"/></p>
937     <ul t-if="debug" class="oe_tooltip_technical">
938         <li data-item="field" t-if="widget.name">
939             <span class="oe_tooltip_technical_title">Field:</span>
940             <t t-esc="widget.name"/>
941         </li>
942         <li data-item="object" t-if="widget.view and widget.view.fields_view">
943             <span class="oe_tooltip_technical_title">Object:</span>
944             <t t-esc="widget.view.fields_view.model"/>
945         </li>
946         <li data-item="type" t-if="widget.field">
947             <span class="oe_tooltip_technical_title">Type:</span>
948             <t t-esc="widget.field.type"/>
949         </li>
950         <li t-if="widget.node.attrs.widget" data-item="widget">
951             <span class="oe_tooltip_technical_title">Widget:</span>
952             <t t-esc="widget.node.attrs.widget"/>
953         </li>
954         <li t-if="widget.node.attrs.size || (widget.field and widget.field.size)" data-item="size">
955             <span class="oe_tooltip_technical_title">Size:</span>
956             <t t-esc="widget.node.attrs.size || widget.field.size"/>
957         </li>
958         <li t-if="widget.node.attrs.context" data-item="context">
959             <span class="oe_tooltip_technical_title">Context:</span>
960             <t t-esc="widget.node.attrs.context"/>
961         </li>
962         <li t-if="widget.node.attrs.domain" data-item="domain">
963             <span class="oe_tooltip_technical_title">Domain:</span>
964             <t t-esc="widget.node.attrs.domain"/>
965         </li>
966         <li t-if="widget.node.attrs.modifiers and widget.node.attrs.modifiers != '{}'" data-item="modifiers">
967             <span class="oe_tooltip_technical_title">Modifiers:</span>
968             <t t-esc="widget.node.attrs.modifiers"/>
969         </li>
970         <li t-if="widget.field and widget.field.change_default" data-item="change_default">
971             <span class="oe_tooltip_technical_title">Change default:</span>
972             Yes
973         </li>
974         <li t-if="widget.node.attrs.on_change" data-item="on_change">
975             <span class="oe_tooltip_technical_title">On change:</span>
976             <t t-esc="widget.node.attrs.on_change"/>
977         </li>
978         <li t-if="widget.field and widget.field.relation" data-item="relation">
979             <span class="oe_tooltip_technical_title">Relation:</span>
980             <t t-esc="widget.field.relation"/>
981         </li>
982         <li t-if="widget.field and widget.field.selection" data-item="selection">
983             <span class="oe_tooltip_technical_title">Selection:</span>
984             <ul>
985                 <li t-foreach="widget.field.selection" t-as="option">
986                     [<t t-esc="option[0]"/>]
987                     <t t-if="option[1]"> - </t>
988                     <t t-esc="option[1]"/>
989                 </li>
990             </ul>
991         </li>
992     </ul>
993 </t>
994 <t t-name="FieldChar">
995     <span t-att-class="'oe_form_field '+widget.widget_class" t-att-style="widget.node.attrs.style">
996         <t t-if="!widget.get('effective_readonly')">
997             <input t-att-type="widget.password ? 'password' : 'text'"
998                 t-att-id="widget.id_for_label"
999                 t-att-tabindex="widget.node.attrs.tabindex"
1000                 t-att-autofocus="widget.node.attrs.autofocus"
1001                 t-att-placeholder="widget.node.attrs.placeholder"
1002                 t-att-maxlength="widget.field.size"
1003             /><img class="oe_field_translate oe_input_icon" t-if="widget.field.translate" t-att-src='_s + "/web/static/src/img/icons/terp-translate.png"' width="16" height="16" border="0"/>
1004         </t>
1005         <t t-if="widget.get('effective_readonly')">
1006             <span class="oe_form_char_content"></span>
1007         </t>
1008     </span>
1009 </t>
1010 <t t-name="FieldEmail">
1011     <span class="oe_form_field oe_form_field_email" t-att-style="widget.node.attrs.style">
1012         <a t-if="widget.get('effective_readonly')" href="#" class="oe_form_uri" target="_blank"/>
1013         <t t-if="!widget.get('effective_readonly')">
1014             <div>
1015                 <input type="text"
1016                     t-att-id="widget.id_for_label"
1017                     t-att-tabindex="widget.node.attrs.tabindex"
1018                     t-att-autofocus="widget.node.attrs.autofocus"
1019                     t-att-placeholder="widget.node.attrs.placeholder"
1020                 t-att-maxlength="widget.field.size"
1021                 />
1022             </div>
1023         </t>
1024     </span>
1025 </t>
1026 <t t-name="FieldUrl" t-extend="FieldEmail">
1027     <t t-jquery="span:first">
1028         this.removeClass('oe_form_field_email').addClass('oe_form_field_url');
1029     </t>
1030 </t>
1031 <t t-name="FieldText">
1032     <div class="oe_form_field oe_form_field_text" t-att-style="widget.node.attrs.style">
1033         <t t-if="!widget.get('effective_readonly')">
1034             <textarea rows="6"
1035                 t-att-name="widget.name"
1036                 class="field_text"
1037                 t-att-tabindex="widget.node.attrs.tabindex"
1038                 t-att-autofocus="widget.node.attrs.autofocus"
1039                 t-att-placeholder="! widget.get('effective_readonly') ? widget.node.attrs.placeholder : ''"
1040                 t-att-maxlength="widget.field.size"
1041             ></textarea><img class="oe_field_translate oe_input_icon"
1042                             t-if="widget.field.translate and !widget.get('effective_readonly')"
1043                             t-att-src='_s + "/web/static/src/img/icons/terp-translate.png"' width="16" height="16" border="0"
1044             />            
1045         </t>
1046         <t t-if="widget.get('effective_readonly')">
1047             <span class="oe_form_text_content"></span>
1048         </t>
1049     </div>
1050 </t>
1051 <t t-name="FieldTextHtml">
1052     <div t-att-class="'oe_form_field oe_form_field_html' + (widget.get('effective_readonly') ? ' oe_form_embedded_html' : '')"
1053             t-att-style="widget.node.attrs.style">
1054         <t t-if="! widget.get('effective_readonly')">
1055             <textarea/>
1056         </t>
1057     </div>
1058 </t>
1059 <t t-name="web.datepicker">
1060     <span>
1061         <t t-set="placeholder" t-value="widget.getParent().node and widget.getParent().node.attrs.placeholder"/>
1062         <input type="text" class="oe_datepicker_container" disabled="disabled" style="display: none;"/>
1063         <input type="text"
1064             t-att-name="widget.name"
1065             t-att-placeholder="placeholder"
1066             class="oe_datepicker_master"
1067         /><img class="oe_input_icon oe_datepicker_trigger" draggable="false"
1068                t-att-src='_s + "/web/static/src/img/ui/field_calendar.png"'
1069                title="Select date" width="16" height="16" border="0"/>
1070     </span>
1071 </t>
1072 <t t-name="FieldDate">
1073     <span class="oe_form_field oe_datepicker_root oe_form_field_date" t-att-style="widget.node.attrs.style"/>
1074 </t>
1075 <t t-name="FieldDatetime">
1076     <span class="oe_form_field oe_datepicker_root oe_form_field_datetime" t-att-style="widget.node.attrs.style"/>
1077 </t>
1078 <t t-name="FieldSelection">
1079     <span class="oe_form_field oe_form_field_selection" t-att-style="widget.node.attrs.style">
1080     </span>
1081 </t>
1082 <t t-name="FieldSelectionSelect">
1083     <select t-if="!widget.get('effective_readonly')"
1084         t-att-name="widget.name"
1085         t-att-tabindex="widget.node.attrs.tabindex"
1086         t-att-autofocus="widget.node.attrs.autofocus"
1087         t-att-id="widget.id_for_label">
1088             <t t-foreach="values" t-as="option">
1089                 <option t-att-value="JSON.stringify(option[0])">
1090                     <t t-esc="option[1]"/>
1091                 </option>
1092             </t>
1093     </select>
1094 </t>
1095 <t t-name="FieldRadio">
1096     <span t-attf-class="oe_form_field oe_form_field_radio #{widget.options.horizontal ? 'oe_horizontal' : 'oe_vertical'}" t-att-style="widget.node.attrs.style">
1097         <span t-if="!widget.get('effective_readonly')">
1098             <t t-if="widget.options.horizontal">
1099                 <t t-set="width" t-value="Math.floor(100 / widget.selection.length)"/>
1100                 <t t-if="!widget.options.no_radiolabel">
1101                     <t t-foreach="widget.selection" t-as="selection">
1102                         <label t-att-for="widget.uniqueId + '_' + selection[0]" t-att-style="'width: ' + width + '%;'"><t t-esc="selection[1]"/></label>
1103                     </t>
1104                     <br/>
1105                 </t>
1106                 <t t-foreach="widget.selection" t-as="selection">
1107                     <div t-att-style="'width: ' + width + '%;'">
1108                         <span class="oe_radio_input"><input type="radio" t-att-name="widget.uniqueId" t-att-id="widget.uniqueId + '_' + selection[0]" t-att-value="selection[0]"/></span>
1109                     </div>
1110                 </t>
1111             </t>
1112             <t t-if="!widget.options.horizontal">
1113                 <t t-foreach="widget.selection" t-as="selection">
1114                     <div>
1115                         <span class="oe_radio_input"><input type="radio" t-att-id="widget.uniqueId + '_' + selection[0]" t-att-name="widget.uniqueId" t-att-value="selection[0]"/></span><label t-if="!widget.options.no_radiolabel" t-att-for="widget.uniqueId + '_' + selection[0]"><t t-esc="selection[1]"/></label>
1116                     </div>
1117                 </t>
1118             </t>
1119         </span>
1120         <span t-if="widget.get('effective_readonly')" class="oe_radio_readonly"><t t-esc="widget.get('value')[1]"/></span>
1121     </span>
1122 </t>
1123 <t t-name="FieldMany2One">
1124     <span class="oe_form_field oe_form_field_many2one oe_form_field_with_button" t-att-style="widget.node.attrs.style">
1125         <t t-if="widget.get('effective_readonly')">
1126             <a t-if="! widget.options.no_open" href="#" class="oe_form_uri"/>
1127             <span t-if="widget.options.no_open" href="#" class="oe_form_uri"/>
1128             <span class="oe_form_m2o_follow"/>
1129         </t>
1130         <t t-if="!widget.get('effective_readonly')">
1131             <a t-if="! widget.options.no_open" href="#" tabindex="-1"
1132                 class="oe_m2o_cm_button oe_e" draggable="false">/</a>
1133             <div>
1134                 <input type="text"
1135                     t-att-id="widget.id_for_label"
1136                     t-att-tabindex="widget.node.attrs.tabindex"
1137                     t-att-autofocus="widget.node.attrs.autofocus"
1138                     t-att-placeholder="widget.node.attrs.placeholder"
1139                 />
1140                 <span class="oe_m2o_drop_down_button">
1141                     <img t-att-src='_s + "/web/static/src/img/down-arrow.png"' draggable="false"/>
1142                 </span>
1143             </div>
1144         </t>
1145     </span>
1146 </t>
1147 <t t-name="Many2OneButton">
1148     <span class="oe_form_field">
1149     </span>
1150 </t>
1151 <t t-name="Many2OneButton.cell"
1152     ><img t-attf-src="#{prefix}/web/static/src/img/icons/#{widget.icon}.png" t-att-alt="widget.string" width="16" height="16"/>
1153 </t>
1154 <t t-name="FieldMany2ManyTags">
1155     <div class="oe_form_field oe_tags" t-att-style="widget.node.attrs.style">
1156         <t t-if="! widget.get('effective_readonly')">
1157             <textarea rows="1" style="width: 100%"
1158                 t-att-placeholder="widget.node.attrs.placeholder"></textarea>
1159         </t>
1160     </div>
1161 </t>
1162 <t t-name="FieldMany2ManyTag">
1163     <t t-set="i" t-value="0"/>
1164     <t t-foreach="elements" t-as="el">
1165         <span class="oe_tag" t-att-data-index="i">
1166             <t t-esc="el[1]"/>
1167         </span>
1168         <t t-set="i" t-value="i + 1"/>
1169     </t>
1170 </t>
1171 <t t-name="FieldReference">
1172     <table class="oe_form_field oe_form_field_reference" border="0" cellpadding="0" cellspacing="0" t-att-style="widget.node.attrs.style">
1173     <tr>
1174         <td t-attf-class="oe_form_frame_cell oe_form_selection">
1175             <span t-attf-class="oe_form_view_reference_selection"/>
1176         </td>
1177         <td t-attf-class="oe_form_frame_cell oe_form_many2one" nowrap="true">
1178             <span t-attf-class="oe_form_view_reference_m2o"/>
1179         </td>
1180     </tr>
1181     </table>
1182 </t>
1183 <t t-name="FieldBoolean">
1184     <span class="oe_form_field oe_form_field_boolean" t-att-style="widget.node.attrs.style">
1185         <input type="checkbox"
1186             t-att-id="widget.id_for_label"
1187             t-att-name="widget.name"
1188             t-att-tabindex="widget.node.attrs.tabindex"
1189             t-att-autofocus="widget.node.attrs.autofocus"
1190             class="field_boolean"/>
1191     </span>
1192 </t>
1193 <t t-name="FieldProgressBar">
1194     <span class="oe_form_field oe_form_field_progressbar" t-att-style="widget.node.attrs.style">
1195         <span></span>
1196     </span>
1197 </t>
1198 <t t-name="FieldPercentPie">
1199     <span class="oe_form_field oe_form_field_percent_pie" t-att-style="widget.node.attrs.style">
1200         <svg></svg>
1201     </span>
1202 </t>
1203 <t t-name="FieldStatus">
1204     <ul t-att-class="'oe_form_field_status ' + (widget.options.clickable ? 'oe_form_status_clickable' : 'oe_form_status')" t-att-style="widget.node.attrs.style"/>
1205 </t>
1206 <t t-name="FieldStatus.content">
1207     <t t-foreach="widget.selection.unfolded" t-as="i">
1208         <li t-att-class="i[0] === widget.get('value') ? 'oe_active' : ''" t-att-data-id="i[0]">
1209             <span class="label"><t t-esc="i[1]"/></span>
1210             <!-- are you mit ? -->
1211             <span class="arrow"><span></span></span>
1212         </li>
1213     </t>
1214     <t t-if="widget.selection.folded.length">
1215         <li>
1216             <span class="label oe_dropdown_toggle oe_dropdown_arrow">More</span>
1217             <ul class="oe_dropdown_menu">
1218                 <t t-foreach="widget.selection.folded" t-as="i">
1219                     <li t-att-class="i[0] === widget.get('value') ? 'oe_active' : ''" t-att-data-id="i[0]">
1220                         <span class="label"><t t-esc="i[1]"/></span>
1221                     </li>
1222                 </t>
1223             </ul>
1224         </li>
1225     </t>
1226 </t>
1227 <t t-name="FieldBinaryImage">
1228     <span class="oe_form_field oe_form_field_image" t-att-style="widget.node.attrs.style">
1229         <div class="oe_form_field_image_controls oe_edit_only">
1230             <t t-call="HiddenInputFile">
1231                 <t t-set="fileupload_id" t-value="widget.fileupload_id"/>
1232                 Edit 
1233             </t>
1234             <div class="oe_form_binary_progress" style="display: none">
1235                 <img t-att-src='_s + "/web/static/src/img/throbber.gif"' width="16" height="16"/>
1236                 <b>Uploading ...</b>
1237             </div>
1238         </div>
1239     </span>
1240 </t>
1241 <t t-name="FieldBinaryImage-img">
1242     <img t-att-src='url'
1243         t-att-border="widget.readonly ? 0 : 1"
1244         t-att-name="widget.name"
1245         t-att-width="widget.node.attrs.img_width || widget.node.attrs.width"
1246         t-att-height="widget.node.attrs.img_height || widget.node.attrs.height"
1247     />
1248 </t>
1249 <t t-name="FieldBinaryFile">
1250     <t t-if="!widget.get('effective_readonly')">
1251         <table class="oe_form_field oe_form_field_binary" cellpadding="0" cellspacing="0" border="0" t-att-style="widget.node.attrs.style">
1252         <tr>
1253             <td>
1254                 <input type="text" size="1" readonly="readonly"
1255                     t-att-name="widget.name"
1256                     t-att-tabindex="widget.node.attrs.tabindex"
1257                     t-att-autofocus="widget.node.attrs.autofocus"
1258                     class="field_binary"
1259                 />
1260             </td>
1261             <td class="oe_form_binary" nowrap="true">
1262                 <table cellspacing="0" cellpadding="0" border="0">
1263                 <tr>
1264                     <td>
1265                         <t t-call="HiddenInputFile">
1266                             <t t-set="fileupload_id" t-value="widget.fileupload_id"/>
1267                             <t t-set="fileupload_style" t-translation="off">width: 83px;</t>
1268                             <button class="oe_button oe_field_button" type="button">
1269                                 <img t-att-src='_s + "/web/static/src/img/icons/STOCK_DIRECTORY.png"'/>
1270                                 <span>Select</span>
1271                             </button>
1272                         </t>
1273                     </td>
1274                     <td>
1275                         <a class="oe_form_binary_file_save_data">
1276                             <button class="oe_button oe_form_binary_file_save" type="button" title="Save As">
1277                                 <img t-att-src='_s + "/web/static/src/img/icons/gtk-save.png"'/>
1278                                 <span>Save As</span>
1279                             </button>
1280                         </a>
1281                     </td>
1282                     <td>
1283                         <button class="oe_button oe_form_binary_file_clear" type="button" title="Clear">
1284                             <img t-att-src='_s + "/web/static/src/img/icons/STOCK_MISSING_IMAGE.png"'/>
1285                             <span>Clear</span>
1286                         </button>
1287                     </td>
1288                 </tr>
1289                 </table>
1290             </td>
1291             <td class="oe_form_binary_progress" style="display: none" nowrap="true">
1292                 <img t-att-src='_s + "/web/static/src/img/throbber.gif"' width="16" height="16"/>
1293                 <b>Uploading ...</b>
1294             </td>
1295         </tr>
1296         </table>
1297     </t>
1298     <t t-if="widget.get('effective_readonly')">
1299         <span t-att-style="widget.node.attrs.style">
1300             <a href="javascript:void(0)" class="oe_form_uri"/>
1301         </span>
1302     </t>
1303 </t>
1304 <t t-name="HiddenInputFile">
1305     <div t-attf-class="oe_hidden_input_file #{fileupload_class or ''}" t-att-style="fileupload_style">
1306         <form class="oe_form_binary_form" t-att-target="fileupload_id"
1307             method="post" enctype="multipart/form-data" t-att-action="fileupload_action || '/web/binary/upload'">
1308             <input type="hidden" name="session_id" value="" t-if="widget.session.override_session"/>
1309             <input type="hidden" name="callback" t-att-value="fileupload_id"/>
1310             <t t-raw="__content__"/>
1311             <input type="file" class="oe_form_binary_file" name="ufile" t-if="widget.widget!='image'"/>
1312             <input type="file" class="oe_form_binary_file" name="ufile" accept="image/*" t-if="widget.widget=='image'"/>
1313         </form>
1314         <iframe t-att-id="fileupload_id" t-att-name="fileupload_id" style="display: none"/>
1315     </div>
1316 </t>
1317 <t t-name="FieldBinaryFileUploader.files">
1318     <div class="oe_attachments">
1319         <t t-if="!widget.get('effective_readonly')">
1320             <t t-foreach="values" t-as="id">
1321                 <t t-set="file" t-value="widget.data[id]"/>
1322                 <div class="oe_attachment">
1323                     <span t-if="(file.upload or file.percent_loaded&lt;100)" t-attf-title="{(file.name || file.filename) + (file.date?' \n('+file.date+')':'' )}" t-attf-name="{file.name || file.filename}">
1324                         <span class="oe_fileuploader_in_process">...Upload in progress...</span>
1325                         <t t-raw="file.name || file.filename"/>
1326                     </span>
1327                     <a t-if="(!file.upload or file.percent_loaded&gt;=100)" t-att-href="file.url" t-attf-title="{(file.name || file.filename) + (file.date?' \n('+file.date+')':'' )}">
1328                         <t t-raw="file.name || file.filename"/>
1329                     </a>
1330                     <t t-if="(!file.upload or file.percent_loaded&gt;=100)">
1331                         <a class="oe_right oe_delete oe_e" title="Delete this file" t-attf-data-id="{file.id}">[</a>
1332                     </t>
1333                 </div>
1334             </t>
1335         </t>
1336         <t t-if="widget.get('effective_readonly')">
1337             <t t-foreach="widget.get('value')" t-as="id">
1338                 <t t-set="file" t-value="widget.data[id]"/>
1339                 <div>
1340                     <a t-att-href="file.url" t-attf-title="{(file.name || file.filename) + (file.date?' \n('+file.date+')':'' )}">
1341                         <t t-raw="file.name || file.filename"/>
1342                     </a>
1343                 </div>
1344             </t>
1345         </t>
1346     </div>
1347 </t>
1348 <t t-name="FieldBinaryFileUploader">
1349     <div t-att-style="widget.node.attrs.style" t-attf-class="oe_fileupload #{widget.node.attrs.class ? widget.node.attrs.class :''}">
1350         <div class="oe_placeholder_files"/>
1351         <div class="oe_add" t-if="!widget.get('effective_readonly')">
1352             <!-- uploader of file -->
1353             <button class="oe_attach"><span class="oe_e">'</span></button> 
1354             <span class='oe_attach_label'><t t-esc="widget.string"/></span>
1355             <t t-call="HiddenInputFile">
1356                 <t t-set="fileupload_id" t-value="widget.fileupload_id"/>
1357                 <t t-set="fileupload_action" t-translation="off">/web/binary/upload_attachment</t>
1358                 <input type="hidden" name="model" t-att-value="widget.view.model"/>
1359                 <input type="hidden" name="id" value="0"/>
1360                 <input type="hidden" name="session_id" t-att-value="widget.session.session_id" t-if="widget.session.override_session"/>
1361             </t>
1362         </div>
1363     </div>
1364 </t>
1365 <t t-name="WidgetButton">
1366     <button type="button" t-att-class="widget.is_stat_button ? 'oe_stat_button btn btn-default' : 'oe_button oe_form_button'"
1367         t-att-style="widget.node.attrs.style"
1368         t-att-tabindex="widget.node.attrs.tabindex"
1369         t-att-autofocus="widget.node.attrs.autofocus"
1370         t-att-accesskey="widget.node.attrs.accesskey">
1371         <img t-if="!widget.is_stat_button and widget.node.attrs.icon " t-att-src="_s + widget.node.attrs.icon" width="16" height="16"/>
1372         <div t-if="widget.is_stat_button" class="stat_button_icon"><t t-if="widget.icon" t-raw="widget.icon"/></div>
1373         <span t-if="widget.string and !widget.is_stat_button"><t t-esc="widget.string"/></span>
1374         <div t-if="widget.string and widget.is_stat_button"><t t-esc="widget.string"/></div>
1375     </button>
1376 </t><t t-name="WidgetButton.tooltip" t-extend="WidgetLabel.tooltip">
1377     <t t-jquery="div.oe_tooltip_string" t-operation="replace">
1378         <div class="oe_tooltip_string" t-if="debug || widget.string">
1379             <t t-if="debug">
1380                 Button
1381                 <t t-if="widget.string">: </t>
1382                 <t t-if="!widget.string"> (no string)</t>
1383             </t>
1384             <t t-esc="widget.string"/>
1385         </div>
1386     </t>
1387     <t t-jquery="ul.oe_tooltip_technical" t-operation="append">
1388         <li t-if="widget.node.attrs.special" data-item="special">
1389             <span class="oe_tooltip_technical_title">Special:</span>
1390             <t t-esc="widget.node.attrs.special"/>
1391         </li>
1392         <t t-set="button_type" t-value="widget.node.attrs.type"/>
1393         <li t-if="button_type" data-item="button_type">
1394             <span class="oe_tooltip_technical_title">Button Type:</span>
1395             <t t-esc="button_type"/>
1396         </li>
1397         <li t-if="button_type === 'object'" data-item="button_method">
1398             <span class="oe_tooltip_technical_title">Method:</span>
1399             <t t-esc="widget.node.attrs.name"/>
1400         </li>
1401         <li t-if="button_type === 'action'" data-item="button_action">
1402             <span class="oe_tooltip_technical_title">Action ID:</span>
1403             <t t-esc="widget.node.attrs.name"/>
1404         </li>
1405     </t>
1406 </t>
1407
1408 <t t-name="AbstractFormPopup.render">
1409     <div>
1410         <table style="width:100%">
1411             <tr style="width:100%">
1412                 <td style="width:100%">
1413                     <div class="oe_popup_search" style="width:100%"></div>
1414                 </td>
1415             </tr>
1416             <tr style="width:100%">
1417                 <td style="width:100%">
1418                     <div class="oe_popup_list_pager"></div>
1419                 </td>
1420             </tr>
1421             <tr style="width:100%">
1422                 <td style="width:100%">
1423                     <div class="oe_popup_list" style="width:100%"></div>
1424                 </td>
1425             </tr>
1426         </table>
1427         <div class="oe_popup_form" style="width:100%"></div>
1428     </div>
1429 </t>
1430 <t t-name="SelectCreatePopup.search.buttons">
1431     <t t-if="! widget.options.disable_multiple_selection">
1432         <button type="button" class="oe_button oe_selectcreatepopup-search-select oe_highlight" disabled="disabled">Select</button>
1433     </t>
1434     <button type="button" class="oe_button oe_selectcreatepopup-search-create">Create</button>
1435     or <a class="oe_selectcreatepopup-search-close oe_bold oe_form_button_cancel" href="javascript:void(0)">Cancel</a>
1436 </t>
1437 <t t-name="AbstractFormPopup.buttons">
1438     <t t-if="! readonly">
1439         <t t-if="! multi_select">
1440             <button type="button" class="oe_button oe_abstractformpopup-form-save oe_highlight">Save</button>
1441         </t>
1442         <t t-if="multi_select">
1443             <button type="button" class="oe_button oe_abstractformpopup-form-save oe_highlight">Save &amp; Close</button>
1444             <button type="button" class="oe_button oe_abstractformpopup-form-save-new oe_highlight">Save &amp; New</button>
1445         </t>
1446         or
1447     </t>
1448     <a class="oe_abstractformpopup-form-close oe_bold oe_form_button_cancel" href="javascript:void(0)">
1449         <t t-if="! readonly">
1450             Discard
1451         </t>
1452         <t t-if="readonly">
1453             Close
1454         </t>
1455     </a>
1456 </t>
1457
1458 <t t-name="One2Many.viewmanager" t-extend="ViewManager">
1459     <t t-jquery=".oe-view-manager-header">
1460         this.attr('t-if', 'views.length != 1');
1461     </t>
1462 </t>
1463 <t t-name="One2Many.formview" t-extend="FormView">
1464     <t t-jquery=".oe_form_buttons" t-operation="inner">
1465         <button type="button" class="oe_button oe_form_button_create">Add</button>
1466     </t>
1467 </t>
1468 <t t-name="One2Many.listview" t-extend="ListView">
1469     <t t-jquery="thead.ui-widget-header > tr:first">
1470         this.removeAttr('t-if');
1471     </t>
1472
1473     <t t-jquery="td.oe-actions">
1474         this.removeAttr('t-if');
1475     </t>
1476     <t t-jquery="td.oe-actions" t-operation="prepend">
1477         <h3 class="oe_view_title"><t t-esc="fields_view.arch.attrs.string"/></h3>
1478     </t>
1479 </t>
1480
1481 <div t-name="SearchView" class="oe_searchview">
1482     <div class="oe_searchview_facets"/>
1483     <div class="oe_searchview_clear"/>
1484     <div class="oe_searchview_unfold_drawer" title="Advanced Search..."/>
1485     <div class="oe_searchview_drawer"/>
1486     <button type="button" class="oe_searchview_search"
1487             title="Search Again">Search</button>
1488 </div>
1489
1490 <div t-name="SearchView.InputView"
1491      class="oe_searchview_input"
1492      contenteditable="true"
1493      tabindex="0"/>
1494 <!-- tabindex: makes div focusable -->
1495 <div t-name="SearchView.FacetView"
1496      class="oe_tag oe_tag_dark oe_searchview_facet"
1497      tabindex="0"
1498     ><span class="oe_facet_remove">x</span
1499     ><span class="oe_facet_category oe_i" t-if="widget.model.has('icon')">
1500         <t t-esc="widget.model.get('icon')"/>
1501     </span
1502     ><span class="oe_facet_category" t-if="!widget.model.has('icon')">
1503         <t t-esc="widget.model.get('category')"/>
1504     </span ><span class="oe_facet_values"
1505 /></div>
1506 <span t-name="SearchView.FacetView.Value" class="oe_facet_value">
1507     <t t-esc="widget.model.get('label')"/>
1508 </span>
1509 <t t-name="SearchView.managed-filters">
1510     <option class="oe_search_filters_title" value="">Filters</option>
1511     <optgroup label="-- Filters --">
1512         <t t-foreach="filters" t-as="filter">
1513             <option t-attf-value="get:#{filter_index}"
1514                     t-att-disabled="filter.disabled and 'disabled'"
1515                     t-att-title="filter.disabled and disabled_filter_message">
1516                 <t t-esc="filter.name"/>
1517             </option>
1518         </t>
1519     </optgroup>
1520     <optgroup label="-- Actions --">
1521         <option value="advanced_filter">Add Advanced Filter</option>
1522         <option value="save_filter">Save Filter</option>
1523         <option value="manage_filters">Manage Filters</option>
1524     </optgroup>
1525 </t>
1526 <t t-name="SearchView.managed-filters.add">
1527     <div>
1528         <p>Filter Name:</p>
1529         <input type="text"/>
1530         <p>(Any existing filter with the same name will be replaced)</p>
1531     </div>
1532 </t>
1533 <t t-name="SearchView.render_lines">
1534     <table class="oe_search_render_line" border="0" cellspacing="0" cellpadding="0"
1535            t-foreach="lines" t-as="line">
1536         <tr>
1537             <td t-foreach="line" t-as="widget" class="oe_searchview_field">
1538                 <t t-raw="widget.render(defaults)"/>
1539             </td>
1540         </tr>
1541     </table>
1542 </t>
1543 <button t-name="SearchView.filter" type="button"
1544         t-att-id="element_id"
1545         t-att-title="attrs.help"
1546         t-att-class="classes.join(' ')"
1547         t-att-style="style"
1548         t-att-autofocus="attrs.default_focus === '1' ? 'autofocus' : undefined">
1549     <img t-att-src="_s + '/web/static/src/img/icons/' + (attrs.icon || 'gtk-home') + '.png'" width="16" height="16"/>
1550     <br t-if="attrs.string"/>
1551     <t t-esc="attrs.string"/>
1552 </button>
1553 <ul t-name="SearchView.filters">
1554     <li t-foreach="widget.filters" t-as="filter" t-if="!filter.visible || filter.visible()"
1555             t-att-title="filter.attrs.string ? filter.attrs.help : undefined"
1556             t-att-data-index="filter_index">
1557         <t t-esc="filter.attrs.string or filter.attrs.help or filter.attrs.name or 'Ω'"/>
1558     </li>
1559 </ul>
1560 <t t-name="SearchView.filters.facet">
1561     <div class="category oe_filter_category"><t t-esc="facet.get('category')"/></div>
1562
1563     <t t-set="val" t-value="facet.get('json')"/>
1564
1565     <div t-if="!(val instanceof Array)" class="search_facet_input_container">
1566         <t t-esc="facet.get('value')"/>
1567     </div>
1568     <t t-if="val instanceof Array">
1569         <div class="search_facet_input_container"
1570                 t-foreach="facet.get('json')" t-as="filter">
1571             <t t-esc="filter.attrs.string || filter.attrs.name"/>
1572         </div>
1573     </t>
1574
1575     <div class="search_facet_remove VS-icon VS-icon-cancel"/>
1576 </t>
1577 <t t-name="SearchView.field">
1578     <label t-att-class="'oe_label' + (attrs.help ? '_help' : '')"
1579            t-att-title="attrs.help"
1580            t-att-for="element_id"
1581            t-att-style="style">
1582         <t t-esc="attrs.string || attrs.name"/>
1583         <span t-if="attrs.help">?</span>
1584     </label>
1585     <div t-att-style="style">
1586         <input type="text" size="15" t-att-name="attrs.name"
1587                t-att-autofocus="attrs.default_focus === '1' ? 'autofocus' : undefined"
1588                t-att-id="element_id"
1589                t-att-value="defaults[attrs.name] || ''"/>
1590         <t t-if="filters.length" t-raw="filters.render(defaults)"/>
1591     </div>
1592 </t>
1593 <t t-name="SearchView.date">
1594     <label t-att-class="'oe_label' + (attrs.help ? '_help' : '')"
1595            t-att-title="attrs.help"
1596            t-att-for="element_id"
1597            t-att-style="style">
1598         <t t-esc="attrs.string || attrs.name"/>
1599         <span t-if="attrs.help">?</span>
1600     </label>
1601     <div t-att-style="style">
1602         <span t-att-id="element_id"/>
1603         <t t-if="filters.length" t-raw="filters.render(defaults)"/>
1604     </div>
1605 </t>
1606 <t t-name="SearchView.field.selection">
1607     <label t-att-title="attrs.help"
1608            t-att-class="'oe_label' + (attrs.help ? '_help' : '')"
1609            t-att-for="element_id"
1610            t-att-style="style">
1611         <t t-esc="attrs.string || attrs.name"/>
1612         <span t-if="attrs.help">?</span>
1613     </label>
1614     <div t-att-style="style">
1615         <select t-att-name="attrs.name" t-att-id="element_id"
1616                 t-att-autofocus="attrs.default_focus === '1' || undefined">
1617             <option t-if="prepend_empty"/>
1618             <t t-foreach="attrs.selection" t-as="option">
1619                 <t t-set="selected" t-value="defaults[attrs.name] === option[0]"/>
1620                 <option t-if="selected"
1621                         t-attf-selected="selected"
1622                         t-att-value="option_index">
1623                     <t t-esc="option[1]"/>
1624                 </option>
1625                 <option t-if="!selected" t-att-value="option_index">
1626                     <t t-esc="option[1]"/>
1627                 </option>
1628             </t>
1629         </select>
1630         <t t-if="filters.length" t-raw="filters.render(defaults)"/>
1631     </div>
1632 </t>
1633 <t t-name="SearchView.util.expand">
1634     <div t-att-class="'searchview_group ' + (expand == '0' ? 'folded' : 'expanded')">
1635         <a t-if="label" class="searchview_group_string" href="#">
1636             <t t-esc="label"/>
1637         </a>
1638         <div class="searchview_group_content">
1639             <t t-raw="content"/>
1640         </div>
1641     </div>
1642 </t>
1643 <div t-name="SearchView.Filters" class="oe_searchview_filters oe_searchview_section">
1644
1645 </div>
1646 <div t-name="SearchView.CustomFilters" class="oe_searchview_custom oe_searchview_section">
1647     <div>
1648         <h3><span class="oe_i">M</span> Custom Filters</h3>
1649         <ul class="oe_searchview_custom_list"/>
1650         <div class="oe_searchview_custom">
1651             <h4>Save current filter</h4>
1652             <form class="oe_form">
1653                 <p class="oe_form_required"><input id="oe_searchview_custom_input" placeholder="Filter name"/></p>
1654                 <p>
1655                     <input id="oe_searchview_custom_public" type="checkbox"/>
1656                     <label for="oe_searchview_custom_public">Share with all users</label>
1657                     <input id="oe_searchview_custom_default" type="checkbox"/>
1658                     <label for="oe_searchview_custom_default">Use by default</label>
1659                 </p>
1660                 <button>Save</button>
1661             </form>
1662         </div>
1663     </div>
1664 </div>
1665
1666 <div t-name="SearchView.advanced" class="oe_searchview_advanced">
1667     <h4>Advanced Search</h4>
1668     <form>
1669         <ul>
1670
1671         </ul>
1672         <button class="oe_add_condition button" type="button">Add a condition</button><br/>
1673         <button class="oe_apply" type="submit">Apply</button>
1674     </form>
1675 </div>
1676 <t t-name="SearchView.extended_search.proposition">
1677     <li>
1678         <span class="searchview_extended_prop_or">or</span>
1679         <select class="searchview_extended_prop_field">
1680             <t t-foreach="widget.attrs.fields" t-as="field">
1681                 <option t-att="{'selected': field === widget.attrs.selected ? 'selected' : null}"
1682                         t-att-value="field.name">
1683                     <t t-esc="field.string"/>
1684                 </option>
1685             </t>
1686         </select>
1687         <select class="searchview_extended_prop_op"/>
1688         <span class="searchview_extended_prop_value"/>
1689         <a class="searchview_extended_delete_prop button">x</a>
1690     </li>
1691 </t>
1692 <t t-name="SearchView.extended_search.proposition.char">
1693     <input class="field_char"/>
1694 </t>
1695 <t t-name="SearchView.extended_search.proposition.empty">
1696     <span/>
1697 </t>
1698 <t t-name="SearchView.extended_search.proposition.integer">
1699     <input type="number" class="field_integer" value = "0" step="1"/>
1700 </t>
1701 <t t-name="SearchView.extended_search.proposition.float">
1702     <input type="number" class="field_float" value = "0.0" step="0.01"/>
1703 </t>
1704 <t t-name="SearchView.extended_search.proposition.selection">
1705     <select>
1706         <t t-foreach="widget.field.selection" t-as="element">
1707         <option t-att-value="element[0]"><t t-esc="element[1]"/></option>
1708         </t>
1709     </select>
1710 </t>
1711
1712 <t t-name="ExportView">
1713     <a id="exportview" href="javascript: void(0)" style="text-decoration: none;color: #3D3D3D;">Export</a>
1714 </t>
1715 <table t-name="ExportTreeView" class="oe_export"
1716        style="background-color: #F3F3F3;">
1717     <tr>
1718         <td colspan="3">
1719             This wizard will export all data that matches the current search criteria to a CSV file.
1720             You can export all data or only the fields that can be reimported after modification.
1721         </td>
1722     </tr>
1723     <tr>
1724         <td colspan="3">
1725             <label for="import_compat">Export Type:</label>
1726             <select id="import_compat" name="import_compat">
1727                 <option value="yes">Import-Compatible Export</option>
1728                 <option value="">Export all Data</option>
1729             </select>
1730
1731             <label for="export_format">Export Formats</label>
1732             <select id="export_format" name="export_format"></select>
1733         </td>
1734     </tr>
1735
1736     <tr>
1737         <th>Available fields</th>
1738         <th/>
1739         <th>
1740             Fields to export
1741             <a style="color: blue; text-decoration: none;" href="#" id="export_new_list">Save fields list</a>
1742             <div id="savenewlist"></div>
1743             <div id="ExistsExportList"></div>
1744         </th>
1745     </tr>
1746     <tr style="height: 400px;">
1747         <td class="oe_export_fields_selector_left">
1748             <div id="left_field_panel">
1749             </div>
1750         </td>
1751         <td class="oe_export_fields_selector_center">
1752             <!-- TODO: replace ids by 'oe_*' classes -->
1753             <button class="oe_button" id="add_field">Add</button>
1754             <button class="oe_button" id="remove_field">Remove</button>
1755             <button class="oe_button" id="remove_all_field">Remove All</button>
1756         </td>
1757         <td class="oe_export_fields_selector_right">
1758             <select name="fields_list" id="fields_list"
1759                     multiple="multiple"></select>
1760         </td>
1761     </tr>
1762 </table>
1763 <t t-name="ExportTreeView-Domain">
1764     <t t-if="! record.ids_to_export">
1765         <p><strong>Please pay attention that all records matching your search filter will be exported. Not only the selected ids.</strong></p>
1766     </t>
1767     <t t-if="record.ids_to_export">
1768         <p><strong>Please note that only the selected ids will be exported.</strong></p>
1769     </t>
1770 </t>
1771 <table t-name="ExportTreeView-Secondary"
1772        id="field-tree-structure" class="oe_export_fields_selector_export"
1773        cellspacing="0" cellpadding="0">
1774     <tr><th class="oe_export_tree_header"> Name </th></tr>
1775     <t t-call="ExportTreeView-Secondary.children"/>
1776 </table>
1777 <tr t-name="ExportTreeView-Secondary.children"
1778     t-foreach="fields" t-as="field"
1779     t-att-id="'treerow-' + field.id" class="oe_export_row">
1780     <td>
1781         <table class="tree_grid" border="0">
1782             <tr class="oe_export_row">
1783                 <t t-foreach="(field.id).split('/')" t-as="level" >
1784                     <t t-if="(field.id).split('/')[0] != level">
1785                         <td width="18" t-translation="off">&amp;nbsp;</td>
1786                     </t>
1787                 </t>
1788                 <td valign="top" align="left" style="cursor: pointer;" width="18">
1789                     <t t-if="field.children">
1790                         <t t-if="(field.id).split('/').length != 3">
1791                             <img t-att-id="'parentimg-' + field.id" t-att-src='_s + "/web/static/src/img/expand.gif"' width="16" height="16" border="0"/>
1792                         </t>
1793                     </t>
1794                 </td>
1795                 <td id="tree-column" valign="middle" align="left" style="cursor: pointer;">
1796                     <a t-att-id="'export-' + field.id"  t-att-string="field.string" href="javascript: void(0);" style="text-decoration: none;">
1797                         <t t-esc="field.string"/>
1798                     </a>
1799                 </td>
1800             </tr>
1801         </table>
1802     </td>
1803 </tr>
1804 <t t-name="ExportNewList">
1805     <tr>
1806         <th><label>Save as:</label></th>
1807         <td><input size="10" type="text" id="savelist_name"/></td>
1808         <td><button class="oe_button oe_export_button_export" id="add_export_list">Ok</button></td>
1809     </tr>
1810 </t>
1811 <t t-name="Exists.ExportList">
1812     <label for="saved_export_list">Saved exports:</label>
1813
1814     <select id="saved_export_list">
1815         <option></option>
1816         <t t-foreach="existing_exports" t-as="export">
1817             <option t-att-value="export.id"><t t-esc="export.name"/></option>
1818         </t>
1819     </select>
1820     <button class="oe_button oe_export_button_export" id="delete_export_list" type="button">Delete</button>
1821 </t>
1822
1823 <t t-name="ImportView">
1824     <a id="importview" href="javascript: void(0)" style="text-decoration: none;color: #3D3D3D;">Import</a>
1825 </t>
1826 <t t-name="ImportDataView">
1827 <form name="import_data" id="import_data" action="" method="post" enctype="multipart/form-data"
1828         class="oe_import oe_import_no_result">
1829     <input type="hidden" name="session_id" t-att-value="widget.session.session_id" t-if="widget.session.override_session"/>
1830     <h2 class="separator horizontal">1. Import a .CSV file</h2>
1831     <p>Select a .CSV file to import. If you need a sample of file to import,
1832        you should use the export tool with the "Import Compatible" option.
1833     </p>
1834     <p>
1835         <label for="csvfile">CSV File:</label>
1836         <input type="file" id="csvfile" size="50" name="csvfile"/>
1837     </p>
1838     <h2 class="separator horizontal oe_import_result">2. Check your file format</h2>
1839     <div id="result" class="oe_import_result"></div>
1840     <fieldset class="oe_closed oe_import_result">
1841         <legend>Import Options</legend>
1842         <table>
1843             <tr>
1844                 <td colspan="4">
1845                     <label for="file_has_headers">Does your file have titles?</label>
1846                     <input type="checkbox" checked="checked"
1847                            id="file_has_headers"/>
1848                 </td>
1849             </tr>
1850             <tr>
1851                 <td><label for="csv_separator">Separator:</label></td>
1852                 <td><input type="text" name="csvsep" id="csv_separator" value=","/></td>
1853                 <td><label for="csv_delimiter">Delimiter:</label></td>
1854                 <td><input type="text" name="csvdel" id="csv_delimiter" value='"'/></td>
1855             </tr>
1856             <tr>
1857                 <td><label for="csv_encoding">Encoding:</label></td>
1858                 <td>
1859                     <select name="csvcode" id="csv_encoding">
1860                         <option value="utf-8">UTF-8</option>
1861                         <option value="latin1">Latin 1</option>
1862                     </select>
1863                 </td>
1864                 <td><label for="csv_skip" title="For use if CSV files have titles on multiple lines, skips more than a single line during import">
1865                     Lines to skip<sup>?</sup>:</label></td>
1866                 <td><input type="number" id="csv_skip" value="0" min="0"/></td>
1867             </tr>
1868         </table>
1869     </fieldset>
1870 </form>
1871 </t>
1872 <t t-name="ImportView.result">
1873     <table class="oe_import_grid" width="100%" style="margin: 5px 0;">
1874         <tr t-if="headers" class="oe_import_grid-header">
1875             <td t-foreach="headers" t-as="header" class="oe_import_grid-cell">
1876                 <t t-esc="header"/></td>
1877         </tr>
1878         <tr>
1879             <td t-foreach="records[0]" t-as="column">
1880                 <input class="sel_fields" placeholder="--- Don't Import ---"/><span class="oe_m2o_drop_down_button">
1881                         <img t-att-src='_s + "/web/static/src/img/down-arrow.png"' draggable="false"/></span>
1882             </td>
1883         </tr>
1884         <tr t-foreach="records" t-as="record" class="oe_import_grid-row">
1885             <td t-foreach="record" t-as="cell" class="oe_import_grid-cell">
1886                 <t t-esc="cell"/></td>
1887         </tr>
1888     </table>
1889 </t>
1890 <t t-name="ImportView.error">
1891     <p style="white-space:pre;">The import failed due to:<t t-esc="error.message"/></p>
1892     <t t-if="error.preview">
1893         <p>Here is a preview of the file we could not import:</p>
1894         <pre><t t-esc="error.preview"/></pre>
1895     </t>
1896 </t>
1897 <div t-name="Many2ManyKanban.quick_create" class="oe_kanban_quick_create">
1898     <input t-att-placeholder="_t('Type name to search')"/>
1899 </div>
1900 <t t-name="Throbber">
1901     <div>
1902         <div class="oe_blockui_spin" style="height: 50px">
1903         </div>
1904         <br />
1905         <div class="oe_throbber_message" style="color:white"></div>
1906     </div>
1907 </t>
1908 <t t-name="M2ODialog">
1909     <div>
1910         Name: <input class="oe_form_m2o_input_name" type="text"/>
1911     </div>
1912 </t>
1913 <t t-name="M2ODialog.buttons">
1914     <button class="oe_form_m2o_qc_button oe_button oe_highlight">Quick Add</button>
1915     <button class="oe_form_m2o_sc_button oe_button">Add All Info...</button>
1916     <button class="oe_form_m2o_cancel_button oe_button">Cancel</button>
1917 </t>
1918 <t t-name="FieldMonetary" t-extend="FieldChar">
1919     <t t-jquery="t:first" t-operation="before">
1920         <t t-if="widget.get('currency_info') and widget.get('currency_info').position === 'before'">
1921             <t t-esc="widget.get('currency_info').symbol"/>
1922         </t>
1923     </t>
1924     <t t-jquery="t:last" t-operation="after">
1925         <t t-if="widget.get('currency_info') and widget.get('currency_info').position === 'after'">
1926             <t t-esc="widget.get('currency_info').symbol"/>
1927         </t>
1928     </t>
1929 </t>
1930 <t t-name="FieldMany2ManyCheckBoxes">
1931     <t t-foreach="widget.get('records')" t-as="record">
1932         <div>
1933             <t t-if="selected[record[0]]">
1934                 <input type="checkbox" t-att-data-record-id="JSON.stringify(record[0])" checked="true"/>
1935             </t>
1936             <t t-if="! selected[record[0]]">
1937                 <input type="checkbox" t-att-data-record-id="JSON.stringify(record[0])"/>
1938             </t>
1939             <t t-esc="record[1]"/>
1940         </div>
1941     </t>
1942 </t>
1943 <t t-name="X2ManyCounter">
1944     <a href="javascript:void(0)"><t t-esc="text"/></a>
1945 </t>
1946 <t t-name="StatInfo">
1947     <strong><t t-esc="value"/></strong><br/><t t-esc="text"/></t>
1948 </templates>