diff options
| author | Xavier Morel <xmo@openerp.com> | 2011-11-30 17:45:55 +0100 |
|---|---|---|
| committer | Xavier Morel <xmo@openerp.com> | 2011-11-30 17:45:55 +0100 |
| commit | 9a373a8c8a22de5c49eff2090f18a6bd716e14a5 (patch) | |
| tree | f8b4131e12bed8de302e0543e12929c4c05cfd52 /addons/web/static/src/xml/base.xml | |
| parent | ac71b57c8889813bb2958f9d90f6c039b9aab8d0 (diff) | |
| parent | c97e5f6ead4a19ad110a774387b957c013386490 (diff) | |
[IMP] use optgroups in searchview commands dropdown: cleaner look
bzr revid: xmo@openerp.com-20111130164555-ks7qfvfhv7rca4rg
Diffstat (limited to 'addons/web/static/src/xml/base.xml')
| -rw-r--r-- | addons/web/static/src/xml/base.xml | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/addons/web/static/src/xml/base.xml b/addons/web/static/src/xml/base.xml index 4264ca8dd38..0fb0ef87932 100644 --- a/addons/web/static/src/xml/base.xml +++ b/addons/web/static/src/xml/base.xml @@ -1123,16 +1123,17 @@ </form> </t> <t t-name="SearchView.managed-filters"> - <option value="_filters">-- Filters --</option> - <t t-set="i" t-value="0"/> - <t t-foreach="filters" t-as="filter"> - <option t-att-value="'get:' + i"><t t-esc="filter.name"/></option> - <t t-set="i" t-value="i+1"/> - </t> - <option value="_actions">-- Actions --</option> - <option value="save_filter">Save Filter</option> - <option value="add_to_dashboard">Add to Dashboard</option> - <option value="manage_filters">Manage Filters</option> + <option/> + <optgroup label="-- Filters --"> + <t t-foreach="filters" t-as="filter"> + <option t-attf-value="get:#{filter_index}"><t t-esc="filter.name"/></option> + </t> + </optgroup> + <optgroup label="-- Actions --"> + <option value="save_filter">Save Filter</option> + <option value="add_to_dashboard">Add to Dashboard</option> + <option value="manage_filters">Manage Filters</option> + </optgroup> </t> <t t-name="SearchView.managed-filters.add"> <div> |
