diff options
| author | Géry Debongnie <ged@odoo.com> | 2015-02-02 15:45:14 +0100 |
|---|---|---|
| committer | Géry Debongnie <ged@odoo.com> | 2015-02-02 15:45:14 +0100 |
| commit | 585bcda3982ac1e41db21540f5106c8fb93f5725 (patch) | |
| tree | a76c942667ef0dd2ca6a03a9eac1de9c696e0305 /addons/web/static/src/xml/base.xml | |
| parent | a9df04f9aa5d16204b2e943c85d8fcc2e76fabad (diff) | |
[FIX] base_import: allow scrolling in import menu
also, removes some dead templates in base.xml
Diffstat (limited to 'addons/web/static/src/xml/base.xml')
| -rw-r--r-- | addons/web/static/src/xml/base.xml | 74 |
1 files changed, 0 insertions, 74 deletions
diff --git a/addons/web/static/src/xml/base.xml b/addons/web/static/src/xml/base.xml index bb05490edb2..8652cdea547 100644 --- a/addons/web/static/src/xml/base.xml +++ b/addons/web/static/src/xml/base.xml @@ -1897,80 +1897,6 @@ <button class="oe_button oe_export_button_export" id="delete_export_list" type="button">Delete</button> </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" - class="oe_import oe_import_no_result"> - <input type="hidden" name="session_id" t-att-value="widget.session.session_id" t-if="widget.session.override_session"/> - <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 oe_import_result">2. Check your file format</h2> - <div id="result" class="oe_import_result"></div> - <fieldset class="oe_closed oe_import_result"> - <legend>Import Options</legend> - <table> - <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> -<t t-name="ImportView.result"> - <table 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" placeholder="--- Don't Import ---"/><span class="oe_m2o_drop_down_button"> - <img t-att-src='_s + "/web/static/src/img/down-arrow.png"' draggable="false"/></span> - </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 t-name="ImportView.error"> - <p style="white-space:pre;">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> <div t-name="Many2ManyKanban.quick_create" class="oe_kanban_quick_create"> <input t-att-placeholder="_t('Type name to search')"/> </div> |
