summaryrefslogtreecommitdiff
path: root/addons/base_import/static/src/xml/import.xml
diff options
context:
space:
mode:
authorXavier Morel <xmo@openerp.com>2012-08-14 14:48:35 +0200
committerXavier Morel <xmo@openerp.com>2012-08-14 14:48:35 +0200
commit323b979146d6e0ba428a3e15e98f112cf9f80d43 (patch)
tree565dee7a827499f0d606c8b80c3703b0ec0e7b55 /addons/base_import/static/src/xml/import.xml
parentaec461651e2671dd6bb1caf7ee21430c861c109f (diff)
[ADD] error reporting to user during preview
bzr revid: xmo@openerp.com-20120814124835-9nkqni98ie2eyt5r
Diffstat (limited to 'addons/base_import/static/src/xml/import.xml')
-rw-r--r--addons/base_import/static/src/xml/import.xml8
1 files changed, 7 insertions, 1 deletions
diff --git a/addons/base_import/static/src/xml/import.xml b/addons/base_import/static/src/xml/import.xml
index d2a3ec4f66d..7cf04c55292 100644
--- a/addons/base_import/static/src/xml/import.xml
+++ b/addons/base_import/static/src/xml/import.xml
@@ -1,6 +1,6 @@
<templates>
<t t-name="ImportView">
- <form action="" method="post" enctype="multipart/form-data">
+ <form action="" method="post" enctype="multipart/form-data" class="oe_import">
<input type="hidden" name="session_id"
t-att-value="widget.session.session_id"/>
<input type="hidden" name="import_id"/>
@@ -9,6 +9,7 @@
<table class="oe_import_grid" width="100%">
</table>
+ <div class="oe_import_error_report"></div>
</form>
</t>
<!-- TODO: column matcher? -->
@@ -22,4 +23,9 @@
><t t-esc="cell"/></td>
</tr>
</t>
+ <t t-name="ImportView.error">
+ <p>Import preview failed due to: <t t-esc="error"/></p>
+ <p>Here is the start of the file we could not import:</p>
+ <pre><t t-esc="preview"/></pre>
+ </t>
</templates>