diff options
| author | Martin Trigaux <mat@openerp.com> | 2013-04-19 17:53:42 +0200 |
|---|---|---|
| committer | Martin Trigaux <mat@openerp.com> | 2013-04-19 17:53:42 +0200 |
| commit | 0ea778bc0da0c074406ac3a1adc1856b846ae63f (patch) | |
| tree | 7128dd1f6624ac5dd1dc30c5975ff7b4289e74bb /addons/gamification/static/src | |
| parent | 4fb6e9b682901e02e615936c75bbe8ca6cee8b8b (diff) | |
[IMP] display progressbar in indivial mode
bzr revid: mat@openerp.com-20130419155342-776hyozede04zgz7
Diffstat (limited to 'addons/gamification/static/src')
| -rw-r--r-- | addons/gamification/static/src/xml/gamification.xml | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/addons/gamification/static/src/xml/gamification.xml b/addons/gamification/static/src/xml/gamification.xml index c6946d6397d..428342e08b6 100644 --- a/addons/gamification/static/src/xml/gamification.xml +++ b/addons/gamification/static/src/xml/gamification.xml @@ -9,9 +9,10 @@ <h3><t t-esc="plan.name" /></h3> <t t-if="plan.visibility_mode == 'progressbar'"> - <ul class="oe_goals_list"> - <li t-foreach="plan.goals" t-as="goal"> - <span class="oe_goal_sparkline_piechart" t-att-data-completeness="goal.completeness"></span> + <ul class="oe_goals_list" style="width:200px;"> + <li t-foreach="plan.goals" t-as="goal" t-attf-style="width: #{goal.completeness}%;" class="oe_goal_progress"> + <div style="width:200px;"> + <!-- <span class="oe_goal_sparkline_piechart" t-att-data-completeness="goal.completeness"></span> --> <strong t-attf-class="#{goal.state == 'reached' ? 'oe_goal_reached' : goal.state == 'failed' ? 'oe_goal_failed' : ''}" t-att-title="goal.type_description"><t t-esc="goal.type_name" /></strong> <t t-if="goal.computation_mode == 'manually' or goal.type_action"> <a class="oe_goal_action oe_e" t-att-id="goal.id">&</a> @@ -33,6 +34,7 @@ </p> </t> </t> + </div> </li> </ul> </t> |
