diff options
| author | Xavier Morel <xmo@openerp.com> | 2012-08-30 16:12:26 +0200 |
|---|---|---|
| committer | Xavier Morel <xmo@openerp.com> | 2012-08-30 16:12:26 +0200 |
| commit | cdb686980986b0fc200483b90dbb18fbdda6c585 (patch) | |
| tree | 66c7a149a9302f89c9a0194818860923c07b62a7 /addons/base_import/static/src/xml/import.xml | |
| parent | 302cabfccb151480895cf9bd8759701667f3a999 (diff) | |
[IMP] add encoding csv option
and generify handling of options a bit, imprive styling, and rename 'quote' to 'quoting'
bzr revid: xmo@openerp.com-20120830141226-exli9s1hh4vij6sd
Diffstat (limited to 'addons/base_import/static/src/xml/import.xml')
| -rw-r--r-- | addons/base_import/static/src/xml/import.xml | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/addons/base_import/static/src/xml/import.xml b/addons/base_import/static/src/xml/import.xml index a85f8e960c1..a2844f8d7b9 100644 --- a/addons/base_import/static/src/xml/import.xml +++ b/addons/base_import/static/src/xml/import.xml @@ -29,15 +29,15 @@ <table class="oe_import_grid" width="100%"/> <a href="#" class="oe_import_toggle"> File Format Options…</a> - <div class="oe_import_toggled"> - <!-- no @name, avoid submission when file_update called --> - <label t-attf-for="sep_#{_id}">Separator:</label> - <input t-attf-id="sep_#{_id}" class="oe_import_separator" - t-att-value="widget.defaults.separator"/> - <br/> - <label t-attf-for="quoting_#{_id}">Quoting:</label> - <input t-attf-id="quoting_#{_id}" class="oe_import_quoting" - t-att-value="widget.defaults.quoting"/> + <div class="oe_import_toggled oe_import_options"> + <p t-foreach="widget.opts" t-as="option"> + <!-- no @name, avoid submission when file_update called --> + <label t-attf-for="#{option.name}_#{_id}"> + <t t-esc="option.label"/></label> + <input t-attf-id="#{option.name}_#{_id}" + t-attf-class="oe_import_#{option.name}" + t-att-value="option.value"/> + </p> </div> <h2>Frequently Asked Questions</h2> |
