summaryrefslogtreecommitdiff
path: root/addons/gamification/static/src/xml/gamification.xml
diff options
context:
space:
mode:
authorMartin Trigaux <mat@openerp.com>2013-04-25 12:17:59 +0200
committerMartin Trigaux <mat@openerp.com>2013-04-25 12:17:59 +0200
commite920347b012d0e88cf59ae34d5f3ba1d347863f9 (patch)
tree373a9cef9d21b95ccc72d1ea1db29c076e2ce094 /addons/gamification/static/src/xml/gamification.xml
parent5794e60f148fc0a3500be3d7082eff4fa8366854 (diff)
[IMP] make it beautiful
bzr revid: mat@openerp.com-20130425101759-y3cwymvey8i9mwie
Diffstat (limited to 'addons/gamification/static/src/xml/gamification.xml')
-rw-r--r--addons/gamification/static/src/xml/gamification.xml24
1 files changed, 18 insertions, 6 deletions
diff --git a/addons/gamification/static/src/xml/gamification.xml b/addons/gamification/static/src/xml/gamification.xml
index 9e35b2d51bf..1f9649a9198 100644
--- a/addons/gamification/static/src/xml/gamification.xml
+++ b/addons/gamification/static/src/xml/gamification.xml
@@ -15,7 +15,10 @@
<ul class="oe_goals_list">
<li t-foreach="plan.goals" t-as="goal" t-attf-class="#{goal.state == 'reached' ? 'oe_goal_reached' : ''}">
<div class="oe_goal_outer_box">
- <div class="oe_goal_progress" t-attf-style="#{goal.type_display == 'progress' ? 'width: '+goal.completeness+'%;' : 'width:0;'}"></div>
+ <t t-if="goal.type_display == 'progress'">
+ <div class="oe_goal_progress_background"></div>
+ <div class="oe_goal_progress" t-attf-style="#{goal.type_display == 'progress' ? 'width: '+goal.completeness+'%;' : 'width:0;'}"></div>
+ </t>
<div class="oe_goal_inner_box">
<t t-if="goal.computation_mode != 'manually' and !goal.type_action">
<span t-att-title="goal.type_description"><t t-esc="goal.type_name" /></span>
@@ -50,9 +53,15 @@
<table t-foreach="plan.planlines" t-as="planline" class="oe_goals_list">
<thead>
<tr>
- <th colspan="4" t-attf-title="#{planline.type_description ? planline.type_description : ''}">
- <strong><t t-esc="planline.type_name"/></strong>
- <t t-if="planline.type_computation_mode == 'manually' or planline.type_action">
+ <th colspan="3" t-attf-title="#{planline.type_description ? planline.type_description : ''}">
+ <t t-if="planline.computation_mode != 'manually' and !planline.type_action">
+ <strong><t t-esc="planline.type_name"/></strong>
+ </t>
+ <t t-if="planline.type_action">
+ <strong><a class="oe_goal_action" t-att-id="planline.own_goal_id"><t t-esc="planline.type_name"/></a></strong>
+ </t>
+ <t t-if="planline.computation_mode == 'manually' and !planline.type_action">
+ <strong><t t-esc="planline.type_name"/></strong>
<a class="oe_goal_action oe_e" t-att-id="planline.own_goal_id">&amp;</a>
</t>
<br/>
@@ -68,12 +77,15 @@
</thead>
<tbody>
<tr t-foreach="planline.goals" t-as="goal" t-attf-class="#{goal.id == planline.own_goal_id ? 'oe_bold' : ''}">
- <div style="background: #fff;">
+ <div>
<th class="col0"><t t-esc="goal.rank" /></th>
<td class="col1"><img class="oe_user_avatar" t-attf-alt="#{goal.user_name}" t-attf-data-id="#{goal.user_id}"/></td>
<td class="col2">
<div class="oe_goal_outer_box">
- <div class="oe_goal_progress" t-attf-style="#{planline.type_display == 'progress' ? 'width: '+goal.completeness+'%;' : 'width:0;'}"></div>
+ <t t-if="planline.type_display == 'progress'">
+ <div class="oe_goal_progress_background"></div>
+ <div class="oe_goal_progress" t-attf-style="#{planline.type_display == 'progress' ? 'width: '+goal.completeness+'%;' : 'width:0;'}"></div>
+ </t>
<div class="oe_goal_inner_box">
<t t-esc="goal.user_name"/><br/>
<span t-attf-class="#{planline.type_monetary ? 'oe_goal_field_monetary' : ''}"><t t-esc="goal.current" /></span><t t-if="planline.type_unit"> <t t-esc="planline.type_unit"/></t>