[FIX] nivification of Login Widget
[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="Interface">
6     <div id="oe_loading" class="loading"></div>
7     <div id="oe_notification" class="oe_notification">
8         <div id="oe_notification_default">
9             <a class="ui-notify-cross ui-notify-close" href="#">x</a>
10             <h1>#{title}</h1>
11             <p>#{text}</p>
12         </div>
13         <div id="oe_notification_alert" class="ui-state-error">
14             <a class="ui-notify-cross ui-notify-close" href="#">x</a>
15             <span style="float:left; margin:2px 5px 0 0;" class="ui-icon ui-icon-alert"></span>
16             <h1>#{title}</h1>
17             <p>#{text}</p>
18         </div>
19     </div>
20     <table border="0" cellpadding="0" cellspacing="0" width="100%" height="100%" class="main_table">
21     <tr>
22         <td colspan="2" valign="top">
23             <div id="oe_header" class="header"></div>
24             <div id="oe_menu" class="menu"></div>
25         </td>
26     </tr>
27     <tr>
28         <td valign="top" class="login-container" colspan="2">
29             <div id="oe_login" class="login"></div>
30         </td>
31     </tr>
32     <tr class="db_options_row">
33         <td valign="top" class="db_container">
34             <div id="oe_database" class="database"></div>
35         </td>
36         <td valign="top">
37                 <div id="oe_db_options"></div>
38         </td>
39     </tr>
40     <tr>
41         <td colspan="2" valign="top" height="100%">
42             <table cellspacing="0" cellpadding="0" border="0" height="100%" width="100%">
43             <tr>
44                 <td valign="top" id="oe_secondary_menu" class="secondary_menu">
45                 </td>
46                 <td valign="top" class="oe-application-container">
47                     <div id="oe_app" class="oe-application">
48                     </div>
49                 </td>
50             </tr>
51             </table>
52         </td>
53     </tr>
54     <tr>
55         <td colspan="2">
56             <div id="oe_footer" class="oe_footer">
57                 <p class="oe_footer_powered">Powered by <a href="http://www.openerp.com">openerp.com</a>.</p>
58             </div>
59         </td>
60     </tr>
61     </table>
62 </t>
63 <t t-name="Loading">
64     Loading...
65 </t>
66 <t t-name="Database">
67     <ul class="db_options" style="padding: 0px; display: inline;">
68         <li id="db-create">Create</li>
69         <li id="db-drop">Drop</li>
70         <li id="db-backup">Backup</li>
71         <li id="db-restore">Restore</li>
72         <li id="db-change-password">Password</li>
73         <li id="back-to-login">Back to Login</li>
74     </ul>
75 </t>
76 <t t-name="Database.CreateDB">
77     <form name="create_db_form" class="oe_forms" method="POST">
78         <table width="100%">
79             <tr>
80                 <td class="option_string">
81                     CREATE DATABASE
82                 </td>
83             </tr>
84         </table>
85         <table align="center" class="db_option_table">
86             <tr>
87                 <td><label for="super_admin_pwd">Master password:</label></td>
88                 <td><input type="password" name="super_admin_pwd" class="required" value="admin"/></td>
89             </tr>
90             <tr>
91                 <td><label for="db_name">New database name:</label></td>
92                 <td><input type="text" name="db_name" class="required"/></td>
93             </tr>
94             <tr>
95                 <td><label for="demo_data">Load Demonstration data:</label></td>
96                 <td><input type="checkbox" name="demo_data"/></td>
97             </tr>
98             <tr>
99                 <td><label for="db_lang">Default language:</label></td>
100                 <td>
101                     <select name="db_lang" t-if="lang_list">
102                         <t t-foreach="lang_list" t-as="lang">
103                             <option t-att-value="lang[0]" t-att-selected="lang[0] === 'en_US' ? 'selected' : undefined"><t t-esc="lang[1]"/></option>
104                         </t>
105                     </select>
106                 </td>
107             </tr>
108             <tr>
109                 <td><label for="create_admin_pwd">Admin password:</label></td>
110                 <td><input type="password" name="create_admin_pwd" class="required"/></td>
111             </tr>
112             <tr>
113                 <td><label for="create_confirm_pwd">Confirm password:</label></td>
114                 <td><input type="password" name="create_confirm_pwd" class="required"
115                            equalTo="input[name=create_admin_pwd]"/></td>
116             </tr>
117             <tr>
118                 <td colspan="2" align="right"><input type="submit" value="Create"/></td>
119             </tr>
120         </table>
121     </form>
122 </t>
123 <t t-name="DropDB">
124     <form name="drop_db_form" class="oe_forms" method="POST">
125         <table width="100%">
126             <tr>
127                 <td class="option_string">
128                     DROP DATABASE
129                 </td>
130             </tr>
131         </table>
132         <table align="center" class="db_option_table">
133             <tr>
134                 <td><label for="drop_db">Database:</label></td>
135                 <td>
136                     <select t-if="db_list" name="drop_db" autofocus="autofocus">
137                         <t t-foreach="db_list" t-as="db">
138                             <option t-att-value="db"><t t-esc="db"/></option>
139                         </t>
140                     </select>
141                 </td>
142             </tr>
143             <tr>
144                 <td><label for="drop_password">Master Password:</label></td>
145                 <td><input type="password" name="drop_pwd" class="required"/></td>
146             </tr>
147             <tr>
148                 <td colspan="2" align="right"><input type="submit" value="Drop"/></td>
149             </tr>
150         </table>
151     </form>
152 </t>
153 <t t-name="BackupDB">
154     <form name="backup_db_form" class="oe_forms" method="POST" target="backup-target"
155           action="/web/database/backup">
156         <input type="hidden" name="token"/>
157         <table width="100%">
158             <tr>
159                 <td class="option_string">
160                     BACKUP DATABASE
161                 </td>
162             </tr>
163         </table>
164         <table align="center" class="db_option_table">
165             <tr>
166                 <td><label for="backup_db">Database:</label></td>
167                 <td>
168                     <select t-if="db_list" name="backup_db" autofocus="autofocus">
169                         <t t-foreach="db_list" t-as="db">
170                             <option t-att-value="db"><t t-esc="db"/></option>
171                         </t>
172                     </select>
173                 </td>
174             </tr>
175             <tr>
176                 <td><label for="backup_pwd">Master Password:</label></td>
177                 <td><input type="password" name="backup_pwd" class="required"/></td>
178             </tr>
179             <tr>
180                 <td colspan="2" align="right"><input type="submit" value="Backup"/></td>
181             </tr>
182         </table>
183     </form>
184 </t>
185 <t t-name="RestoreDB">
186     <form name="restore_db_form" class="oe_forms" method="POST">
187         <table width="100%">
188             <tr>
189                 <td class="option_string">
190                     RESTORE DATABASE
191                 </td>
192             </tr>
193         </table>
194         <table align="center" class="db_option_table">
195             <tr>
196                 <td><label for="restore_db">File:</label></td>
197                 <td><input type="file" name="db_file" class="required"
198                          autofocus="autofocus"/></td>
199             </tr>
200             <tr>
201                 <td><label for="restore_pwd">Master Password:</label></td>
202                 <td><input type="password" name="restore_pwd" class="required"/></td>
203             </tr>
204         <tr>
205                 <td><label for="new_db">New database name:</label></td>
206                 <td><input type="text" name="new_db" class="required"/></td>
207             </tr>
208         <tr>
209             <td colspan="2" align="right"><input type="submit" value="Restore"/></td>
210             </tr>
211         </table>
212     </form>
213 </t>
214 <t t-name="Change_DB_Pwd">
215     <form name="change_pwd_form" class="oe_forms" method="POST">
216         <table width="100%">
217             <tr>
218                 <td class="option_string">
219                     CHANGE MASTER PASSWORD
220                 </td>
221             </tr>
222         </table>
223         <table align="center" class="db_option_table">
224             <tr>
225                 <td><label for="old_pwd">Master password:</label></td>
226                 <td><input type="password" name="old_pwd" class="required"
227                            minlength="1" autofocus="autofocus"/></td>
228             </tr>
229             <tr>
230             <td><label for="new_pwd">New master password:</label></td>
231             <td><input type="password" name="new_pwd" class="required"
232                        minlength="1"/></td>
233             </tr>
234             <tr>
235                 <td><label for="confirm_pwd">Confirm new master password:</label></td>
236                 <td><input type="password" name="confirm_pwd" class="required"
237                            equalTo="input[name=new_pwd]" minlength="1"/></td>
238             </tr>
239             <tr>
240                 <td colspan="2" align="right"><input type="submit" value="Change Password"/></td>
241             </tr>
242         </table>
243     </form>
244 </t>
245
246 <t t-name="Login_dblist">
247     <select name="db">
248         <t t-foreach="db_list" t-as="db">
249             <t t-if="selected_db === db">
250                 <option t-att-value="db" selected="true">
251                     <t t-esc="db"/></option>
252             </t>
253             <t t-if="selected_db !== db">
254                 <option t-att-value="db"><t t-esc="db"/></option>
255             </t>
256         </t>
257     </select>
258 </t>
259
260 <t t-name="Login">
261     <form class="oe_forms">
262         <fieldset>
263             <legend style="">
264                 <img src="/web/static/src/img/stock_person.png" alt="" />
265             </legend>
266             <div class="oe_box2">
267                 <table align="center" cellspacing="2px" cellpadding="0">
268                     <tr>
269                         <td><label for="db">Database:</label></td>
270                         <td>
271                             <input type="text" name="db" t-att-value="selected_db || ''" autofocus="true"/>
272                         </td>
273                     </tr>
274                     <tr>
275                         <td><label for="login">User:</label></td>
276                         <td><input type="text" name="login"
277                             t-att-value="selected_login || ''" autofocus="true"/></td>
278                     </tr>
279                     <tr>
280                         <td><label for="password">Password:</label></td>
281                         <td><input type="password" name="password"
282                                 t-att-value="selected_password || ''"/></td>
283                     </tr>
284                     <tr>
285                         <td></td>
286                         <td>
287                                 <button type="button" id="oe-db-config">Database</button>
288                             <button type="submit" name="submit">Login</button>
289                         </td>
290                     </tr>
291                 </table>
292             </div>
293         </fieldset>
294         <div class="login_error_message">Bad username or password</div>
295     </form>
296     <div class="oe_login_right_pane">
297         <p>We think that daily job activities can be more intuitive, efficient, automated, .. and even fun.</p>
298         <h3>OpenERP's vision to be:</h3>
299
300         <table cellpadding="0" cellspacing="0" width="100%" style="border:none;">
301             <tbody>
302             <tr>
303                 <td>
304                     <img src="/web/static/src/img/product.png"/>
305                 </td>
306                 <td>
307                     <strong>Full featured</strong><br />
308                     Today's enterprise challenges are multiple. We provide one module for each need.
309                 </td>
310             </tr>
311             <tr>
312                 <td>
313                     <img src="/web/static/src/img/accessories-archiver.png"/>
314                 </td>
315                 <td>
316                     <strong>Open Source</strong><br />
317                     To Build a great product, we rely on the knowledge of thousands of contributors.
318                 </td>
319             </tr>
320             <tr>
321                 <td>
322                     <img src="/web/static/src/img/partner.png" />
323                 </td>
324                 <td>
325                     <strong>User Friendly</strong><br />
326                     In order to be productive, people need clean and easy to use interface.
327                 </td>
328             </tr>
329             </tbody>
330         </table>
331
332     </div>
333 </t>
334 <t t-name="Header">
335     <div>
336         <a t-att-href="'/' + widget.qs" class="company_logo_link">
337             <div class="company_logo" />
338         </a>
339     </div>
340 </t>
341 <t t-name="Header-content">
342     <h1 class="header_title">
343         <t t-esc="user.company_id[1]"/> (<t t-esc="widget.session.db"/>)<br/>
344         <small class="username"><t t-esc="user.name"/></small>
345     </h1>
346     <div class="header_corner">
347         <ul class="block">
348             <li>
349                 <a t-att-href="'/' + widget.qs" title="Home" class="home"><img src="/web/static/src/img/header-home.png" width="16" height="16" border="0"/></a>
350             </li>
351             <li class="preferences">
352                 <a href="javascript:void(0)" title="Preferences" class="preferences"><img src="/web/static/src/img/header-preferences.png" width="16" height="16" border="0"/></a>
353             </li>
354             <li>
355                 <a href="javascript:void(0)" title="About" class="about"><img src="/web/static/src/img/header-about.png" width="16" height="16" border="0"/></a>
356             </li>
357         </ul>
358         <div class="block">
359             <a href="#logout" class="logout">LOGOUT</a>
360         </div>
361
362     </div>
363     <div class="oe-shortcuts"> </div>
364 </t>
365 <ul t-name="Shortcuts">
366     <li t-foreach="shortcuts" t-as="shortcut"
367             t-att-data-id="shortcut.res_id"
368             t-att-data-shortcut-id="shortcut.id"
369         ><t t-esc="shortcut.name"/></li>
370 </ul>
371 <t t-name="Menu">
372     <table align="center">
373     <tr>
374         <td t-foreach="widget.data.data.children" t-as="menu">
375             <a href="#" t-att-data-menu="menu.id">
376                 <t t-esc="menu.name"/>
377             </a>
378         </td>
379     </tr>
380     </table>
381 </t>
382 <t t-name="Menu.secondary">
383     <div t-attf-class="oe_toggle_secondary_menu">
384         <span class="oe_menu_fold" title="Fold menu">&amp;laquo;</span>
385         <span class="oe_menu_unfold" title="Unfold menu">&amp;raquo;</span>
386     </div>
387     <div t-foreach="widget.data.data.children" t-as="menu" style="display: none" class="oe_secondary_menu" t-att-data-menu-parent="menu.id">
388         <t t-foreach="menu.children" t-as="menu">
389             <t t-set="classname">oe_secondary_menu_item</t>
390             <t t-set="level" t-value="0"/>
391             <t t-call="Menu.secondary.children"/>
392         </t>
393     </div>
394 </t>
395 <t t-name="Menu.secondary.children">
396     <t t-set="level" t-value="level + 1"/>
397     <a href="#" t-att-id="menu.children.length ? 'menu_' + menu.id : undefined"
398         t-att-class="classname + (menu.children.length ? ' submenu' : ' leaf') + (menu_first and level == 1 ? ' opened' : '')"
399         t-att-data-menu="menu.children.length ? undefined : menu.id">
400         <span t-attf-style="padding-left: #{(level - 2) * 20}px"> <t t-esc="menu.name"/></span>
401     </a>
402     <div t-attf-class="oe_secondary_submenu" t-if="menu.children.length" t-att-style="menu_first and level == 1 ? undefined : 'display: none'">
403         <t t-foreach="menu.children" t-as="menu">
404             <t t-set="classname">oe_secondary_submenu_item</t>
405             <t t-call="Menu.secondary.children"/>
406         </t>
407     </div>
408 </t>
409 <t t-name="ViewManager">
410     <table class="view-manager-main-table">
411     <tr>
412         <td class="view-manager-main-content">
413             <div class="oe-view-manager-header">
414                 <div class="oe_vm_switch">
415                     <t t-if="views.length != 1" t-foreach="views" t-as="view">
416                         <button type="button" t-att-data-view-type="view.view_type">
417                             <t t-esc="view.view_type"/>
418                         </button>
419                     </t>
420                 </div>
421             </div>
422             <div t-attf-id="#{prefix}_search" t-opentag="true"/>
423             <t t-foreach="views" t-as="view">
424                 <div t-attf-id="#{prefix}_view_#{view.view_type}"/>
425             </t>
426         </td>
427         <td class="view-manager-main-sidebar" height="100%">
428             <t t-foreach="views" t-as="view">
429                 <div t-attf-id="#{prefix}_sidebar_#{view.view_type}" class="sidebar-main-div closed-sidebar" style="display: none"/>
430             </t>
431         </td>
432     </tr>
433     </table>
434 </t>
435
436 <t t-extend="ViewManager" t-name="ViewManagerAction">
437     <t t-jquery=".oe-view-manager-header" t-operation="prepend">
438         <blockquote t-if="self.action.help and !self.flags.low_profile
439                          and !(self.action.id in self.session.hidden_menutips)">
440             <p><t t-esc="self.action.help"/></p>
441             <div>
442                 <button type="button" name="hide">Hide this tip</button>
443                 <button type="button" name="disable">Disable all tips</button>
444             </div>
445         </blockquote>
446         <a class="oe-shortcut-toggle" title="Add / Remove Shortcut..."
447            href="javascript: void(0)"> </a>
448         <h2 class="oe_view_title">
449             <t t-esc="self.action.name"/>
450             <button t-if="self.session.debug" class="oe_get_xml_view">
451                 View#<span></span>
452             </button>
453         </h2>
454     </t>
455     <t t-jquery=".oe-view-manager-header" t-operation="after">
456         <ul class="oe-view-manager-logs"></ul>
457     </t>
458 </t>
459
460 <t t-name="Sidebar">
461     <a class="toggle-sidebar"></a>
462     <div class="sidebar-content">
463         <div class="sidebar-actions">
464         </div>
465     </div>
466 </t>
467 <t t-name="Sidebar.section">
468     <h2><t t-esc="name"/></h2>
469     <div t-att-id="section_id" t-att-class="classname">
470         <ul t-if="items">
471             <li t-foreach="items" t-as="item" t-att-class="item.classname">
472                 <a class="oe_sidebar_action_a" t-att-id="item.element_id" t-att-title="item.title" href="#">
473                     <t t-esc="item.label"/>
474                 </a>
475             </li>
476         </ul>
477     </div>
478 </t>
479 <t t-name="TranslateDialog">
480     <ul class="oe_translate_tabs">
481         <li><a t-attf-href="##{widget.element_id}_fields">Fields</a></li>
482         <li><a t-attf-href="##{widget.element_id}_view">View labels</a></li>
483         <li><a t-attf-href="##{widget.element_id}_sidebar">Sidebar Relates</a></li>
484     </ul>
485     <div t-attf-id="#{widget.element_id}_fields">
486         <table t-if="widget.view.translatable_fields" class="oe_frame oe_forms oe_translation_form" border="0" cellpadding="0" cellspacing="0" width="100%">
487         <tr>
488             <td class="oe_form_separator" width="1%" nowrap="nowrap">
489                 <div class="separator horizontal">Field</div>
490             </td>
491             <th t-foreach="widget.languages" align="left">
492                 <div class="separator horizontal"><t t-esc="name"/></div>
493             </th>
494         </tr>
495         <tr t-foreach="widget.view.translatable_fields" t-as="field">
496             <td class="oe_form_frame_cell" width="1%" nowrap="nowrap">
497                 <label class="oe_label"><t t-esc="field.string"/>:</label>
498             </td>
499             <td t-foreach="widget.languages" t-as="lg" class="oe_form_frame_cell">
500                 <input t-if="field.type == 'char'" type="text" t-attf-name="#{lg.code}-#{field.name}" value="" data-value="" class="oe_trad_field" style="width: 100%"/>
501                 <textarea t-if="field.type == 'text'" t-attf-name="#{lg.code}-#{field.name}" data-value="" class="oe_trad_field" style="width: 100%"></textarea>
502             </td>
503         </tr>
504         </table>
505     </div>
506     <div t-attf-id="#{widget.element_id}_view">
507         Translate view
508     </div>
509     <div t-attf-id="#{widget.element_id}_sidebar">
510         Translate sidebar
511     </div>
512 </t>
513 <t t-name="TreeView">
514     <select t-if="toolbar" style="width: 30%">
515     </select>
516     <table class="oe-treeview-table">
517         <thead>
518             <tr>
519                 <th t-foreach="fields_view" t-as="field"
520                     t-if="!field.attrs.modifiers.tree_invisible"
521                     class="treeview-header">
522                     <t t-esc="fields[field.attrs.name].string" />
523                 </th>
524             </tr>
525         </thead>
526         <tbody>
527         </tbody>
528     </table>
529 </t>
530 <tr t-name="TreeView.rows"
531         t-foreach="records" t-as="record"
532         t-att-id="'treerow_' + record.id"
533         t-att-data-id="record.id" t-att-data-level="level + 1">
534     <t t-set="children" t-value="record[children_field]"/>
535     <t t-set="has_children" t-value="children and children.length"/>
536
537     <td t-foreach="fields_view" t-as="field"
538         t-if="!field.attrs.modifiers.tree_invisible"
539         t-att-data-id="record.id"
540         t-att-style="!field_index ? 'background-position: ' + 19*level + 'px; padding-left: ' + 19*level + 'px' : undefined"
541         t-att-class="!field_index and has_children ? 'treeview-tr' : 'treeview-td'">
542         <span t-if="!field.attrs.modifiers.invisible">
543             <t t-esc="render(record[field.attrs.name], fields[field.attrs.name])" />
544         </span>
545     </td>
546 </tr>
547 <table t-name="ListView" class="oe-listview-content">
548     <t t-set="columns_count" t-value="visible_columns.length + (options.selectable ? 1 : 0) + (options.deletable ? 1 : 0)"/>
549     <thead class="ui-widget-header">
550         <tr t-if="options.action_buttons !== false or options.pager !== false">
551             <th t-att-colspan="columns_count">
552                 <table>
553                     <tr>
554                         <td t-if="options.action_buttons !== false" class="oe-actions">
555                             <button type="button" class="oe-list-add"
556                                     t-if="options.addable">
557                                 <t t-esc="options.addable"/>
558                             </button>
559                             <button type="button" class="oe-list-delete"
560                                     t-if="options.selectable and options.deletable">
561                                 Delete
562                             </button>
563                         </td>
564                         <th t-if="options.pager !== false" class="oe-list-pager">
565                             <button type="button" disabled="disabled"
566                                     data-pager-action="first">First</button>
567                             <button type="button" disabled="disabled"
568                                     data-pager-action="previous"
569                                     >&lt;</button>
570
571                             <span class="oe-pager-state">
572                             </span>
573
574                             <button type="button" disabled="disabled"
575                                     data-pager-action="next">&gt;</button>
576                             <button type="button" disabled="disabled"
577                                     data-pager-action="last">Last</button>
578                         </th>
579                     </tr>
580                 </table>
581             </th>
582         </tr>
583         <tr t-if="options.header" class="oe-listview-header-columns">
584             <t t-foreach="columns" t-as="column">
585                 <th t-if="column.meta">
586                     <t t-esc="column.string"/>
587                 </th>
588             </t>
589             <th t-if="options.selectable" width="1"/>
590             <t t-foreach="columns" t-as="column">
591                 <th t-if="!column.meta and column.invisible !== '1'" t-att-data-id="column.id"
592                     t-att-class="((options.sortable and column.tag !== 'button') ? 'oe-sortable' : null)">
593                     <t t-if="column.tag !== 'button'"
594                         ><t t-esc="column.string"/></t>
595                 </th>
596             </t>
597             <th t-if="options.deletable" width="1"/>
598         </tr>
599     </thead>
600     <tfoot class="ui-widget-header">
601         <tr>
602             <td t-if="options.selectable"/>
603             <td t-foreach="aggregate_columns" t-as="column" class="oe-list-footer oe-number"
604                 t-att-data-field="column.id" t-att-title="column.label">
605             </td>
606             <td t-if="options.deletable"/>
607         </tr>
608     </tfoot>
609 </table>
610 <t t-name="ListView.rows" t-foreach="records.length" t-as="index">
611     <t t-call="ListView.row">
612         <t t-set="record" t-value="records.at(index)"/>
613         <t t-set="row_parity" t-value="index_parity"/>
614     </t>
615 </t>
616 <tr t-name="ListView.row" t-att-class="row_parity"
617         t-att-data-id="record.get('id')">
618     <t t-foreach="columns" t-as="column">
619         <td t-if="column.meta">
620
621         </td>
622     </t>
623     <th t-if="options.selectable" class="oe-record-selector" width="1">
624         <input type="checkbox"/>
625     </th>
626     <t t-foreach="columns" t-as="column">
627         <t t-set="align" t-value="column.type === 'integer' or column.type == 'float'"/>
628         <td t-if="!column.meta and column.invisible !== '1'" t-att-title="column.help"
629             t-att-class="'oe-field-cell' + (align ? ' oe-number' : '')"
630             t-att-data-field="column.id">
631             <t t-raw="render_cell(record.toForm().data, column)"/>
632         </td>
633     </t>
634     <td t-if="options.deletable" class='oe-record-delete' width="1">
635         <button type="button" name="delete">♻</button>
636     </td>
637 </tr>
638 <t t-name="ListView.row.form">
639     <t t-raw="frame.render()"/>
640 </t>
641 <t t-name="FormView">
642     <div class="oe_form_header" t-att-id="view.element_id + '_header'">
643         <div class="oe_form_buttons" t-if="view.options.action_buttons !== false">
644             <!--<button type="button" class="oe_form_button_save">
645                 <span class="oe_form_on_update">Save</span>
646                 <span class="oe_form_on_create">Create</span>
647             </button>-->
648             <button type="button" class="oe_form_button_save_edit">
649                 <span class="oe_form_on_update">Save &amp; Edit</span>
650                 <span class="oe_form_on_create">Create &amp; Edit</span>
651             </button>
652             <!--<button type="button" class="oe_form_button_cancel">Cancel</button>-->
653             <button type="button" class="oe_form_button_new">New</button>
654             <button type="button" class="oe_form_button_duplicate oe_form_on_update">Duplicate</button>
655         </div>
656         <div class="oe_form_pager" t-if="view.options.pager !== false">
657             <button type="button" data-pager-action="first">First</button>
658             <button type="button" data-pager-action="previous">&lt;&lt;</button>
659
660             <span class="oe_pager_index">0</span> / <span class="oe_pager_count">0</span>
661
662             <button type="button" data-pager-action="next">&gt;&gt;</button>
663             <button type="button" data-pager-action="last">Last</button>
664         </div>
665     </div>
666     <t t-raw="frame.render()"/>
667 </t>
668 <t t-name="FormView.sidebar.attachments">
669     <div class="oe-sidebar-attachments-toolbar">
670         <div class="oe-binary-file-set" style="float: right">
671             <form class="oe-binary-form" t-attf-target="#{element_id}_iframe"
672                 method="post" enctype="multipart/form-data" action="/web/binary/upload_attachment">
673                 <input type="hidden" name="session_id" t-att-value="session.session_id"/>
674                 <input type="hidden" name="callback" t-attf-value="#{element_id}_iframe"/>
675                 <input type="hidden" name="model" t-att-value="view.dataset.model"/>
676                 <input type="hidden" name="id" t-att-value="view.datarecord.id"/>
677                 <button class="button" type="button">
678                     <img src="/web/static/src/img/throbber.gif" width="16" height="16" style="display: none"/>
679                     <span>Add</span>
680                 </button>
681                 <input type="file" class="oe-binary-file" name="ufile" title="Add attachment"
682                     t-att-onclick="view.datarecord.id ? null : 'alert(\'No record selected ! You can only attach to existing record.\'); return false;'"/>
683             </form>
684             <iframe t-attf-id="#{element_id}_iframe" t-attf-name="#{element_id}_iframe" style="display: none"> </iframe>
685         </div>
686     </div>
687     <br style="clear: both"/>
688     <ul class="oe-sidebar-attachments-items">
689         <li t-foreach="attachments" t-as="attachment">
690             <t t-if="attachment.type == 'binary'" t-set="attachment.url" t-value="'/web/binary/saveas?session_id='
691                 + session.session_id + '&amp;model=ir.attachment&amp;id=' + attachment.id
692                 + '&amp;field=datas&amp;fieldname=name&amp;t=' + (new Date().getTime())"/>
693             <a class="oe-sidebar-attachments-link" t-att-href="attachment.url" target="_blank">
694                 <t t-esc="attachment.name"/>
695             </a>
696             <a href="#" class="oe-sidebar-attachment-delete" t-att-data-id="attachment.id" t-attf-title="Delete the attachment #{attachment.name}">
697                 <img src="/web/static/src/img/attachments-close.png" width="15" height="15" border="0"/>
698             </a>
699         </li>
700     </ul>
701 </t>
702 <t t-name="Widget">
703     Unhandled widget
704     <t t-raw="console.log('Unhandled widget', widget)"/>
705 </t>
706 <t t-name="WidgetFrame">
707     <table border="0" width="100%" cellpadding="0" cellspacing="0" class="oe_frame oe_forms">
708     <tr t-foreach="widget.table" t-as="row">
709         <t t-foreach="row" t-as="td">
710             <td t-att-colspan="td.colspan gt 1 ? td.colspan : undefined"
711                 t-att-width="td.width"
712                 t-att-nowrap="td.nowrap or td.is_field_m2o? 'true' : undefined"
713                 t-att-valign="td.table ? 'top' : undefined"
714                 t-att-id="td.element_id"
715                 t-attf-class="oe_form_frame_cell #{td.classname}"
716             >
717                 <t t-raw="td.render()"/>
718             </td>
719         </t>
720     </tr>
721     </table>
722 </t>
723 <t t-name="WidgetNotebook">
724     <ul>
725         <li t-foreach="widget.pages" t-as="page" t-att-id="page.element_tab_id">
726             <a t-att-href="'#' + page.element_id">
727                 <t t-esc="page.string"/>
728             </a>
729         </li>
730     </ul>
731     <t t-foreach="widget.pages" t-as="page">
732         <t t-raw="page.render()"/>
733     </t>
734 </t>
735 <t t-name="WidgetNotebookPage">
736     <div t-att-id="widget.element_id">
737         <t t-call="WidgetFrame"/>
738     </div>
739 </t>
740 <t t-name="WidgetSeparator">
741     <div t-if="widget.orientation !== 'vertical'" t-att-class="'separator ' + widget.orientation">
742         <t t-esc="widget.string"/>
743     </div>
744 </t>
745 <t t-name="WidgetLabel">
746     <label t-att-for="widget.element_id + '_field'"
747            t-att-class="'oe_label' + (widget.help ? '_help' : '')"
748            t-att-title="widget.help">
749         <t t-esc="widget.string"/>
750         <span t-if="widget.help">?</span>
751         <t t-if="widget.string and widget.node.tag != 'label'">:</t>
752     </label>
753 </t>
754 <t t-name="WidgetParagraph">
755     <p class="oe_form_paragraph"><t t-esc="widget.string"/></p>
756 </t>
757 <t t-name="FieldChar">
758     <input type="text" size="1"
759         t-att-name="widget.name"
760         t-att-id="widget.element_id + '_field'"
761         t-att-class="'field_' + widget.type"
762         t-attf-style="width: #{widget.field.translate ? '99' : '100'}%"
763     />
764     <img class="oe_field_translate" t-if="widget.field.translate" src="/web/static/src/img/icons/terp-translate.png" width="16" height="16" border="0"/>
765 </t>
766 <t t-name="FieldEmail">
767     <table cellpadding="0" cellspacing="0" border="0" width="100%">
768     <tr>
769         <td width="100%">
770             <t t-call="FieldChar"/>
771         </td>
772         <td width="16">
773             <button type="button" class="button" title="Send an e-mail with your default e-mail client">
774                 <img src="/web/static/src/img/icons/terp-mail-message-new.png"/>
775             </button>
776         </td>
777     </tr>
778     </table>
779 </t>
780 <t t-name="FieldUrl">
781     <table cellpadding="0" cellspacing="0" border="0" width="100%">
782     <tr>
783         <td width="100%">
784             <t t-call="FieldChar"/>
785         </td>
786         <td width="16">
787             <button type="button" class="button" title="Open this resource">
788                 <img src="/web/static/src/img/icons/gtk-ok.png"/>
789             </button>
790         </td>
791     </tr>
792     </table>
793 </t>
794 <t t-name="FieldText">
795     <textarea rows="6"
796         t-att-name="widget.name"
797         t-att-id="widget.element_id + '_field'"
798         t-att-class="'field_' + widget.type"
799         t-attf-style="width: #{widget.field.translate ? '99' : '100'}%"
800     ></textarea>
801     <img class="oe_field_translate" t-if="widget.field.translate" src="/web/static/src/img/icons/terp-translate.png" width="16" height="16" border="0"/>
802 </t>
803 <t t-name="web.datetimepicker">
804     <div class="oe_datepicker_root">
805         <input type="text" size="1" style="width: 100%"/>
806         <img class="oe_input_icon oe_datepicker_trigger" src="/web/static/src/img/ui/field_calendar.png"
807              title="Select date" width="16" height="16" border="0"/>
808         <div class="oe_datepicker ui-widget-content ui-corner-all" style="display: none; position: absolute; z-index: 1;">
809             <div class="oe_datepicker_container"/>
810             <button type="button" class="oe_datepicker_close ui-state-default ui-priority-primary ui-corner-all" style="float: right;">Done</button>
811         </div>
812     </div>
813 </t>
814 <t t-name="FieldSelection">
815     <select
816         t-att-name="widget.name"
817         t-att-id="widget.element_id + '_field'"
818         t-att-class="'field_' + widget.type"
819         style="width: 100%">
820             <t t-foreach="widget.values" t-as="option">
821                 <option><t t-esc="option[1]"/></option>
822             </t>
823     </select>
824 </t>
825 <t t-name="FieldMany2One">
826     <div t-att-id="widget.element_id" class="oe-m2o">
827         <input t-att-id="widget.element_id + '_input'" type="text" size="1" style="width: 100%;"/>
828         <span class="oe-m2o-drop-down-button" t-att-id="widget.element_id + '_drop_down'">
829             <img src="/web/static/src/img/down-arrow.png" /></span>
830         <span class="oe-m2o-cm-button" t-att-id="widget.name + '_open'">
831             <img src="/web/static/src/img/icons/gtk-index.png"/></span>
832         <div t-att-id="widget.cm_id" class="contextMenu" style="display:none">
833         </div>
834     </div>
835 </t>
836 <t t-name="FieldMany2One.context_menu">
837     <ul>
838         <li t-att-id="widget.cm_id + '_open'" style="color:grey">Open...</li>
839         <li t-att-id="widget.cm_id + '_create'">Create...</li>
840         <li t-att-id="widget.cm_id + '_search'" class="oe_m2o_menu_item_mandatory">Search...</li>
841         <t t-set="i" t-value="0"/>
842         <t t-foreach="widget.related_entries" t-as="entry">
843             <li t-att-id="widget.cm_id + '_related_' + i" style="color:grey" class="oe_m2o_menu_item_mandatory">
844                 ... <t t-esc="(entry[2] || {})['name'] || ''"/>
845             </li>
846             <t t-set="i" t-value="i+1"/>
847         </t>
848     </ul>
849 </t>
850 <t t-name="FieldOne2Many">
851     <div t-att-id="widget.element_id">
852     </div>
853 </t>
854 <t t-name="FieldMany2Many">
855     <div t-att-id="widget.list_id"></div>
856 </t>
857 <t t-name="FieldReference">
858     <table border="0" width="100%" cellpadding="0" cellspacing="0" class="oe_frame oe_forms">
859     <tr>
860         <td t-att-id="widget.selection.element_id" class="oe_form_frame_cell oe_form_selection">
861             <t t-raw="widget.selection.render()"/>
862         </td>
863         <td t-att-id="widget.m2o.element_id" class="oe_form_frame_cell oe_form_many2one" nowrap="true">
864             <t t-raw="widget.m2o.render()"/>
865         </td>
866     </tr>
867     </table>
868 </t>
869 <t t-name="FieldBoolean">
870     <input type="checkbox"
871         t-att-name="widget.name"
872         t-att-id="widget.element_id + '_field'"
873         t-att-class="'field_' + widget.type"/>
874 </t>
875 <t t-name="FieldProgressBar">
876     <div t-opentag="true" class="oe-progressbar">
877         <span></span>
878     </div>
879 </t>
880 <t t-name="FieldBinaryImage">
881     <table cellpadding="0" cellspacing="0" border="0">
882     <tr>
883         <td align="center">
884             <img src="/web/static/src/img/placeholder.png" class="oe-binary-image"
885                 t-att-border="widget.readonly ? 0 : 1"
886                 t-att-id="widget.element_id + '_field'"
887                 t-att-name="widget.name"
888                 t-att-class="'field_' + widget.type"
889                 t-att-width="widget.node.attrs.img_width || widget.node.attrs.width"
890                 t-att-height="widget.node.attrs.img_height || widget.node.attrs.height"
891             />
892         </td>
893     </tr>
894     <tr>
895         <td align="center" valign="bottom" height="25">
896             <div class="oe-binary">
897                 <table cellspacing="0" cellpadding="0" border="0">
898                 <tr>
899                     <td>
900                         <div class="oe-binary-file-set" style="width: 40px; height:22px;">
901                             <form class="oe-binary-form" t-att-target="widget.iframe"
902                                 method="post" enctype="multipart/form-data" action="/web/binary/upload">
903                                 <input type="hidden" name="session_id" value=""/>
904                                 <input type="hidden" name="callback" t-att-value="widget.iframe"/>
905                                 <button class="button" type="button" title="Set Image">
906                                     <img src="/web/static/src/img/icons/STOCK_DIRECTORY.png"/>
907                                 </button>
908                                 <input type="file" class="oe-binary-file" name="ufile"/>
909                             </form>
910                         </div>
911                     </td>
912                     <td>
913                         <button class="button oe-binary-file-clear" type="button" title="Clear">
914                             <img src="/web/static/src/img/icons/STOCK_MISSING_IMAGE.png"/>
915                         </button>
916                     </td>
917                 </tr>
918                 </table>
919             </div>
920             <div class="oe-binary-progress" style="display: none">
921                 <img src="/web/static/src/img/throbber.gif" width="16" height="16"/>
922                 <b>Uploading ...</b>
923             </div>
924             <iframe t-att-id="widget.iframe" t-att-name="widget.iframe" style="display: none"> </iframe>
925         </td>
926     </tr>
927     </table>
928 </t>
929 <t t-name="FieldBinaryFile">
930     <table cellpadding="0" cellspacing="0" border="0" width="100%">
931     <tr>
932         <td width="100%">
933             <input type="text" size="1"
934                 t-att-name="widget.name"
935                 t-att-id="widget.element_id + '_field'"
936                 t-att-class="'field_' + widget.type" style="width: 100%"
937             />
938         </td>
939         <td class="oe-binary" nowrap="true">
940             <table cellspacing="0" cellpadding="0" border="0">
941             <tr>
942                 <td>
943                     <div class="oe-binary-file-set" style="width: 80px; height:22px;">
944                         <form class="oe-binary-form" t-att-target="widget.iframe"
945                             method="post" enctype="multipart/form-data" action="/web/binary/upload">
946                             <input type="hidden" name="session_id" value=""/>
947                             <input type="hidden" name="callback" t-att-value="widget.iframe"/>
948                             <button class="button" type="button" title="Set Image">
949                                 <img src="/web/static/src/img/icons/STOCK_DIRECTORY.png"/>
950                                 <span>Select</span>
951                             </button>
952                             <input type="file" class="oe-binary-file" name="ufile"/>
953                         </form>
954                     </div>
955                 </td>
956                 <td>
957                     <button class="button oe-binary-file-save" type="button" title="Save As">
958                         <img src="/web/static/src/img/icons/gtk-save.png"/>
959                         <span>Save As</span>
960                     </button>
961                 </td>
962                 <td>
963                     <button class="button oe-binary-file-clear" type="button" title="Clear">
964                         <img src="/web/static/src/img/icons/STOCK_MISSING_IMAGE.png"/>
965                         <span>Clear</span>
966                     </button>
967                 </td>
968             </tr>
969             </table>
970         </td>
971         <td class="oe-binary-progress" style="display: none" nowrap="true">
972             <img src="/web/static/src/img/throbber.gif" width="16" height="16"/>
973             <b>Uploading ...</b>
974             <iframe t-att-id="widget.iframe" t-att-name="widget.iframe" style="display: none"> </iframe>
975         </td>
976     </tr>
977     </table>
978 </t>
979 <t t-name="WidgetButton">
980     <button type="button"
981         t-att-id="widget.element_id + '_button'"
982         t-att-title="widget.help"
983         style="width: 100%" class="button">
984         <img t-if="widget.node.attrs.icon" t-att-src="'/web/static/src/img/icons/' + widget.node.attrs.icon + '.png'" width="16" height="16"/>
985         <span t-if="widget.string"><t t-esc="widget.string"/></span>
986     </button>
987 </t>
988 <t t-name="SearchView">
989     <form class="oe_forms">
990         <t t-call="SearchView.render_lines"/>
991         <div class="oe_search-view-buttons" style="text-align: right;">
992             <input type="submit" value="Search"/>
993             <input type="reset" value="Clear"/>
994             <button class="oe_search-view-custom-filter-btn"><span>Advanced Filter</span></button>
995             <select class="oe_search-view-filters-management">
996             </select>
997         </div>
998     </form>
999 </t>
1000 <t t-name="SearchView.managed-filters">
1001     <option value="_filters">-- Filters --</option>
1002     <t t-set="i" t-value="0"/>
1003     <t t-foreach="filters" t-as="filter">
1004         <option t-att-value="'get:' + i"><t t-esc="filter.name"/></option>
1005         <t t-set="i" t-value="i+1"/>
1006     </t>
1007     <option value="_actions">-- Actions --</option>
1008     <option value="save_filter">Save Filter</option>
1009     <option value="manage_filters">Manage Filters</option>
1010 </t>
1011 <t t-name="SearchView.managed-filters.add">
1012     <div>
1013         <p>Filter Name:</p>
1014         <input type="text"/>
1015         <p>(Any existing filter with the same name will be replaced)</p>
1016     </div>
1017 </t>
1018 <t t-name="SearchView.render_lines">
1019     <table class="oe-searchview-render-line" border="0" cellspacing="0" cellpadding="0"
1020            t-foreach="lines" t-as="line">
1021         <tr>
1022             <td t-foreach="line" t-as="widget">
1023                 <t t-raw="widget.render(defaults)"/>
1024             </td>
1025         </tr>
1026     </table>
1027 </t>
1028 <button t-name="SearchView.filter" type="button"
1029         t-att-id="element_id"
1030         t-att-title="attrs.help"
1031         t-att-class="classes.join(' ')"
1032         t-att-autofocus="attrs.default_focus === '1' ? 'autofocus' : undefined">
1033     <img t-if="attrs.icon" t-att-src="'/web/static/src/img/icons/' + attrs.icon + '.png'" width="16" height="16"/>
1034     <br t-if="attrs.icon and attrs.string"/>
1035     <t t-esc="attrs.string"/>
1036 </button>
1037 <span t-name="SearchView.filters" class="filter_label_group"
1038     ><t t-foreach="filters" t-as="filter"
1039         ><t t-raw="filter.render(defaults)"/></t
1040 ></span>
1041 <t t-name="SearchView.field">
1042     <label t-att-class="'oe_label' + (attrs.help ? '_help' : '')"
1043            t-att-title="attrs.help"
1044            t-att-for="element_id">
1045         <t t-esc="attrs.string || attrs.name"/>
1046         <span t-if="attrs.help">?</span>
1047     </label>
1048     <div style="white-space: nowrap;">
1049         <input type="text" size="15" t-att-name="attrs.name"
1050                t-att-autofocus="attrs.default_focus === '1' ? 'autofocus' : undefined"
1051                t-att-id="element_id"
1052                t-att-value="defaults[attrs.name] || ''"/>
1053         <t t-if="filters.length" t-raw="filters.render(defaults)"/>
1054     </div>
1055 </t>
1056 <t t-name="SearchView.date">
1057     <label t-att-class="'oe_label' + (attrs.help ? '_help' : '')"
1058            t-att-title="attrs.help"
1059            t-att-for="element_id">
1060         <t t-esc="attrs.string || attrs.name"/>
1061         <span t-if="attrs.help">?</span>
1062     </label>
1063     <div style="white-space: nowrap;">
1064         <span t-att-id="element_id"></span>
1065         <t t-if="filters.length" t-raw="filters.render(defaults)"/>
1066     </div>
1067 </t>
1068 <t t-name="SearchView.field.selection">
1069     <label t-att-title="attrs.help"
1070            t-att-class="'oe_label' + (attrs.help ? '_help' : '')"
1071            t-att-for="element_id">
1072         <t t-esc="attrs.string || attrs.name"/>
1073         <span t-if="attrs.help">?</span>
1074     </label>
1075     <div style="white-space: nowrap;">
1076         <select t-att-name="attrs.name" t-att-id="element_id"
1077                 t-att-autofocus="attrs.default_focus === '1' || undefined">
1078             <option/>
1079             <t t-foreach="attrs.selection" t-as="option">
1080                 <t t-set="selected" t-value="defaults[attrs.name] === option[0]"/>
1081                 <option t-if="selected"
1082                         t-att-value="option[0]" selected="selected">
1083                     <t t-esc="option[1]"/>
1084                 </option>
1085                 <option t-if="!selected" t-att-value="option[0]">
1086                     <t t-esc="option[1]"/>
1087                 </option>
1088             </t>
1089         </select>
1090         <t t-if="filters.length" t-raw="filters.render(defaults)"/>
1091     </div>
1092 </t>
1093 <t t-name="SearchView.util.expand">
1094     <div t-att-class="'searchview_group ' + (expand == '0' ? 'folded' : 'expanded')"
1095          t-att-id="element_id">
1096         <a t-if="label" class="searchview_group_string" href="#">
1097             <t t-esc="label"/>
1098         </a>
1099         <div class="searchview_group_content">
1100             <t t-raw="content"/>
1101         </div>
1102     </div>
1103 </t>
1104 <t t-name="SearchView.group">
1105     <t t-call="SearchView.util.expand">
1106         <t t-set="expand" t-value="attrs.expand"/>
1107         <t t-set="label" t-value="attrs.string"/>
1108         <t t-set="content">
1109             <t t-call="SearchView.render_lines"/>
1110         </t>
1111     </t>
1112 </t>
1113 <t t-name="SearchView.extended_search">
1114     <t t-call="SearchView.util.expand">
1115         <t t-set="expand" t-value="false"/>
1116         <t t-set="label" t-value="'Advanced Filters'"/>
1117         <t t-set="content">
1118             <div class="searchview_extended_groups_list">
1119             </div>
1120         </t>
1121     </t>
1122 </t>
1123 <t t-name="SearchView.extended_search.group">
1124     <div t-att-id="element_id" class="searchview_extended_group">
1125         <select class="searchview_extended_group_choice">
1126             <option value="any">Any of the following conditions must match</option>
1127             <option value="all">All the following conditions must match</option>
1128             <option value="none">None of the following conditions must match</option>
1129         </select>
1130         <a class="searchview_extended_delete_group"
1131                 href="javascript:void(0)"><span></span></a>
1132         <div class="searchview_extended_propositions_list">
1133         </div>
1134         <a class="searchview_extended_add_proposition" href="javascript:void(0)">
1135             <span>Add condition</span></a>
1136         <div class="oe_adv_filters_and"><span>and</span></div>
1137     </div>
1138 </t>
1139 <t t-name="SearchView.extended_search.proposition">
1140     <div t-att-id="element_id">
1141         <select class="searchview_extended_prop_field">
1142             <t t-foreach="attrs.fields" t-as="field">
1143                 <option t-if="typeof field.store === 'undefined' || field.store || field.fnct_search"
1144                         t-att="{'selected': field === attrs.selected ? 'selected' : null}"
1145                         t-att-value="field.name">
1146                     <t t-esc="field.string"/>
1147                 </option>
1148             </t>
1149         </select>
1150         <select class="searchview_extended_prop_op"/>
1151         <span class="searchview_extended_prop_value"/>
1152         <a class="searchview_extended_delete_prop"
1153                 href="javascript:void(0)"><span> </span></a>
1154     </div>
1155 </t>
1156 <t t-name="SearchView.extended_search.proposition.char">
1157     <input t-att-id="element_id" class="field_char"/>
1158 </t>
1159 <t t-name="SearchView.extended_search.proposition.empty">
1160     <span t-att-id="element_id"></span>
1161 </t>
1162 <t t-name="SearchView.extended_search.proposition.integer">
1163     <input type="number" t-att-id="element_id" class="field_integer" step="1"/>
1164 </t>
1165 <t t-name="SearchView.extended_search.proposition.float">
1166     <input type="number" t-att-id="element_id" class="field_float" step="0.01"/>
1167 </t>
1168 <t t-name="SearchView.extended_search.proposition.boolean">
1169 </t>
1170 <t t-name="SearchView.extended_search.proposition.selection">
1171     <select t-att-id="element_id">
1172         <t t-foreach="field.selection" t-as="element">
1173         <option t-att-value="element[0]"><t t-esc="element[1]"/></option>
1174         </t>
1175     </select>
1176 </t>
1177 <t t-name="DialogWarning">
1178     <table cellspacing="0" cellpadding="0" border="0" class="oe-dialog-warning">
1179     <tr>
1180         <td><img src="/web/static/src/img/warning.png" class="oe-dialog-icon"/></td>
1181         <td>
1182             <p>
1183                 <t t-js="d">
1184                     var message = d.message ? d.message : d.error.data.fault_code;
1185                     d.html_error = context.engine.tools.html_escape(message)
1186                         .replace(/\n/g, '<br/>');
1187                 </t>
1188                 <t t-raw="html_error"/>
1189             </p>
1190         </td>
1191     </tr>
1192     </table>
1193 </t>
1194 <t t-name="DialogTraceback">
1195     <pre><t t-esc="error.message"/></pre>
1196     <hr/>
1197     <pre><t t-esc="error.data.debug"/></pre>
1198 </t>
1199 <t t-name="SelectCreatePopup">
1200     <div t-att-id="element_id">
1201         <table style="width:100%">
1202             <tr style="width:100%">
1203                 <td style="width:100%">
1204                     <div t-att-id="element_id + '_search'" style="width:100%"></div>
1205                 </td>
1206             </tr>
1207             <tr style="width:100%">
1208                 <td style="width:100%">
1209                     <div t-att-id="element_id + '_view_list'" style="width:100%"></div>
1210                 </td>
1211             </tr>
1212         </table>
1213         <div t-att-id="element_id + '_view_form'" style="width:100%"></div>
1214     </div>
1215 </t>
1216 <t t-name="SelectCreatePopup.search.buttons">
1217     <button type="button" class="oe_selectcreatepopup-search-select" disabled="disabled">Select</button>
1218     <button type="button" class="oe_selectcreatepopup-search-close">Cancel</button>
1219 </t>
1220 <t t-name="SelectCreatePopup.form.buttons">
1221     <t t-if="widget.options.disable_multiple_selection">
1222         <button type="button" class="oe_selectcreatepopup-form-save">Save</button>
1223     </t>
1224     <t t-if="! widget.options.disable_multiple_selection">
1225         <button type="button" class="oe_selectcreatepopup-form-save-new">Save &amp; New</button>
1226         <button type="button" class="oe_selectcreatepopup-form-save">Save &amp; Close</button>
1227     </t>
1228     <button type="button" class="oe_selectcreatepopup-form-close">Cancel</button>
1229 </t>
1230 <t t-name="FormOpenPopup">
1231     <div t-att-id="element_id">
1232         <div t-att-id="element_id + '_view_form'" style="width:100%"></div>
1233     </div>
1234 </t>
1235 <t t-name="FormOpenPopup.form.buttons">
1236     <button type="button" class="oe_formopenpopup-form-save">Save</button>
1237     <button type="button" class="oe_formopenpopup-form-close">Cancel</button>
1238 </t>
1239 <t t-name="ListView.row.frame" t-extend="WidgetFrame">
1240     <t t-jquery="tr">
1241         $(document.createElement('t'))
1242             .append(this.contents())
1243             .attr({
1244                 't-foreach': this.attr('t-foreach'),
1245                 't-as': this.attr('t-as')
1246             })
1247             .replaceAll(this)
1248             .after($(document.createElement('td')).append(
1249                 $(document.createElement('button')).attr({
1250                     'class': 'oe-edit-row-save', 'type': 'button'}).text('Save')))
1251             .before($(document.createElement('td')).append(
1252                 $(document.createElement('button')).attr({
1253                     'class': 'oe-edit-row-cancel', 'type': 'button'}).text('Cancel')))
1254             .unwrap();
1255     </t>
1256 </t>
1257
1258 <t t-name="ExportView">
1259     <a id="exportview" href="javascript: void(0)" style="text-decoration: none;color: #3D3D3D;">Export</a>
1260 </t>
1261 <table t-name="ExportTreeView" class="oe-export"
1262        style="background-color: #F3F3F3;">
1263     <tr>
1264         <td colspan="3">
1265             This wizard will export all data that matches the current search criteria to a CSV file.
1266             You can export all data or only the fields that can be reimported after modification.
1267         </td>
1268     </tr>
1269     <tr>
1270         <td colspan="3">
1271             <label for="import_compat">Export Type:</label>
1272             <select id="import_compat" name="import_compat">
1273                 <option value="yes">Import Compatible Export</option>
1274                 <option value="">Export all Data</option>
1275             </select>
1276
1277             <label for="export_format">Export Formats</label>
1278             <select id="export_format" name="export_format"></select>
1279         </td>
1280     </tr>
1281
1282     <tr>
1283         <th>Available fields</th>
1284         <th/>
1285         <th>
1286             Fields to export
1287             <a style="color: blue; text-decoration: none;" href="#" id="export_new_list">Save fields list</a>
1288             <div id="savenewlist"></div>
1289             <div id="ExistsExportList"></div>
1290         </th>
1291     </tr>
1292     <tr style="height: 400px;">
1293         <td class="oe_export_fields_selector_left">
1294             <div id="left_field_panel">
1295             </div>
1296         </td>
1297         <td class="oe_export_fields_selector_center">
1298             <button id="add_field">Add</button>
1299             <button id="remove_field">Remove</button>
1300             <button id="remove_all_field">Remove All</button>
1301         </td>
1302         <td class="oe_export_fields_selector_right">
1303             <select name="fields_list" id="fields_list"
1304                     multiple="multiple"></select>
1305         </td>
1306     </tr>
1307 </table>
1308
1309 <table t-name="ExportTreeView-Secondary"
1310        id="field-tree-structure" class="oe_export_fields_selector_export"
1311        cellspacing="0" cellpadding="0">
1312     <tr><th class="oe_export_tree_header"> Name </th></tr>
1313     <t t-call="ExportTreeView-Secondary.children"/>
1314 </table>
1315 <tr t-name="ExportTreeView-Secondary.children"
1316     t-foreach="fields" t-as="field"
1317     t-att-id="'treerow-' + field.id" class="oe_export_row">
1318     <td>
1319         <table class="tree_grid" border="0">
1320             <tr class="oe_export_row">
1321                 <t t-foreach="(field.id).split('/')" t-as="level" >
1322                     <t t-if="(field.id).split('/')[0] != level">
1323                         <td width="18">&amp;nbsp;</td>
1324                     </t>
1325                 </t>
1326                 <td valign="top" align="left" style="cursor: pointer;" width="18">
1327                     <t t-if="field.children">
1328                         <t t-if="(field.id).split('/').length != 3">
1329                             <img t-att-id="'parentimg-' + field.id" src="/web/static/src/img/expand.gif" width="16" height="16" border="0"/>
1330                         </t>
1331                     </t>
1332                 </td>
1333                 <td id="tree-column" valign="middle" align="left" style="cursor: pointer;">
1334                     <a t-att-id="'export-' + field.id"  t-att-string="field.string" href="javascript: void(0);" style="text-decoration: none;">
1335                         <t t-esc="field.string"/>
1336                     </a>
1337                 </td>
1338             </tr>
1339         </table>
1340     </td>
1341 </tr>
1342
1343 <t t-name="ExportNewList">
1344     <tr>
1345         <th><label>Save as:</label></th>
1346         <td><input size="10" type="text" id="savelist_name"/></td>
1347         <td><button class="oe_export_button_export" id="add_export_list">Ok</button></td>
1348     </tr>
1349 </t>
1350
1351 <t t-name="Exists.ExportList">
1352     <label for="saved_export_list">Saved exports:</label>
1353
1354     <select id="saved_export_list">
1355         <option></option>
1356         <t t-foreach="existing_exports" t-as="export">
1357             <option t-att-value="export.id"><t t-esc="export.name"/></option>
1358         </t>
1359     </select>
1360     <button class="oe_export_button_export" id="delete_export_list" type="button">Delete</button>
1361 </t>
1362 <t t-name="Change_Pwd">
1363     <form name="change_password_form" class="oe_forms" method="POST">
1364         <table align="center">
1365             <tr>
1366                 <td><label for="old_pwd">Old Password:</label></td>
1367                 <td><input type="password" name="old_pwd"
1368                            minlength="1" autofocus="autofocus"/></td>
1369             </tr>
1370             <tr>
1371             <td><label for="new_password">New Password:</label></td>
1372             <td><input type="password" name="new_password"
1373                        minlength="1" autofocus="autofocus"/></td>
1374             </tr>
1375             <tr>
1376                 <td><label for="confirm_pwd">Confirm Password:</label></td>
1377                 <td><input type="password" name="confirm_pwd"
1378                              minlength="1"/></td>
1379             </tr>
1380             <tr>
1381                 <td colspan="2" align="right"><input type="submit" value="Change Password"/></td>
1382             </tr>
1383         </table>
1384     </form>
1385 </t>
1386
1387 <t t-name="ImportView">
1388     <a id="importview" href="javascript: void(0)" style="text-decoration: none;color: #3D3D3D;">Import</a>
1389 </t>
1390 <t t-name="ImportDataView">
1391 <form name="import_data" id="import_data" action="" method="post" enctype="multipart/form-data">
1392     <input type="hidden" name="session_id" t-att-value="session.session_id"/>
1393     <h2 class="separator horizontal">1. Import a .CSV file</h2>
1394     <p>Select a .CSV file to import. If you need a sample of file to import,
1395        you should use the export tool with the "Import Compatible" option.
1396     </p>
1397     <p>
1398         <label for="csvfile">CSV File:</label>
1399         <input type="file" id="csvfile" size="50" name="csvfile"/>
1400     </p>
1401     <h2 class="separator horizontal">2. Check your file format</h2>
1402     <div id="result"></div>
1403     <fieldset>
1404         <legend style="cursor:pointer;">Import Options</legend>
1405         <table style="display:none">
1406             <tr>
1407                 <td colspan="4">
1408                     <label for="file_has_headers">Does your file have titles?</label>
1409                     <input type="checkbox" checked="checked"
1410                            id="file_has_headers"/>
1411                 </td>
1412             </tr>
1413             <tr>
1414                 <td><label for="csv_separator">Separator:</label></td>
1415                 <td><input type="text" name="csvsep" id="csv_separator" value=","/></td>
1416                 <td><label for="csv_delimiter">Delimiter:</label></td>
1417                 <td><input type="text" name="csvdel" id="csv_delimiter" value='"'/></td>
1418             </tr>
1419             <tr>
1420                 <td><label for="csv_encoding">Encoding:</label></td>
1421                 <td>
1422                     <select name="csvcode" id="csv_encoding">
1423                         <option value="utf-8">UTF-8</option>
1424                         <option value="latin1">Latin 1</option>
1425                     </select>
1426                 </td>
1427                 <td><label for="csv_skip" title="For use if CSV files have titles on multiple lines, skips more than a single line during import">
1428                     Lines to skip<sup>?</sup>:</label></td>
1429                 <td><input type="number" id="csv_skip" value="0" min="0"/></td>
1430             </tr>
1431         </table>
1432     </fieldset>
1433 </form>
1434 </t>
1435 <table t-name="ImportView.result"
1436         class="oe_import_grid" width="100%" style="margin: 5px 0;">
1437     <tr t-if="headers" class="oe_import_grid-header">
1438         <td t-foreach="headers" t-as="header" class="oe_import_grid-cell">
1439             <t t-esc="header"/></td>
1440     </tr>
1441     <tr>
1442         <td t-foreach="records[0]" t-as="column">
1443             <input class="sel_fields"/>
1444         </td>
1445     </tr>
1446     <tr t-foreach="records" t-as="record" class="oe_import_grid-row">
1447         <td t-foreach="record" t-as="cell" class="oe_import_grid-cell">
1448             <t t-esc="cell"/></td>
1449     </tr>
1450 </table>
1451 <t t-name="ImportView.error">
1452     <p style="white-space:pre-line;">The import failed due to:<t t-esc="error.message"/></p>
1453     <t t-if="error.preview">
1454         <p>Here is a preview of the file we could not import:</p>
1455         <pre><t t-esc="error.preview"/></pre>
1456     </t>
1457 </t>
1458
1459 <t t-name="About-Page">
1460     <div>
1461         <h1>OpenERP Web</h1>
1462         <h3 style="padding:0 5px 5px">Version <t t-esc="version_info.version"/></h3>
1463         <p>
1464             Copyright © 2011-TODAY OpenERP SA. All Rights Reserved.<br />
1465             OpenERP is a trademark of the <a target="_blank" href="http://openerp.com/" style="text-decoration: underline;">OpenERP SA Company</a>.
1466         </p>
1467         <p>
1468             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>
1469         </p>
1470         <br />
1471         <h1>About OpenERP</h1>
1472         <p>
1473             <a target="_blank" href="http://openerp.com/" style="text-decoration: underline;">OpenERP</a> is a free enterprise-scale software system that is designed to boost
1474             productivity and profit through data integration. It connects, improves and
1475             manages business processes in areas such as sales, finance, supply chain,
1476             project management, production, services, CRM, etc...
1477         </p>
1478         <p>
1479             The system is platform-independent, and can be installed on Windows, Mac OS X,
1480             and various Linux and other Unix-based distributions. Its architecture enables
1481             new functionality to be rapidly created, modifications to be made to a
1482             production system and migration to a new version to be straightforward.
1483         </p>
1484         <p>
1485             Depending on your needs, OpenERP is available through a web or application client.
1486         </p>
1487     </div>
1488 </t>
1489 <t t-name="FieldStatus.content">
1490     <ul class="oe-arrow-list">
1491         <t t-set="size" t-value="widget.to_show.length"/>
1492         <t t-foreach="_.range(size)" t-as="i">
1493             <li t-att-class="widget.to_show[i][0] === widget.selected_value ? 'oe-arrow-list-selected' : ''">
1494                 <span class="oe-arrow-list-before" t-if="i &gt; 0"></span><span><t t-esc="widget.to_show[i][1]"/></span><span class="oe-arrow-list-after" t-if="i &lt; size - 1"></span>
1495             </li>
1496         </t>
1497     </ul>
1498 </t>
1499 <t t-name="EmptyComponent">
1500     <div></div>
1501 </t>
1502 </templates>