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