diff options
| author | Martin Trigaux <mat@openerp.com> | 2013-03-27 12:16:36 +0100 |
|---|---|---|
| committer | Martin Trigaux <mat@openerp.com> | 2013-03-27 12:16:36 +0100 |
| commit | c7fc486809cfda927699efeed005dcb764f937c4 (patch) | |
| tree | b0d90483cd95341cd1e79c76e35d39a91c525509 /addons/gamification/static/src/xml/gamification.xml | |
| parent | b08a2f2bbc8f615b778ec75e4b8f410626c52800 (diff) | |
[FIX] correct goal id action buttons
bzr revid: mat@openerp.com-20130327111636-dbg162rd4pvgok0k
Diffstat (limited to 'addons/gamification/static/src/xml/gamification.xml')
| -rw-r--r-- | addons/gamification/static/src/xml/gamification.xml | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/addons/gamification/static/src/xml/gamification.xml b/addons/gamification/static/src/xml/gamification.xml index 6eca4093084..481330b7aaa 100644 --- a/addons/gamification/static/src/xml/gamification.xml +++ b/addons/gamification/static/src/xml/gamification.xml @@ -6,6 +6,7 @@ <div t-foreach="widget.goals_info.info" t-as="plan"> <em><a class="oe_update_plan" rol="button" t-attf-id="{plan.id}">refresh</a></em> <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"> @@ -43,7 +44,7 @@ <th colspan="4" t-attf-title="#{planline.type_description ? planline.type_description : ''}"> <t t-esc="planline.type_name"/> <t t-if="planline.type_computation_mode == 'manually' or planline.type_action"> - <a class="oe_goal_action" t-att-id="goal.id">modify</a> + <a class="oe_goal_action" t-att-id="planline.own_goal_id">modify</a> </t> </th> </tr> @@ -55,7 +56,7 @@ </tr> </thead> <tbody> - <tr t-foreach="planline.goals" t-as="goal" t-attf-class="#{goal.completness >= 100 ? 'oe_bold' : ''}"> + <tr t-foreach="planline.goals" t-as="goal" t-attf-class="#{goal.id == planline.own_goal_id ? 'oe_bold' : ''}"> <th><t t-esc="goal.rank" /></th> <td><t t-esc="goal.user_name" /></td> <td><progress t-att-value="goal.completeness" max="100" /></td> |
