diff options
| author | Martin Trigaux <mat@openerp.com> | 2013-04-18 18:05:12 +0200 |
|---|---|---|
| committer | Martin Trigaux <mat@openerp.com> | 2013-04-18 18:05:12 +0200 |
| commit | 8a95c92353868f4a1a53ddc27eb6bc5943c06188 (patch) | |
| tree | 7a4e18cbd580abf202f15f0814f99aab8c74d284 /addons/gamification/static/src/xml/gamification.xml | |
| parent | d853f64aab1f988478b573ac24e6de6b648ed5a3 (diff) | |
[ADD] wizard to accept challenges
bzr revid: mat@openerp.com-20130418160512-v9tw81ddki79kwv5
Diffstat (limited to 'addons/gamification/static/src/xml/gamification.xml')
| -rw-r--r-- | addons/gamification/static/src/xml/gamification.xml | 25 |
1 files changed, 14 insertions, 11 deletions
diff --git a/addons/gamification/static/src/xml/gamification.xml b/addons/gamification/static/src/xml/gamification.xml index 22c1233d336..29114897153 100644 --- a/addons/gamification/static/src/xml/gamification.xml +++ b/addons/gamification/static/src/xml/gamification.xml @@ -51,12 +51,19 @@ </thead> <tbody> <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 class="col1"><t t-esc="goal.user_name" /></td> - <td class="col2"> - <span class="oe_goal_sparkline_piechart" t-att-data-completeness="goal.completeness"></span> - <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> - </td> + <div style="background:#fff;"> + <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" style="width:150px;"> + <div class="oe_goal_progress" t-attf-style="width: #{goal.completeness}%;"> + <div style="width:150px;"> + <!-- <span class="oe_goal_sparkline_piechart" t-att-data-completeness="goal.completeness"></span> --> + <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> + </div> + </div> + </td> + </div> </tr> </tbody> </table> @@ -68,11 +75,7 @@ <h3>Suggested challenges</h3> <div t-foreach="widget.challenge_suggestions.info" t-as="challenge" class="oe_challenge"> <p> - <strong><t t-esc="challenge.name"/></strong> <a class="oe_challenge_reply">reply</a> - <t t-if="challenge.description.value"> - <br/> - <em><t t-esc="challenge.description.value"/></em> - </t> + <strong><t t-esc="challenge.name"/></strong> <a class="oe_challenge_reply" t-attf-title="#{challenge.description.value ? challenge.description.value : ''}" t-attf-id="{challenge.id}">reply</a> </p> </div> </t> |
