diff options
| author | Jiten (OpenERP) <jra@tinyerp.com> | 2011-09-27 19:02:32 +0530 |
|---|---|---|
| committer | Jiten (OpenERP) <jra@tinyerp.com> | 2011-09-27 19:02:32 +0530 |
| commit | 6d14f142e60db4468052e4b07e7424fe9c96fcaa (patch) | |
| tree | f443a3e45a5213506ef22cd76c20337d3eb54032 /addons/web/static/src/xml/base.xml | |
| parent | 0f83246331158ca5f63ee237f2d8affdfc4b089e (diff) | |
| parent | 5dfc14d359e1a2fae85154a41b109b129a647449 (diff) | |
[MERGE] Merge from openerp-web.
bzr revid: jra@tinyerp.com-20110927133232-9gakcgfto5v7yoah
Diffstat (limited to 'addons/web/static/src/xml/base.xml')
| -rw-r--r-- | addons/web/static/src/xml/base.xml | 73 |
1 files changed, 73 insertions, 0 deletions
diff --git a/addons/web/static/src/xml/base.xml b/addons/web/static/src/xml/base.xml index a451912dcb8..25d256992d7 100644 --- a/addons/web/static/src/xml/base.xml +++ b/addons/web/static/src/xml/base.xml @@ -1383,6 +1383,79 @@ </table> </form> </t> + +<t t-name="ImportView"> + <a id="importview" href="javascript: void(0)" style="text-decoration: none;color: #3D3D3D;">Import</a> +</t> +<t t-name="ImportDataView"> +<form name="import_data" id="import_data" action="" method="post" enctype="multipart/form-data"> + <input type="hidden" name="session_id" t-att-value="session.session_id"/> + <h2 class="separator horizontal">1. Import a .CSV file</h2> + <p>Select a .CSV file to import. If you need a sample of file to import, + you should use the export tool with the "Import Compatible" option. + </p> + <p> + <label for="csvfile">CSV File:</label> + <input type="file" id="csvfile" size="50" name="csvfile"/> + </p> + <h2 class="separator horizontal">2. Check your file format</h2> + <div id="result"></div> + <fieldset> + <legend style="cursor:pointer;">Import Options</legend> + <table style="display:none"> + <tr> + <td colspan="4"> + <label for="file_has_headers">Does your file have titles?</label> + <input type="checkbox" checked="checked" + id="file_has_headers"/> + </td> + </tr> + <tr> + <td><label for="csv_separator">Separator:</label></td> + <td><input type="text" name="csvsep" id="csv_separator" value=","/></td> + <td><label for="csv_delimiter">Delimiter:</label></td> + <td><input type="text" name="csvdel" id="csv_delimiter" value='"'/></td> + </tr> + <tr> + <td><label for="csv_encoding">Encoding:</label></td> + <td> + <select name="csvcode" id="csv_encoding"> + <option value="utf-8">UTF-8</option> + <option value="latin1">Latin 1</option> + </select> + </td> + <td><label for="csv_skip" title="For use if CSV files have titles on multiple lines, skips more than a single line during import"> + Lines to skip<sup>?</sup>:</label></td> + <td><input type="number" id="csv_skip" value="0" min="0"/></td> + </tr> + </table> + </fieldset> +</form> +</t> +<table t-name="ImportView.result" + class="oe_import_grid" width="100%" style="margin: 5px 0;"> + <tr t-if="headers" class="oe_import_grid-header"> + <td t-foreach="headers" t-as="header" class="oe_import_grid-cell"> + <t t-esc="header"/></td> + </tr> + <tr> + <td t-foreach="records[0]" t-as="column"> + <input class="sel_fields"/> + </td> + </tr> + <tr t-foreach="records" t-as="record" class="oe_import_grid-row"> + <td t-foreach="record" t-as="cell" class="oe_import_grid-cell"> + <t t-esc="cell"/></td> + </tr> +</table> +<t t-name="ImportView.error"> + <p style="white-space:pre-line;">The import failed due to:<t t-esc="error.message"/></p> + <t t-if="error.preview"> + <p>Here is a preview of the file we could not import:</p> + <pre><t t-esc="error.preview"/></pre> + </t> +</t> + <t t-name="About-Page"> <div> <h1>OpenERP Web</h1> |
