diff options
| author | Martin Trigaux <mat@openerp.com> | 2013-03-21 12:01:52 +0100 |
|---|---|---|
| committer | Martin Trigaux <mat@openerp.com> | 2013-03-21 12:01:52 +0100 |
| commit | 24edc5615ba7e20f465e4b1b8e11fcabb81fdb79 (patch) | |
| tree | aa3f53618d992aa9e72348d1391edf2f4b8ac633 /addons/gamification/static/src/xml/gamification.xml | |
| parent | efbc055c5f3e307afaa0f4710b8da44d1cc00971 (diff) | |
[ADD] basic widget for goal list
bzr revid: mat@openerp.com-20130321110152-0wa9b3uuyk2qvk0d
Diffstat (limited to 'addons/gamification/static/src/xml/gamification.xml')
| -rw-r--r-- | addons/gamification/static/src/xml/gamification.xml | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/addons/gamification/static/src/xml/gamification.xml b/addons/gamification/static/src/xml/gamification.xml new file mode 100644 index 00000000000..6ee32e0c9e2 --- /dev/null +++ b/addons/gamification/static/src/xml/gamification.xml @@ -0,0 +1,29 @@ +<?xml version="1.0" encoding="UTF-8"?> +<templates id="template" xml:space="preserve"> + <t t-extend="mail.Root"> + <t t-jquery="div" t-operation="after"> + <div class="oe_user_sidebar" /> + </t> + </t> + <t t-name="user_wall"> + <div class="oe_gamification_goal"/> + </t> + <t t-name="goal_list_to_do"> + <div t-foreach="widget.goals_info.info" t-as="plan"> + <h3><t t-esc="plan.name"/></h3> + <ul class="oe_goals_list"> + <li t-foreach="plan.goals" t-as="goal"> + <strong><t t-esc="goal.type_name" /></strong> + <t t-if="goal.type_description"> + <p><t t-esc="goal.type_description" /></p> + </t> + <p><progress t-att-value="goal.completeness" max="100"/></p> + <t t-if="goal.computation_mode == 'manually'"> + <a href="#">done!</a> + </t> + </li> + </ul> + </div> + </t> + +</templates> |
