summaryrefslogtreecommitdiff
path: root/addons/web/static/src/xml/base.xml
diff options
context:
space:
mode:
authorXavier Morel <xmo@openerp.com>2011-09-23 11:23:46 +0200
committerXavier Morel <xmo@openerp.com>2011-09-23 11:23:46 +0200
commita7a71dea83ac33d7f67e0068c5a5102f80e86856 (patch)
treebafecdc55a211f69e77cf1abafeb2674b34ce4c3 /addons/web/static/src/xml/base.xml
parent99cd8a01a37f24445d618f30242eac0e21b572f5 (diff)
[IMP] split import check result in two different templates, wait before everything's ready to setup autocompletes and check required fields & al
bzr revid: xmo@openerp.com-20110923092346-007j09xf5wfzq9zo
Diffstat (limited to 'addons/web/static/src/xml/base.xml')
-rw-r--r--addons/web/static/src/xml/base.xml42
1 files changed, 21 insertions, 21 deletions
diff --git a/addons/web/static/src/xml/base.xml b/addons/web/static/src/xml/base.xml
index 19f8078554f..db7663ed60d 100644
--- a/addons/web/static/src/xml/base.xml
+++ b/addons/web/static/src/xml/base.xml
@@ -1433,28 +1433,28 @@
</fieldset>
</form>
</t>
-<t t-name="ImportView-result">
- <t t-if="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>
+<table t-name="ImportView.result"
+ class="oe_import_grid" width="100%" style="margin: 5px 0;">
+ <tr 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="headers" t-as="header">
+ <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>
- <table t-if="records" class="oe_import_grid" width="100%" style="margin: 5px 0;">
- <tr class="oe_import_grid-header">
- <td t-foreach="records.header" t-as="header" class="oe_import_grid-cell">
- <t t-esc="header"/></td>
- </tr>
- <tr>
- <td t-foreach="records.header" t-as="header">
- <input class="sel_fields"/>
- </td>
- </tr>
- <tr t-foreach="records.row" t-as="row" class="oe_import_grid-row">
- <td t-foreach="row" t-as="column" class="oe_import_grid-cell"><t t-esc="column"/></td>
- </tr>
- </table>
</t>
<t t-name="About-Page">