summaryrefslogtreecommitdiff
path: root/addons/base/static/src/xml/base.xml
diff options
context:
space:
mode:
Diffstat (limited to 'addons/base/static/src/xml/base.xml')
-rw-r--r--addons/base/static/src/xml/base.xml426
1 files changed, 378 insertions, 48 deletions
diff --git a/addons/base/static/src/xml/base.xml b/addons/base/static/src/xml/base.xml
index 06e2b1b8e5c..db0fdad44fa 100644
--- a/addons/base/static/src/xml/base.xml
+++ b/addons/base/static/src/xml/base.xml
@@ -19,23 +19,31 @@
</div>
<table border="0" cellpadding="0" cellspacing="0" width="100%" height="100%" class="main_table">
<tr>
- <td colspan="2">
+ <td colspan="2" valign="top">
<div id="oe_header" class="header"></div>
<div id="oe_menu" class="menu"></div>
</td>
</tr>
<tr>
- <td valign="top" id="oe_secondary_menu" class="secondary_menu">
+ <td valign="top" class="login-container" colspan="2">
+ <div id="oe_login" class="login"></div>
</td>
- <td valign="top" class="oe-main-content">
- <div id="oe_app" class="oe-application">
- <div style="width:100%;">&amp;nbsp;</div>
- </div>
+ </tr>
+ <tr class="db_options_row">
+ <td valign="top" class="db_container">
+ <div id="oe_database" class="database"></div>
+ </td>
+ <td valign="top">
+ <div id="oe_db_options"></div>
</td>
</tr>
<tr>
- <td valign="top" class="login-container" colspan="2">
- <div id="oe_login" class="login"></div>
+ <td valign="top" id="oe_secondary_menu" class="secondary_menu">
+ </td>
+ <td valign="top">
+ <div id="oe_app" class="oe-application">
+ <div style="width: 100%;">&amp;nbsp;</div>
+ </div>
</td>
</tr>
<tr>
@@ -50,8 +58,190 @@
<t t-name="Loading">
Loading...
</t>
+<t t-name="Database">
+ <ul class="db_options" style="padding: 0px; display: inline;">
+ <li id="db-create">Create</li>
+ <li id="db-drop">Drop</li>
+ <li id="db-backup">Backup</li>
+ <li id="db-restore">Restore</li>
+ <li id="db-change-password">Password</li>
+ <li id="back-to-login">Back to Login</li>
+ </ul>
+</t>
+<t t-name="CreateDB">
+ <form name="create_db_form" class="oe_forms" method="POST">
+ <table width="100%">
+ <tr>
+ <td class="option_string">
+ CREATE DATABASE
+ </td>
+ </tr>
+ </table>
+ <table align="center" class="db_option_table">
+ <tr>
+ <td><label for="super_admin_pwd">Super admin password:</label></td>
+ <td><input type="password" name="super_admin_pwd"
+ class="required" autofocus="autofocus"/></td>
+ </tr>
+ <tr>
+ <td><label for="db_name">New database name:</label></td>
+ <td><input type="text" name="db_name" class="required"/></td>
+ </tr>
+ <tr>
+ <td><label for="demo_data">Load Demonstration data:</label></td>
+ <td><input type="checkbox" name="demo_data" checked='checked'/></td>
+ </tr>
+ <tr>
+ <td><label for="db_lang">Default language:</label></td>
+ <td>
+ <select name="db_lang" t-if="lang_list">
+ <t t-foreach="lang_list" t-as="lang">
+ <option t-att-value="lang[0]"
+ t-att-selected="lang[0] === 'en_US' ? 'selected' : undefined">
+ <t t-esc="lang[1]"/></option>
+ </t>
+ </select>
+ </td>
+ </tr>
+ <tr>
+ <td><label for="create_admin_pwd">Super admin password:</label></td>
+ <td><input type="password" name="create_admin_pwd" class="required"/></td>
+ </tr>
+ <tr>
+ <td><label for="create_confirm_pwd">Confirm password:</label></td>
+ <td><input type="password" name="create_confirm_pwd" class="required"
+ equalTo="input[name=create_admin_pwd]"/></td>
+ </tr>
+ <tr>
+ <td colspan="2" align="right"><input type="submit" value="Create"/></td>
+ </tr>
+ </table>
+ </form>
+</t>
+<t t-name="DropDB">
+ <form name="drop_db_form" class="oe_forms" method="POST">
+ <table width="100%">
+ <tr>
+ <td class="option_string">
+ DROP DATABASE
+ </td>
+ </tr>
+ </table>
+ <table align="center" class="db_option_table">
+ <tr>
+ <td><label for="drop_db">Database:</label></td>
+ <td>
+ <select t-if="db_list" name="drop_db" autofocus="autofocus">
+ <t t-foreach="db_list" t-as="db">
+ <option t-att-value="db"><t t-esc="db"/></option>
+ </t>
+ </select>
+ </td>
+ </tr>
+ <tr>
+ <td><label for="drop_password">Password:</label></td>
+ <td><input type="password" name="drop_pwd" class="required"/></td>
+ </tr>
+ <tr>
+ <td colspan="2" align="right"><input type="submit" value="Drop"/></td>
+ </tr>
+ </table>
+ </form>
+</t>
+<t t-name="BackupDB">
+ <form name="backup_db_form" class="oe_forms" method="POST" target="backup-target"
+ action="/base/database/backup">
+ <input type="hidden" name="token"/>
+ <table width="100%">
+ <tr>
+ <td class="option_string">
+ BACKUP DATABASE
+ </td>
+ </tr>
+ </table>
+ <table align="center" class="db_option_table">
+ <tr>
+ <td><label for="backup_db">Database:</label></td>
+ <td>
+ <select t-if="db_list" name="backup_db" autofocus="autofocus">
+ <t t-foreach="db_list" t-as="db">
+ <option t-att-value="db"><t t-esc="db"/></option>
+ </t>
+ </select>
+ </td>
+ </tr>
+ <tr>
+ <td><label for="backup_pwd">Password:</label></td>
+ <td><input type="password" name="backup_pwd" class="required"/></td>
+ </tr>
+ <tr>
+ <td colspan="2" align="right"><input type="submit" value="Backup"/></td>
+ </tr>
+ </table>
+ </form>
+</t>
+<t t-name="RestoreDB">
+ <form name="restore_db_form" class="oe_forms" method="POST">
+ <table width="100%">
+ <tr>
+ <td class="option_string">
+ RESTORE DATABASE
+ </td>
+ </tr>
+ </table>
+ <table align="center" class="db_option_table">
+ <tr>
+ <td><label for="restore_db">File:</label></td>
+ <td><input type="file" name="db_file" class="required"
+ autofocus="autofocus"/></td>
+ </tr>
+ <tr>
+ <td><label for="restore_pwd">Password:</label></td>
+ <td><input type="password" name="restore_pwd" class="required"/></td>
+ </tr>
+ <tr>
+ <td><label for="new_db">New database name:</label></td>
+ <td><input type="text" name="new_db" class="required"/></td>
+ </tr>
+ <tr>
+ <td colspan="2" align="right"><input type="submit" value="Restore"/></td>
+ </tr>
+ </table>
+ </form>
+</t>
+<t t-name="Change_DB_Pwd">
+ <form name="change_pwd_form" class="oe_forms" method="POST">
+ <table width="100%">
+ <tr>
+ <td class="option_string">
+ CHANGE DATABASE PASSWORD
+ </td>
+ </tr>
+ </table>
+ <table align="center" class="db_option_table">
+ <tr>
+ <td><label for="old_pwd">Old password:</label></td>
+ <td><input type="password" name="old_pwd" class="required"
+ minlength="1" autofocus="autofocus"/></td>
+ </tr>
+ <tr>
+ <td><label for="new_pwd">New password:</label></td>
+ <td><input type="password" name="new_pwd" class="required"
+ minlength="1"/></td>
+ </tr>
+ <tr>
+ <td><label for="confirm_pwd">Confirm password:</label></td>
+ <td><input type="password" name="confirm_pwd" class="required"
+ equalTo="input[name=new_pwd]" minlength="1"/></td>
+ </tr>
+ <tr>
+ <td colspan="2" align="right"><input type="submit" value="Change Password"/></td>
+ </tr>
+ </table>
+ </form>
+</t>
<t t-name="Login">
- <form>
+ <form class="oe_forms">
<fieldset>
<legend style="">
<img src="/base/static/src/img/stock_person.png" alt="" />
@@ -92,6 +282,7 @@
<tr>
<td></td>
<td>
+ <button type="button" id="oe-db-config">Database</button>
<button type="submit" name="submit">Login</button>
</td>
</tr>
@@ -103,7 +294,7 @@
<div class="oe_login_right_pane">
<p>We think that daily job activities can be more intuitive, efficient, automated, .. and even fun.</p>
<h3>OpenERP's vision to be:</h3>
-
+
<table cellpadding="0" cellspacing="0" width="100%" style="border:none;">
<tbody>
<tr>
@@ -135,7 +326,7 @@
</tr>
</tbody>
</table>
-
+
</div>
</t>
<t t-name="Header">
@@ -232,18 +423,40 @@
</t>
</td>
<td class="view-manager-main-sidebar" height="100%">
+ <t t-foreach="views" t-as="view">
+ <div t-attf-id="#{prefix}_sidebar_#{view.view_type}" class="sidebar-main-div closed-sidebar" style="display: none"/>
+ </t>
</td>
</tr>
</table>
</t>
+<t t-name="Sidebar">
+ <a class="toggle-sidebar"></a>
+ <div class="sidebar-content">
+ <div class="sidebar-actions">
+ </div>
+ </div>
+</t>
+<t t-name="Sidebar.section">
+ <h2><t t-esc="name"/></h2>
+ <div t-att-id="section_id" t-att-class="classname">
+ <ul t-if="items">
+ <li t-foreach="items" t-as="item" t-att-class="item.classname">
+ <a class="oe_sidebar_action_a" t-att-id="item.element_id" t-att-title="item.title" href="#">
+ <t t-esc="item.label"/>
+ </a>
+ </li>
+ </ul>
+ </div>
+</t>
<table t-name="ListView" class="oe-listview-content">
<t t-set="columns_count" t-value="visible_columns.length + (options.selectable ? 1 : 0) + (options.deletable ? 1 : 0)"/>
<thead class="ui-widget-header">
- <tr t-if="flags.action_buttons !== false or flags.pager !== false">
+ <tr t-if="options.action_buttons !== false or options.pager !== false">
<th t-att-colspan="columns_count">
<table>
<tr>
- <td t-if="flags.action_buttons !== false" class="oe-actions">
+ <td t-if="options.action_buttons !== false" class="oe-actions">
<button type="button" class="oe-list-add"
t-if="options.addable">
<t t-esc="options.addable"/>
@@ -253,7 +466,7 @@
Delete
</button>
</td>
- <th t-if="flags.pager !== false" class="oe-list-pager">
+ <th t-if="options.pager !== false" class="oe-list-pager">
<button type="button" disabled="disabled"
data-pager-action="first">First</button>
<button type="button" disabled="disabled"
@@ -311,7 +524,7 @@
t-att-data-index="row_index">
<t t-foreach="columns" t-as="column">
<td t-if="column.meta">
-
+
</td>
</t>
<th t-if="options.selectable" class="oe-record-selector" width="1">
@@ -335,7 +548,7 @@
<t t-name="FormView">
<div class="oe_form_header" t-att-id="view.element_id + '_header'">
<h2 class="oe_view_title"><t t-esc="view.fields_view.arch.attrs.string"/> <button class="oe_get_xml_view">xml</button></h2>
- <div class="oe_form_buttons" t-if="view.flags.action_buttons !== false">
+ <div class="oe_form_buttons" t-if="view.options.action_buttons !== false">
<!--<button type="button" class="oe_form_button_save">
<span class="oe_form_on_update">Save</span>
<span class="oe_form_on_create">Create</span>
@@ -347,7 +560,7 @@
<!--<button type="button" class="oe_form_button_cancel">Cancel</button>-->
<button type="button" class="oe_form_button_new">New</button>
</div>
- <div class="oe_form_pager" t-if="view.flags.pager !== false">
+ <div class="oe_form_pager" t-if="view.options.pager !== false">
<button type="button" data-pager-action="first">First</button>
<button type="button" data-pager-action="previous">&lt;&lt;</button>
@@ -360,21 +573,20 @@
<t t-raw="frame.render()"/>
</t>
<t t-name="FormView.sidebar.attachments">
- <h2>Attachments</h2>
<div class="oe-sidebar-attachments-toolbar">
<div class="oe-binary-file-set" style="float: right">
<form class="oe-binary-form" t-attf-target="#{element_id}_iframe"
method="post" enctype="multipart/form-data" action="/base/binary/upload_attachment">
<input type="hidden" name="session_id" t-att-value="session.session_id"/>
<input type="hidden" name="callback" t-attf-value="#{element_id}_iframe"/>
- <input type="hidden" name="model" t-att-value="dataset.model"/>
- <input type="hidden" name="id" t-att-value="datarecord.id"/>
+ <input type="hidden" name="model" t-att-value="view.dataset.model"/>
+ <input type="hidden" name="id" t-att-value="view.datarecord.id"/>
<button class="button" type="button">
<img src="/base/static/src/img/throbber.gif" width="16" height="16" style="display: none"/>
<span>Add</span>
</button>
<input type="file" class="oe-binary-file" name="ufile" title="Add attachment"
- t-att-onclick="datarecord.id ? null : 'alert(\'No record selected ! You can only attach to existing record.\'); return false;'"/>
+ t-att-onclick="view.datarecord.id ? null : 'alert(\'No record selected ! You can only attach to existing record.\'); return false;'"/>
</form>
<iframe t-attf-id="#{element_id}_iframe" t-attf-name="#{element_id}_iframe" style="display: none"> </iframe>
</div>
@@ -384,7 +596,7 @@
<li t-foreach="attachments" t-as="attachment">
<t t-if="attachment.type == 'binary'" t-set="attachment.url" t-value="'/base/binary/saveas?session_id='
+ session.session_id + '&amp;model=ir.attachment&amp;id=' + attachment.id
- + '&amp;field=datas' + '&amp;fieldname=name' + '&amp;t=' + (new Date().getTime())"/>
+ + '&amp;field=datas&amp;fieldname=name&amp;t=' + (new Date().getTime())"/>
<a class="oe-sidebar-attachments-link" t-att-href="attachment.url" target="_blank">
<t t-esc="attachment.name"/>
</a>
@@ -399,7 +611,7 @@
<t t-raw="console.log('Unhandled widget', widget)"/>
</t>
<t t-name="WidgetFrame">
- <table border="0" width="100%" cellpadding="0" cellspacing="0" class="oe_frame">
+ <table border="0" width="100%" cellpadding="0" cellspacing="0" class="oe_frame oe_forms">
<tr t-foreach="widget.table" t-as="row">
<t t-foreach="row" t-as="td">
<td t-att-colspan="td.colspan gt 1 ? td.colspan : undefined"
@@ -657,7 +869,7 @@
</t>
<t t-name="SearchView">
<h2 class="oe_view_title"><t t-esc="view.attrs['string']"/></h2>
- <form>
+ <form class="oe_forms">
<t t-call="SearchView.render_lines"/>
<div class="oe_search-view-buttons" style="text-align: right;">
<input type="submit" value="Search"/>
@@ -800,7 +1012,7 @@
<option value="all">All the following conditions must match</option>
<option value="none">None of the following conditions must match</option>
</select>
- <a class="searchview_extended_delete_group"
+ <a class="searchview_extended_delete_group"
href="javascript:void(0)"><span></span></a>
<div class="searchview_extended_propositions_list">
</div>
@@ -849,29 +1061,6 @@
</t>
</select>
</t>
-<t t-name="ViewManager.sidebar">
- <div t-att-id="element_id" class="sidebar-main-div closed-sidebar">
-
- </div>
-</t>
-<t t-name="ViewManager.sidebar.internal">
- <a class="toggle-sidebar"></a>
- <div class="sidebar-content">
- <div class="sidebar-attachments" t-if="view == 'form'"> </div>
- <div class="sidebar-actions">
- <t t-foreach="sidebar.sections" t-as="section" t-if="section.elements.length">
- <h2><t t-esc="section.label"/></h2>
- <ul>
- <li t-foreach="section.elements" t-as="element">
- <a class="oe_sidebar_action_a" t-attf-data-index="#{section_index}-#{element_index}" href="#">
- <t t-esc="element.name"/>
- </a>
- </li>
- </ul>
- </t>
- </div>
- </div>
-</t>
<t t-name="DialogWarning">
<table cellspacing="0" cellpadding="0" border="0" class="oe-dialog-warning">
<tr>
@@ -946,4 +1135,145 @@
.unwrap();
</t>
</t>
+
+<t t-name="ExportView">
+ <a id="exportview" href="javascript: void(0)" style="text-decoration: none;color: #3D3D3D;">Export</a>
+</t>
+
+<t t-name="ExportTreeView">
+ <table class="view" style="background-color: #F3F3F3;">
+ <tr>
+ <td align="left">
+ This wizard will export all data that matches the current search criteria to a CSV file.
+ You can export all data or only the fields that can be reimported after modification.
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <table>
+ <tr>
+ <td class="label"><label>Export Type:</label></td>
+ <td>
+ <select id="import_compat" name="import_compat">
+ <option value="1">Import Compatible Export</option>
+ <option value="0">Export all Data</option>
+ </select>
+ </td>
+ <td class="label"><label>Export Format</label></td>
+ <td>
+ <select id="export_format" name="export_format">
+ <option value="csv">CSV</option>
+ <option value="xls">Excel</option>
+ </select>
+ </td>
+
+ </tr>
+ </table>
+ </td>
+ </tr>
+
+ <tr>
+ <td>
+ <table class="oe_export_fields_selector_export">
+ <tr>
+ <th class="oe_view_title" valign="bottom">Available fields</th>
+ <th class="oe_view_title"></th>
+ <th class="oe_view_title">Fields to export
+ <a style="color: blue; text-decoration: none;" href="#" id="export_new_list">Save fields list</a>
+ <div id="savenewlist"></div>
+ <div id="ExistsExportList"></div>
+ </th>
+ </tr>
+ <tr>
+ <td class="oe_export_fields_selector_left">
+ <div id="left_field_panel">
+ </div>
+ </td>
+ <td>
+ <table class="oe_export_fields_selector_center">
+ <tr>
+ <td align="center">
+ <button id="add_field" class="oe_export_button_export">Add</button>
+ </td>
+ </tr>
+ <tr>
+ <td align="center">
+ <button id="remove_field" class="oe_export_button_export">Remove</button>
+ </td>
+ </tr>
+ <tr>
+ <td align="center">
+ <button id="remove_all_field" class="oe_export_button_export">Remove All</button>
+ </td>
+ </tr>
+ </table>
+ </td>
+ <td class="oe_export_fields_selector_right">
+ <select name="fields_list" id="fields_list" multiple="multiple"></select>
+ </td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ </table>
+</t>
+
+<t t-name="ExportTreeView-Secondary">
+ <table id="field-tree-structure" class="oe_export_fields_selector_export" cellspacing="0" cellpadding="0">
+ <tr><th class="oe_export_tree_header"> Name </th></tr>
+ <t t-call="ExportTreeView-Secondary.children"/>
+ </table>
+</t>
+<t t-name="ExportTreeView-Secondary.children">
+ <t t-foreach="fields" t-as="field" >
+ <tr t-att-id="'treerow-' + field.id" class="oe_export_row">
+ <td>
+ <table class="tree_grid" border="0">
+ <tr class="oe_export_row">
+ <t t-foreach="(field.id).split('/')" t-as="level" >
+ <t t-if="(field.id).split('/')[0] != level">
+ <td width="18">&amp;nbsp;</td>
+ </t>
+ </t>
+ <td valign="top" align="left" style="cursor: pointer;" width="18">
+ <t t-if="(field.children).length >= 1">
+ <t t-if="(field.id).split('/').length != 3">
+ <img t-att-id="'parentimg-' + field.id" src="/base/static/src/img/expand.gif" width="16" height="16" border="0"/>
+ </t>
+ </t>
+ </td>
+ <td id="tree-column" valign="middle" align="left" style="cursor: pointer;">
+ <a t-att-id="'export-' + field.id" t-att-string="field.string" href="javascript: void(0);" style="text-decoration: none;">
+ <t t-esc="field.string"/>
+ </a>
+ </td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ </t>
+</t>
+
+<t t-name="ExportNewList">
+ <tr>
+ <th><label>Save as:</label></th>
+ <td><input size="10" type="text" id="savelist_name"/></td>
+ <td><button class="oe_export_button_export" id="add_export_list">Ok</button></td>
+ </tr>
+</t>
+
+<t t-name="Exists.ExportList">
+ <tr><th align="right"><label >Saved exports:</label></th></tr>
+ <tr align="left">
+ <td>
+ <select id="saved_export_list" style="width: 100%;">
+ <option></option>
+ <t t-foreach="existing_exports" t-as="export">
+ <option t-att-value="export.id"><t t-esc="export.name"/></option>
+ </t>
+ </select>
+ </td>
+ <td><button class="oe_export_button_export" id="delete_export_list">Delete</button></td>
+ </tr>
+</t>
</templates>