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