summaryrefslogtreecommitdiff
path: root/addons/base_dashboard/static/src/xml
diff options
context:
space:
mode:
authorXavier Morel <xmo@openerp.com>2011-07-14 13:58:43 +0200
committerXavier Morel <xmo@openerp.com>2011-07-14 13:58:43 +0200
commit4e47ceb281800da5305588e02ecbce7107d7ea66 (patch)
tree2c70df971e6db0eb0ddd799bd87a60af7fc9c4b2 /addons/base_dashboard/static/src/xml
parente35bb246d352965474076c23efb0dc5460b9e474 (diff)
[IMP] category-based todos display in config widget
Also use todos-provided progress method to build a more precise progressbar bzr revid: xmo@openerp.com-20110714115843-fhqbwcxg3hlljsmv
Diffstat (limited to 'addons/base_dashboard/static/src/xml')
-rw-r--r--addons/base_dashboard/static/src/xml/base_dashboard.xml28
1 files changed, 16 insertions, 12 deletions
diff --git a/addons/base_dashboard/static/src/xml/base_dashboard.xml b/addons/base_dashboard/static/src/xml/base_dashboard.xml
index bca78998532..8d751f5ac81 100644
--- a/addons/base_dashboard/static/src/xml/base_dashboard.xml
+++ b/addons/base_dashboard/static/src/xml/base_dashboard.xml
@@ -66,19 +66,23 @@
</t>
<div t-name="ConfigOverview" class="oe-dashboard-config-overview">
<div class="oe-config-progress" t-att-data-completion="completion"/>
- <ul>
+ <dl>
+ <t t-foreach="groups" t-as="category">
+ <dt><t t-esc="category"/></dt>
+ <dd><ul>
+ <li t-foreach="category_value" t-as="todo"
+ t-att-class="todo.to_do ? 'ui-state-error ui-priority-primary' : ''"
+ t-att-data-action="todo.action">
+ <span t-if="todo.done" class="ui-icon ui-icon-circle-check"/>
+ <span t-if="todo.to_do" class="ui-icon ui-icon-circle-close"/>
+ <span t-att-class="todo.to_do ? 'ui-state-error-text' : ''">
+ <t t-esc="todo.name"/>
+ </span>
+ </li>
+ </ul></dd>
+ </t>
- <li t-foreach="todos" t-as="todo"
- t-att-class="!todo.done ? 'ui-state-error ' + (todo.skipped ? 'ui-priority-secondary' : 'ui-priority-primary') : ''"
- t-att-data-action="todo.action">
- <span t-if="todo.done" class="ui-icon ui-icon-circle-check"/>
- <span t-if="todo.skipped" class="ui-icon ui-icon-circle-minus"/>
- <span t-if="todo.to_do" class="ui-icon ui-icon-circle-close"/>
- <span t-att-class="!todo.done ? 'ui-state-error-text' : ''">
- <t t-esc="todo.name"/>
- </span>
- </li>
- </ul>
+ </dl>
</div>
<div t-name="ApplicationTiles" class="oe-dashboard-home-tiles">
<table width="100%">