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