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