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